================================ WARNING: inconsistent lock state 5.10.45 #1 Not tainted -------------------------------- inconsistent {INITIAL USE} -> {IN-NMI} usage. kworker/u4:5/417 [HC1[1]:SC0[0]:HE0:SE1] takes: ffff8880446ac8d0 (&rp->lock/1){....}-{2:2}, at: pre_handler_kretprobe+0x42/0x5a0 kernel/kprobes.c:2048 {INITIAL USE} state was registered at: lock_acquire kernel/locking/lockdep.c:5444 [inline] lock_acquire+0x197/0x6c0 kernel/locking/lockdep.c:5409 _raw_spin_lock_irqsave_nested+0x38/0x60 kernel/locking/spinlock.c:373 pre_handler_kretprobe+0x42/0x5a0 kernel/kprobes.c:2048 opt_pre_handler+0xbf/0x130 kernel/kprobes.c:419 optimized_callback arch/x86/kernel/kprobes/opt.c:192 [inline] optimized_callback+0x163/0x1e0 arch/x86/kernel/kprobes/opt.c:171 0xffffffffa0008126 schedule+0xcb/0x270 kernel/sched/core.c:4603 worker_thread+0x14f/0x1310 kernel/workqueue.c:2437 kthread+0x38f/0x470 kernel/kthread.c:292 ret_from_fork+0x22/0x30 arch/x86/entry/entry_64.S:296 irq event stamp: 66168 hardirqs last enabled at (66167): [] asm_sysvec_call_function_single+0x12/0x20 arch/x86/include/asm/idtentry.h:652 hardirqs last disabled at (66168): [] __schedule+0xeef/0x1e70 kernel/sched/core.c:4425 softirqs last enabled at (66164): [] asm_call_irq_on_stack+0x12/0x20 softirqs last disabled at (66123): [] asm_call_irq_on_stack+0x12/0x20 other info that might help us debug this: Possible unsafe locking scenario: CPU0 ---- lock(&rp->lock/1); lock(&rp->lock/1); *** DEADLOCK *** 3 locks held by kworker/u4:5/417: #0: ffff888007fbf138 ((wq_completion)netns){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline] #0: ffff888007fbf138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic64_set include/asm-generic/atomic-instrumented.h:856 [inline] #0: ffff888007fbf138 ((wq_completion)netns){+.+.}-{0:0}, at: atomic_long_set include/asm-generic/atomic-long.h:41 [inline] #0: ffff888007fbf138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:617 [inline] #0: ffff888007fbf138 ((wq_completion)netns){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:644 [inline] #0: ffff888007fbf138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x8ac/0x1590 kernel/workqueue.c:2241 #1: ffff888043e77da8 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x8df/0x1590 kernel/workqueue.c:2245 #2: ffffffff852d1e10 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0x9b/0x8e0 net/core/net_namespace.c:566 stack backtrace: CPU: 1 PID: 417 Comm: kworker/u4:5 Not tainted 5.10.45 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS rel-1.14.0-0-g155821a1990b-prebuilt.qemu.org 04/01/2014 Workqueue: netns cleanup_net Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x107/0x163 lib/dump_stack.c:118 print_usage_bug include/trace/events/lock.h:13 [inline] verify_lock_unused kernel/locking/lockdep.c:5376 [inline] lock_acquire kernel/locking/lockdep.c:5435 [inline] lock_acquire.cold+0x3b/0x40 kernel/locking/lockdep.c:5409 _raw_spin_lock_irqsave_nested+0x38/0x60 kernel/locking/spinlock.c:373 pre_handler_kretprobe+0x42/0x5a0 kernel/kprobes.c:2048 aggr_pre_handler+0xbf/0x150 kernel/kprobes.c:1172 kprobe_int3_handler arch/x86/kernel/kprobes/core.c:716 [inline] kprobe_int3_handler+0x214/0x380 arch/x86/kernel/kprobes/core.c:682 do_int3+0xa/0x50 arch/x86/kernel/traps.c:613 exc_int3+0x2b/0x80 arch/x86/kernel/traps.c:658 asm_exc_int3+0x31/0x40 arch/x86/include/asm/idtentry.h:579 RIP: 0010:__switch_to_asm+0x1/0x70 arch/x86/entry/entry_64.S:232 Code: ff ff 48 c7 c7 80 f1 c0 84 e8 7b 6d 6a 00 e9 cc f7 ff ff 48 8b 7c 24 18 e8 6c 6d 6a 00 e9 e6 fb ff ff cc cc cc cc cc cc cc cc <53> 41 54 41 55 41 56 41 57 48 89 a7 18 14 00 00 48 8b a6 18 14 00 RSP: 0018:ffff888043e77a50 EFLAGS: 00000046 RAX: dffffc0000000000 RBX: ffff88806cf33198 RCX: ffff888043e779e0 RDX: 1ffff1100d9e6632 RSI: ffff8880443e0000 RDI: ffff88800d543280 RBP: ffff888043e77b28 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000001 R11: 0000000000000001 R12: ffff88806cf33180 R13: ffff88800d543280 R14: ffff88800d543670 R15: ffff8880443e0000 9pnet: Could not find request transport: dd 9pnet: Could not find request transport: dd 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd 9pnet: Insufficient options for proto=fd