bond0 (unregistering): (slave bond_slave_0): Releasing backup interface Increase LOCKDEP_CIRCULAR_QUEUE_BITS to avoid this warning: ------------[ cut here ]------------ lockdep bfs error:-1 WARNING: kernel/locking/lockdep.c:2103 at print_bfs_bug+0x7f/0xf0 kernel/locking/lockdep.c:2103, CPU#3: kworker/u32:1/14 Modules linked in: CPU: 3 UID: 0 PID: 14 Comm: kworker/u32:1 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: netns cleanup_net RIP: 0010:print_bfs_bug+0x81/0xf0 kernel/locking/lockdep.c:2103 Code: 0a 48 c7 c7 e8 45 72 8e e8 6c 36 0b 0a 65 ff 0d 4d 94 d3 13 85 ed 74 17 83 fb ff 0f 84 f0 f1 38 ff 48 8d 3d a1 49 85 10 89 de <67> 48 0f b9 3a 5b 5d c3 cc cc cc cc 90 e8 dd ba 50 03 85 c0 74 1d RSP: 0018:ffffc90000117278 EFLAGS: 00010086 RAX: 000000000000003b RBX: 00000000ffffffff RCX: 0000000000000000 RDX: 000000000000003b RSI: 00000000ffffffff RDI: ffffffff926e7f00 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: ffffc9000011703f R11: 0000000000000000 R12: ffffc900001172f0 R13: ffff8880206857c8 R14: ffffc90000117330 R15: ffff8880206857a0 FS: 0000000000000000(0000) GS:ffff8880d4758000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f4a6c1f2b60 CR3: 000000000fd98000 CR4: 0000000000352ef0 Call Trace: check_irq_usage+0x32b/0x8b0 kernel/locking/lockdep.c:2860 check_prev_add+0xfe/0xe60 kernel/locking/lockdep.c:3213 check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x1528/0x1f40 kernel/locking/lockdep.c:5288 lock_acquire kernel/locking/lockdep.c:5942 [inline] lock_acquire+0x1d1/0x380 kernel/locking/lockdep.c:5899 _raw_spin_lock_nested+0x31/0x40 kernel/locking/spinlock.c:413 __mutex_unlock_slowpath+0x232/0x930 kernel/locking/mutex.c:1061 class_mutex_destructor include/linux/mutex.h:253 [inline] __static_key_slow_dec_cpuslocked.part.0+0xac/0xf0 kernel/jump_label.c:300 __static_key_slow_dec_cpuslocked kernel/jump_label.c:297 [inline] __static_key_slow_dec kernel/jump_label.c:321 [inline] static_key_slow_dec+0x7c/0xc0 kernel/jump_label.c:336 unblock_netpoll_tx include/net/bonding.h:100 [inline] __bond_release_one.cold+0x3be/0x1015 drivers/net/bonding/bond_main.c:2538 bond_uninit+0x113/0x180 drivers/net/bonding/bond_main.c:6081 unregister_netdevice_many_notify+0x1158/0x1e40 net/core/dev.c:12810 ops_exit_rtnl_list net/core/net_namespace.c:188 [inline] ops_undo_list+0x8fa/0xab0 net/core/net_namespace.c:249 cleanup_net+0x49d/0x920 net/core/net_namespace.c:713 process_one_work+0xaeb/0x1b40 kernel/workqueue.c:3497 process_scheduled_works kernel/workqueue.c:3580 [inline] worker_thread+0x5ef/0xe50 kernel/workqueue.c:3661 kthread+0x373/0x450 kernel/kthread.c:436 ret_from_fork+0x730/0xd60 arch/x86/kernel/process.c:158 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: 48 c7 c7 e8 45 72 8e mov $0xffffffff8e7245e8,%rdi 7: e8 6c 36 0b 0a call 0xa0b3678 c: 65 ff 0d 4d 94 d3 13 decl %gs:0x13d3944d(%rip) # 0x13d39460 13: 85 ed test %ebp,%ebp 15: 74 17 je 0x2e 17: 83 fb ff cmp $0xffffffff,%ebx 1a: 0f 84 f0 f1 38 ff je 0xff38f210 20: 48 8d 3d a1 49 85 10 lea 0x108549a1(%rip),%rdi # 0x108549c8 27: 89 de mov %ebx,%esi * 29: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2e: 5b pop %rbx 2f: 5d pop %rbp 30: c3 ret 31: cc int3 32: cc int3 33: cc int3 34: cc int3 35: 90 nop 36: e8 dd ba 50 03 call 0x350bb18 3b: 85 c0 test %eax,%eax 3d: 74 1d je 0x5c