[Bug 1093625] New: biosdevname crashes due to infitie recursion in smbios_setslot
http://bugzilla.suse.com/show_bug.cgi?id=1093625 Bug ID: 1093625 Summary: biosdevname crashes due to infitie recursion in smbios_setslot Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: trenn@suse.com Reporter: jslaby@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 770539 --> http://bugzilla.suse.com/attachment.cgi?id=770539&action=edit lspci -vvvxxnn
#0 0x00007ffff788ebbe in _int_malloc (av=av@entry=0x7ffff7bc4c40
, bytes=bytes@entry=6) at malloc.c:3557 #1 0x00007ffff7890adc in __GI___libc_malloc (bytes=6) at malloc.c:3057 #2 0x00007ffff78943da in __GI___strdup (s=s@entry=0x55555575fb45 "Slot2") at strdup.c:42 #3 0x0000555555559a37 in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:150 #4 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #5 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #6 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #7 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #8 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #9 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #10 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #11 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #12 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #13 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2")
...
#1558 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=-1, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #1559 0x0000555555559afb in smbios_setslot (state=0x55555575d260, domain=0, bus=0, device=28, func=-1, type=0, slot=1, index=0, label=0x55555575fb45 "Slot2") at src/dmidecode/dmidecode.c:157 #1560 0x0000555555559e65 in dmi_decode (ver=<optimized out>, state=0x55555575d260, h=0x7fffffffdb60) at src/dmidecode/dmidecode.c:179 #1561 dmi_table (base=<optimized out>, len=6183, num=<optimized out>, ver=<optimized out>, devmem=devmem@entry=0x55555555a8f4 "/dev/mem", state=state@entry=0x55555575d260) at src/dmidecode/dmidecode.c:277 #1562 0x0000555555559eea in smbios_decode (buf=0x55555575f6f0 "_SM_\333\037\003", devmem=0x55555555a8f4 "/dev/mem", state=0x55555575d260) at src/dmidecode/dmidecode.c:292 #1563 0x000055555555a046 in dmidecode_main (state=state@entry=0x55555575d260) at src/dmidecode/dmidecode.c:437 #1564 0x000055555555813b in get_pci_devices (state=state@entry=0x55555575d260) at src/pci.c:716 #1565 0x00005555555564f0 in setup_bios_devices (namingpolicy=0, prefix=0x55555555a8fa "em") at src/bios_device.c:370 #1566 0x0000555555555c99 in main (argc=<optimized out>, argv=<optimized out>) at src/bios_dev_name.c:205
Device 28 is 1c which is:
00:1c.0 PCI bridge [0604]: Intel Corporation Sunrise Point-LP PCI Express Root Port #1 [8086:9d10] (rev f1) (prog-if 00 [Normal decode]) Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
TAbort-
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Jiri Slaby
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Thomas Renninger
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c2
Thomas Renninger
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c3
Jiri Slaby
00:1c.3 PCI bridge [0604]: Intel Corporation Device [8086:9d13] (rev f1) (prog-if 00 [Normal decode]) Control: I/O- Mem- BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+ Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort-
Secondary and subordinate buses equal to zero means there is no device on them and should not be scanned. I.e. the attached patch fixes the issue for me. The output is then:
# biosdevname -d BIOS device: p2p1 Kernel name: wlan0 Permanent MAC: 00:1C:BF:FB:64:B4 Assigned MAC : 00:1C:BF:FB:64:B4 ifIndex: 3 Driver: iwlwifi Driver version: 4.16.9-11.g4f45b1e-default Firmware version: 36.e91976c0.0 Bus Info: 0000:02:00.0 PCI name : 0000:02:00.0 PCI Slot : 2 SMBIOS Label: Slot3 Index in slot: 1
BIOS device: Kernel name: eth1 Permanent MAC: 8C:EC:4B:F8:BA:22 Assigned MAC : 8C:EC:4B:F8:BA:22 ifIndex: 4 Driver: e1000e Driver version: 3.2.6-k Firmware version: 0.1-4 Bus Info: 0000:00:1f.6 PCI name : 0000:00:1f.6 PCI Slot : Unknown Index in slot: 1
BIOS device: Kernel name: eth0 Permanent MAC: D8:9E:F3:F6:6D:0C Assigned MAC : D8:9E:F3:F6:6D:0C ifIndex: 14 Driver: r8152 Driver version: v1.09.9 Firmware version: Bus Info: usb-0000:3c:00.0-1.2
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Josef Möllers
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c4
--- Comment #4 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c5
Josef Möllers
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c6
--- Comment #6 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c7
--- Comment #7 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c8
--- Comment #8 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c9
--- Comment #9 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
http://bugzilla.suse.com/show_bug.cgi?id=1093625#c10
--- Comment #10 from Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
http://bugzilla.suse.com/show_bug.cgi?id=1093625
Swamp Workflow Management
participants (1)
-
bugzilla_noreply@novell.com