lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Thu, 23 Jul 2020 17:13:06 +0800
From:   kernel test robot <lkp@...el.com>
To:     Lukas Wunner <lukas@...ner.de>
Cc:     Bjorn Helgaas <bhelgaas@...gle.com>,
        Alex Williamson <alex.williamson@...hat.com>,
        Boris Ostrovsky <boris.ostrovsky@...cle.com>,
        Juergen Gross <jgross@...e.com>,
        Michael Haeuptle <michael.haeuptle@....com>,
        Ian May <ian.may@...onical.com>,
        Keith Busch <kbusch@...nel.org>, linux-pci@...r.kernel.org,
        Cornelia Huck <cohuck@...hat.com>, kvm@...r.kernel.org,
        Rick Farrington <ricardo.farrington@...ium.com>,
        Derek Chickles <dchickles@...vell.com>,
        Satanand Burla <sburla@...vell.com>,
        Felix Manlunas <fmanlunas@...vell.com>,
        Stefano Stabellini <sstabellini@...nel.org>,
        xen-devel@...ts.xenproject.org,
        Govinda Tatti <govinda.tatti@...cle.com>,
        Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
        0day robot <lkp@...el.com>,
        LKML <linux-kernel@...r.kernel.org>, lkp@...ts.01.org
Subject: [PCI] 3233e41d3e:
 WARNING:at_drivers/pci/pci.c:#pci_reset_hotplug_slot

Greeting,

FYI, we noticed the following commit (built with gcc-9):

commit: 3233e41d3e8ebcd44e92da47ffed97fd49b84278 ("[PATCH] PCI: pciehp: Fix AB-BA deadlock between reset_lock and device_lock")
url: https://github.com/0day-ci/linux/commits/Lukas-Wunner/PCI-pciehp-Fix-AB-BA-deadlock-between-reset_lock-and-device_lock/20200721-192848
base: https://git.kernel.org/cgit/linux/kernel/git/helgaas/pci.git next

in testcase: boot

on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -smp 8 -m 16G

caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace):


+------------------------------------------------------+------------+------------+
|                                                      | 8a445afd71 | 3233e41d3e |
+------------------------------------------------------+------------+------------+
| boot_successes                                       | 4          | 0          |
| boot_failures                                        | 0          | 4          |
| WARNING:at_drivers/pci/pci.c:#pci_reset_hotplug_slot | 0          | 4          |
| RIP:pci_reset_hotplug_slot                           | 0          | 4          |
+------------------------------------------------------+------------+------------+


If you fix the issue, kindly add following tag
Reported-by: kernel test robot <lkp@...el.com>


[    0.971752] WARNING: CPU: 0 PID: 1 at drivers/pci/pci.c:4905 pci_reset_hotplug_slot+0x70/0x80
[    0.971753] Modules linked in:
[    0.971755] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.8.0-rc1-00053-g3233e41d3e8eb #1
[    0.971756] Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014
[    0.971757] RIP: 0010:pci_reset_hotplug_slot+0x70/0x80
[    0.971759] Code: 41 89 c4 48 8b 7b 20 e8 4e 3a c1 ff 44 89 e0 5b 5d 41 5c c3 48 8b 43 18 31 f6 48 8d b8 90 00 00 00 e8 e4 80 70 00 85 c0 75 ba <0f> 0b eb b6 41 bc e7 ff ff ff eb d6 0f 1f 40 00 66 66 66 66 90 48
[    0.971759] RSP: 0000:ffffbd73c0013ab0 EFLAGS: 00010246
[    0.971761] RAX: 0000000000000000 RBX: ffff9700475024c0 RCX: ffff9701048c9900
[    0.971762] RDX: ffff970047e40000 RSI: ffff9701048c9990 RDI: 0000000000000246
[    0.971763] RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000
[    0.971763] R10: 0000000000000001 R11: 0000000000000000 R12: ffff9700477320b0
[    0.971764] R13: ffff970047732000 R14: ffff97004769c238 R15: 0000000000000000
[    0.971765] FS:  0000000000000000(0000) GS:ffff97036fc00000(0000) knlGS:0000000000000000
[    0.971766] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    0.971767] CR2: 0000000000000000 CR3: 00000001c2c10000 CR4: 00000000000006f0
[    0.971767] Call Trace:
[    0.971768]  pci_probe_reset_function+0xc4/0xe0
[    0.971769]  pci_device_add+0x13f/0x2a0
[    0.971769]  pci_scan_single_device+0xa4/0xc0
[    0.971770]  pci_scan_slot+0x52/0x110
[    0.971771]  pci_scan_child_bus_extend+0x3a/0x2a0
[    0.971771]  acpi_pci_root_create+0x1f7/0x250
[    0.971772]  pci_acpi_scan_root+0x182/0x1b0
[    0.971773]  acpi_pci_root_add.cold+0x59/0x1b0
[    0.971773]  ? acpi_device_always_present+0x20/0x90
[    0.971774]  acpi_bus_attach+0xf6/0x200
[    0.971775]  acpi_bus_attach+0x6b/0x200
[    0.971776]  acpi_bus_scan+0x43/0x90
[    0.971776]  ? acpi_sleep_proc_init+0x24/0x24
[    0.971777]  acpi_scan_init+0x102/0x24b
[    0.971778]  acpi_init+0x2c7/0x329
[    0.971778]  do_one_initcall+0x5d/0x330
[    0.971779]  ? rcu_read_lock_sched_held+0x52/0x90
[    0.971780]  kernel_init_freeable+0x248/0x2c9
[    0.971780]  ? rest_init+0x23e/0x23e
[    0.971781]  kernel_init+0xa/0x112
[    0.971782]  ret_from_fork+0x22/0x30
[    0.971782] irq event stamp: 109115
[    0.971783] hardirqs last  enabled at (109115): [<ffffffffaa71a514>] _raw_spin_unlock_irqrestore+0x54/0x70
[    0.971784] hardirqs last disabled at (109114): [<ffffffffaa71ab01>] _raw_spin_lock_irqsave+0x21/0x60
[    0.971785] softirqs last  enabled at (109060): [<ffffffffaaa003aa>] __do_softirq+0x3aa/0x4af
[    0.971786] softirqs last disabled at (109053): [<ffffffffaa8010b2>] asm_call_on_stack+0x12/0x20
[    0.971787] ---[ end trace c3e4ce92dee5df5f ]---


To reproduce:

        # build kernel
	cd linux
	cp config-5.8.0-rc1-00053-g3233e41d3e8eb .config
	make HOSTCC=gcc-9 CC=gcc-9 ARCH=x86_64 olddefconfig prepare modules_prepare bzImage

        git clone https://github.com/intel/lkp-tests.git
        cd lkp-tests
        bin/lkp qemu -k <bzImage> job-script # job-script is attached in this email



Thanks,
lkp


View attachment "config-5.8.0-rc1-00053-g3233e41d3e8eb" of type "text/plain" (208994 bytes)

View attachment "job-script" of type "text/plain" (4893 bytes)

Download attachment "dmesg.xz" of type "application/x-xz" (17064 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ