FYI, we noticed the following commit (built with gcc-6): commit: 3f32d0be6c16b902b687453c962d17eea5b8ea19 ("tipc: lock wakeup & inputq at tipc_link_reset()") https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git pending-fixes in testcase: trinity with following parameters: runtime: 300s test-description: Trinity is a linux system call fuzz tester. test-url: http://codemonkey.org.uk/projects/trinity/ on test machine: qemu-system-x86_64 -enable-kvm -cpu SandyBridge -m 256M caused below changes (please refer to attached dmesg/kmsg for entire log/backtrace): +-------------------------------------------------------+------------+------------+ | | 94b6ddce71 | 3f32d0be6c | +-------------------------------------------------------+------------+------------+ | boot_successes | 13 | 0 | | boot_failures | 2 | 18 | | WARNING:possible_circular_locking_dependency_detected | 2 | | | WARNING:possible_recursive_locking_detected | 0 | 18 | +-------------------------------------------------------+------------+------------+ [ 50.689529] WARNING: possible recursive locking detected [ 50.689529] 4.19.0-rc5-00144-g3f32d0b #1 Not tainted [ 50.689529] -------------------------------------------- [ 50.689529] swapper/0/1 is trying to acquire lock: [ 50.689529] (____ptrval____) (&(&list->lock)->rlock#2){+...}, at: tipc_link_reset+0x3f/0x240 [ 50.689529] [ 50.689529] but task is already holding lock: [ 50.689529] (____ptrval____) (&(&list->lock)->rlock#2){+...}, at: tipc_link_reset+0x2f/0x240 [ 50.689529] [ 50.689529] other info that might help us debug this: [ 50.689529] Possible unsafe locking scenario: [ 50.689529] [ 50.689529] CPU0 [ 50.689529] ---- [ 50.689529] lock(&(&list->lock)->rlock#2); [ 50.689529] lock(&(&list->lock)->rlock#2); [ 50.689529] [ 50.689529] *** DEADLOCK *** [ 50.689529] [ 50.689529] May be due to missing lock nesting notation [ 50.689529] [ 50.689529] 2 locks held by swapper/0/1: [ 50.689529] #0: (____ptrval____) (pernet_ops_rwsem){+.+.}, at: register_pernet_subsys+0x15/0x3a [ 50.689529] #1: (____ptrval____) (&(&list->lock)->rlock#2){+...}, at: tipc_link_reset+0x2f/0x240 [ 50.689529] [ 50.689529] stack backtrace: [ 50.689529] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.19.0-rc5-00144-g3f32d0b #1 [ 50.689529] Call Trace: [ 50.689529] dump_stack+0x86/0xc0 [ 50.689529] validate_chain+0x844/0xaa5 [ 50.689529] ? sched_clock+0x9/0xd [ 50.689529] ? sched_clock_local+0x11/0x7f [ 50.689529] __lock_acquire+0x5e2/0x6d8 [ 50.689529] lock_acquire+0x161/0x1a9 [ 50.689529] ? tipc_link_reset+0x3f/0x240 [ 50.689529] _raw_spin_lock_bh+0x37/0x6d [ 50.689529] ? tipc_link_reset+0x3f/0x240 [ 50.689529] tipc_link_reset+0x3f/0x240 [ 50.689529] tipc_link_bc_create+0x6f/0xb8 [ 50.689529] tipc_bcast_init+0x39c/0x3fa [ 50.689529] tipc_init_net+0x1d1/0x20a [ 50.689529] ? trace_event_define_fields_drv_wake_tx_queue+0x178/0x178 [ 50.689529] ops_init+0xfa/0x124 [ 50.689529] ? kvm_clock_read+0x18/0x21 [ 50.689529] ? tipc_init_net+0x20a/0x20a [ 50.689529] register_pernet_operations+0x7a/0xa9 [ 50.689529] register_pernet_subsys+0x24/0x3a [ 50.689529] tipc_init+0x65/0xb2 [ 50.689529] do_one_initcall+0xf7/0x298 [ 50.689529] kernel_init_freeable+0x282/0x34d [ 50.689529] ? rest_init+0x22a/0x22a [ 50.689529] kernel_init+0x9/0xf5 [ 50.689529] ret_from_fork+0x3a/0x50 [ 50.729187] tipc: Started in single node mode [ 50.730086] 9pnet: Installing 9P2000 support [ 50.731629] NET: Registered protocol family 36 [ 50.732600] Key type ceph registered [ 50.733545] libceph: loaded (mon/osd proto 15/24) [ 50.734851] openvswitch: Open vSwitch switching datapath [ 50.736931] mpls_gso: MPLS GSO support [ 50.738059] start plist test [ 50.740671] end plist test [ 50.742917] ... APIC ID: 00000000 (0) [ 50.743522] ... APIC VERSION: 01050014 [ 50.743522] 0000000000000000000000000000000000000000000000000000000000000000 [ 50.743522] 0000000000000000000000000000000000000000000000000000000000000000 [ 50.743522] 0000000000000000000000000000000000000000000000000000000000001000 [ 50.748083] number of MP IRQ sources: 15. [ 50.748702] number of IO-APIC #0 registers: 24. [ 50.749337] testing the IO APIC....................... [ 50.750176] IO APIC #0...... [ 50.750548] .... register #00: 00000000 [ 50.751013] ....... : physical APIC id: 00 [ 50.751632] ....... : Delivery Type: 0 [ 50.752126] ....... : LTS : 0 [ 50.752891] .... register #01: 00170011 [ 50.753619] ....... : max redirection entries: 17 [ 50.754566] ....... : PRQ implemented: 0 [ 50.755363] ....... : IO APIC version: 11 [ 50.756205] .... register #02: 00000000 [ 50.756939] ....... : arbitration: 00 [ 50.757700] .... IRQ redirection table: [ 50.758423] IOAPIC 0: [ 50.758858] pin00, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.760308] pin01, enabled , edge , high, V(25), IRR(0), S(0), physical, D(00), M(0) [ 50.761721] pin02, enabled , edge , high, V(30), IRR(0), S(0), physical, D(00), M(0) [ 50.763173] pin03, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.764598] pin04, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.766124] pin05, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.767655] pin06, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.769205] pin07, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.770739] pin08, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.772290] pin09, enabled , level, high, V(21), IRR(0), S(0), physical, D(00), M(0) [ 50.773602] pin0a, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.774712] pin0b, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.776017] pin0c, enabled , edge , high, V(24), IRR(0), S(0), physical, D(00), M(0) [ 50.777221] pin0d, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.778448] pin0e, enabled , edge , high, V(22), IRR(0), S(0), physical, D(00), M(0) [ 50.779681] pin0f, enabled , edge , high, V(23), IRR(0), S(0), physical, D(00), M(0) [ 50.781071] pin10, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) [ 50.782400] pin11, disabled, edge , high, V(00), IRR(0), S(0), physical, D(00), M(0) To reproduce: git clone https://github.com/intel/lkp-tests.git cd lkp-tests bin/lkp qemu -k job-script # job-script is attached in this email Thanks, lkp