Public bug reported:

vmd may fail to create sysfs entry while `pci_rescan_bus()` called in
some other drivers like wwan.

This happens after bug 2002089 re-added pci rescan feature back to wwan
t7xx driver to support firmware updates via devlink. t7xx may call
`pci_rescan_bus()` with proper locks, but vmd doesn't.

sysfs: cannot create duplicate filename '/devices/.../resource0'
Call Trace:
 <TASK>
 sysfs_warn_dup.cold+0x17/0x34
 sysfs_add_bin_file_mode_ns+0xc0/0xf0
 sysfs_create_bin_file+0x6d/0xb0
 pci_create_attr+0x117/0x260
 pci_create_resource_files+0x6b/0x150
 pci_create_sysfs_dev_files+0x18/0x30
 pci_bus_add_device+0x30/0x80
 pci_bus_add_devices+0x31/0x80
 pci_bus_add_devices+0x5b/0x80
 vmd_enable_domain.constprop.0+0x6b7/0x880 [vmd]
 vmd_probe+0x16d/0x193 [vmd]

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

** Description changed:

  vmd may fail to create sysfs entry while `pci_rescan_bus()` called in
  some other drivers like wwan.
  
+ This happens after bug 2002089 re-added pci rescan feature back to wwan
+ t7xx driver to support firmware updates via devlink. t7xx may call
+ `pci_rescan_bus()` with proper locks, but vmd doesn't.
+ 
  sysfs: cannot create duplicate filename '/devices/.../resource0'
  Call Trace:
-  <TASK>
-  sysfs_warn_dup.cold+0x17/0x34
-  sysfs_add_bin_file_mode_ns+0xc0/0xf0
-  sysfs_create_bin_file+0x6d/0xb0
-  pci_create_attr+0x117/0x260
-  pci_create_resource_files+0x6b/0x150
-  pci_create_sysfs_dev_files+0x18/0x30
-  pci_bus_add_device+0x30/0x80
-  pci_bus_add_devices+0x31/0x80
-  pci_bus_add_devices+0x5b/0x80
-  vmd_enable_domain.constprop.0+0x6b7/0x880 [vmd]
-  vmd_probe+0x16d/0x193 [vmd]
+  <TASK>
+  sysfs_warn_dup.cold+0x17/0x34
+  sysfs_add_bin_file_mode_ns+0xc0/0xf0
+  sysfs_create_bin_file+0x6d/0xb0
+  pci_create_attr+0x117/0x260
+  pci_create_resource_files+0x6b/0x150
+  pci_create_sysfs_dev_files+0x18/0x30
+  pci_bus_add_device+0x30/0x80
+  pci_bus_add_devices+0x31/0x80
+  pci_bus_add_devices+0x5b/0x80
+  vmd_enable_domain.constprop.0+0x6b7/0x880 [vmd]
+  vmd_probe+0x16d/0x193 [vmd]

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/2011389

Title:
  vmd may fail to create sysfs entry while `pci_rescan_bus()` called in
  some other drivers like wwan

Status in linux package in Ubuntu:
  New

Bug description:
  vmd may fail to create sysfs entry while `pci_rescan_bus()` called in
  some other drivers like wwan.

  This happens after bug 2002089 re-added pci rescan feature back to
  wwan t7xx driver to support firmware updates via devlink. t7xx may
  call `pci_rescan_bus()` with proper locks, but vmd doesn't.

  sysfs: cannot create duplicate filename '/devices/.../resource0'
  Call Trace:
   <TASK>
   sysfs_warn_dup.cold+0x17/0x34
   sysfs_add_bin_file_mode_ns+0xc0/0xf0
   sysfs_create_bin_file+0x6d/0xb0
   pci_create_attr+0x117/0x260
   pci_create_resource_files+0x6b/0x150
   pci_create_sysfs_dev_files+0x18/0x30
   pci_bus_add_device+0x30/0x80
   pci_bus_add_devices+0x31/0x80
   pci_bus_add_devices+0x5b/0x80
   vmd_enable_domain.constprop.0+0x6b7/0x880 [vmd]
   vmd_probe+0x16d/0x193 [vmd]

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2011389/+subscriptions


-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to