[Bug 2007861] [NEW] error displayed in kernel.log by cifsacl module

David Lechevalier 2007861 at bugs.launchpad.net
Mon Feb 20 15:27:28 UTC 2023


Public bug reported:

The following error message is displayed in the kernel.log

Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
cifs_acl_to_fattr: error -2 getting sec desc

# To reproduce
* Deploy a jammy vm uptodate

* Install needed packages

    apt install samba
    apt install cifs-utils

* Create a share using the command

    mkdir -p /data/share1-smb
    chmod 777 /data/share1-smb
    net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y

* mount the share using the command

    mkdir /tmp/test
    cd /tmp/test
    mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"

* Start the python script(in attachment) inside the mounted share

## Actual result
* The following message is displayed in red in the kernel.log

    Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
    cifs_acl_to_fattr: error -2 getting sec desc

This message is right, but it should be a debug message not an error.
I tried with a kernel 6.2. I have the same issue

** Affects: cifs-utils (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "test.py"
   https://bugs.launchpad.net/bugs/2007861/+attachment/5648647/+files/test.py

** Description changed:

  The following error message is displayed in the kernel.log
  
  ```
  Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS: cifs_acl_to_fattr: error -2 getting sec desc
  ```
  
  # To reproduce
  * Deploy a jammy vm uptodate
  
  * Install needed package
  ```
  apt install samba
  apt install cifs-utils
  ```
  
- * Create a share using the command 
+ * Create a share using the command
  ```
  mkdir -p /data/share1-smb
  chmod 777 /data/share1-smb
  net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y
  ```
  
- * mount the share using the command 
+ * mount the share using the command
  ```
  mkdir /tmp/test
  cd /tmp/test
  mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"
  ```
  
  * Start the following python script inside the mounted share
  ```
  #!/usr/bin/env python3
  import os
  
  path = "test.txt"
  f = open(path, "w+")
  
  os.remove(path)
  
  print(os.stat(path))
  ```
  
  ## Actual result
  * The following message is displayed in red in the kernel.log
  ```
  Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS: cifs_acl_to_fattr: error -2 getting sec desc
  ```
  
  This message is right, but it should be a debug message not an error.
  I tried with a kernel 6.2. I have the same issue

** Description changed:

  The following error message is displayed in the kernel.log
  
- ```
+ 
  Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS: cifs_acl_to_fattr: error -2 getting sec desc
- ```
+ 
  
  # To reproduce
  * Deploy a jammy vm uptodate
  
  * Install needed package
- ```
- apt install samba
- apt install cifs-utils
- ```
+ 
+     apt install samba
+     apt install cifs-utils
+ 
  
  * Create a share using the command
- ```
- mkdir -p /data/share1-smb
- chmod 777 /data/share1-smb
- net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y
+ 
+     mkdir -p /data/share1-smb
+     chmod 777 /data/share1-smb
+     net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y
  ```
  
  * mount the share using the command
- ```
- mkdir /tmp/test
- cd /tmp/test
- mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"
- ```
  
- * Start the following python script inside the mounted share
- ```
- #!/usr/bin/env python3
- import os
+     mkdir /tmp/test
+     cd /tmp/test
+     mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"
  
- path = "test.txt"
- f = open(path, "w+")
  
- os.remove(path)
- 
- print(os.stat(path))
- ```
+ * Start the python script(in attachment) inside the mounted share
  
  ## Actual result
  * The following message is displayed in red in the kernel.log
- ```
- Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS: cifs_acl_to_fattr: error -2 getting sec desc
- ```
+ 
+ 
+     Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS: 
+     cifs_acl_to_fattr: error -2 getting sec desc
+ 
  
  This message is right, but it should be a debug message not an error.
  I tried with a kernel 6.2. I have the same issue

** Description changed:

  The following error message is displayed in the kernel.log
  
- 
- Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS: cifs_acl_to_fattr: error -2 getting sec desc
- 
+ Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
+ cifs_acl_to_fattr: error -2 getting sec desc
  
  # To reproduce
  * Deploy a jammy vm uptodate
  
  * Install needed package
  
-     apt install samba
-     apt install cifs-utils
- 
+     apt install samba
+     apt install cifs-utils
  
  * Create a share using the command
  
-     mkdir -p /data/share1-smb
-     chmod 777 /data/share1-smb
-     net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y
- ```
+     mkdir -p /data/share1-smb
+     chmod 777 /data/share1-smb
+     net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y
+ 
  
  * mount the share using the command
  
-     mkdir /tmp/test
-     cd /tmp/test
-     mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"
- 
+     mkdir /tmp/test
+     cd /tmp/test
+     mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"
  
  * Start the python script(in attachment) inside the mounted share
  
  ## Actual result
  * The following message is displayed in red in the kernel.log
  
- 
-     Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS: 
-     cifs_acl_to_fattr: error -2 getting sec desc
- 
+     Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
+     cifs_acl_to_fattr: error -2 getting sec desc
  
  This message is right, but it should be a debug message not an error.
  I tried with a kernel 6.2. I have the same issue

** Description changed:

  The following error message is displayed in the kernel.log
  
  Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
  cifs_acl_to_fattr: error -2 getting sec desc
  
  # To reproduce
  * Deploy a jammy vm uptodate
  
- * Install needed package
+ * Install needed packages
  
      apt install samba
      apt install cifs-utils
  
  * Create a share using the command
  
      mkdir -p /data/share1-smb
      chmod 777 /data/share1-smb
      net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y
- 
  
  * mount the share using the command
  
      mkdir /tmp/test
      cd /tmp/test
      mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"
  
  * Start the python script(in attachment) inside the mounted share
  
  ## Actual result
  * The following message is displayed in red in the kernel.log
  
      Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
      cifs_acl_to_fattr: error -2 getting sec desc
  
  This message is right, but it should be a debug message not an error.
  I tried with a kernel 6.2. I have the same issue

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to cifs-utils in Ubuntu.
https://bugs.launchpad.net/bugs/2007861

Title:
  error displayed in kernel.log by cifsacl module

Status in cifs-utils package in Ubuntu:
  New

Bug description:
  The following error message is displayed in the kernel.log

  Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
  cifs_acl_to_fattr: error -2 getting sec desc

  # To reproduce
  * Deploy a jammy vm uptodate

  * Install needed packages

      apt install samba
      apt install cifs-utils

  * Create a share using the command

      mkdir -p /data/share1-smb
      chmod 777 /data/share1-smb
      net usershare add share1s /data/share1-smb "Test share" "Everyone:F" guest_ok=y

  * mount the share using the command

      mkdir /tmp/test
      cd /tmp/test
      mount -t cifs //127.0.0.1/share1s /tmp/test -o "cifsacl,guest,vers=3.1.1"

  * Start the python script(in attachment) inside the mounted share

  ## Actual result
  * The following message is displayed in red in the kernel.log

      Feb 20 14:35:50 test-sm-133 kernel: [  368.437641] CIFS: VFS:
      cifs_acl_to_fattr: error -2 getting sec desc

  This message is right, but it should be a debug message not an error.
  I tried with a kernel 6.2. I have the same issue

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cifs-utils/+bug/2007861/+subscriptions




More information about the foundations-bugs mailing list