In the Linux kernel, the following vulnerability has been resolved:
net: mana: Use pci_name() for debugfs directory naming
Use pci_name(pdev) for the per-device debugfs directory instead of hardcoded "0" for PFs and pci_slot_name(pdev->slot) for VFs. The previous approach had two issues:
- pci_slot_name() dereferences pdev->slot, which can be NULL for VFs
- Multiple PFs would all use "0", and VFs across different PCI
pci_name(pdev) returns the unique BDF address, is always valid, and is unique across the system.