Re: Panic loading linsysfs with INVARIANTS configured

From: John F Carr <jfc_at_mit.edu>
Date: Sun, 20 Jun 2021 14:02:16 UTC
On Jun 19, 2021, at 18:50 , John F Carr <jfc@mit.edu> wrote:
> 
> On a server class ARM (Ampere) running an up to date stable/13 kernel with INVARIANTS I get a panic in VFS code if I kldload linsysfs:
> 
> pfs_add_node: homonymous siblings
> 

linsysfs_run_bus is trying to add several nodes named "0000:00:00.0".  The crash depends on bus topology.

# ls /usr/jail/0/linux/sys/devices/pci0000:00
0000:00:00.0	0000:00:00.0	0000:00:00.0	0000:00:00.0
0000:00:00.0	0000:00:00.0	0000:00:00.0

I have some warnings in messages that might be related:

pcib10: <Generic PCI host controller> on acpi0
pci10: <PCI bus> on pcib10
pcib11: <PCI-PCI bridge> at device 0.0 on pci10
pci11: <PCI bus> on pcib11
nvme0: <Generic NVMe Device> mem 0x30010000-0x30013fff at device 0.0 on pci11
pcib12: <Generic PCI host controller> on acpi0
pci12: <PCI bus> on pcib12
pcib13: <PCI-PCI bridge> at device 0.0 on pci12
pcib12: Failed to translate resource 10000000-10000fff type 4 for pcib13
pcib13: failed to allocate initial I/O port window: 0x10000000-0x10000fff
pci13: <PCI bus> on pcib13
pcib14: <PCI-PCI bridge> at device 0.0 on pci13
pcib12: Failed to translate resource 10000000-10000fff type 4 for pcib13
pcib14: failed to allocate initial I/O port window: 0x10000000-0x10000fff
pci14: <PCI bus> on pcib14
pcib12: Failed to translate resource 10000000-10000fff type 4 for pcib13