Increase LOCKDEP_CIRCULAR_QUEUE_BITS to avoid this warning: ------------[ cut here ]------------ lockdep bfs error:-1 WARNING: CPU: 0 PID: 24474 at kernel/locking/lockdep.c:2090 print_bfs_bug+0x29/0x50 kernel/locking/lockdep.c:2090 Modules linked in: CPU: 0 UID: 0 PID: 24474 Comm: syz.2.5944 Not tainted 6.12.0-rc3-syzkaller-00185-g9efc44fb2dba #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/13/2024 RIP: 0010:print_bfs_bug+0x29/0x50 kernel/locking/lockdep.c:2090 Code: 90 55 53 89 fb e8 17 48 48 03 89 c5 e8 80 15 ff ff 85 ed 74 19 83 fb ff 74 1b 90 48 c7 c7 80 e2 0a 8c 89 de e8 d8 ea e4 ff 90 <0f> 0b 90 90 5b 5d c3 cc cc cc cc 48 c7 c7 20 e2 0a 8c e8 60 90 52 RSP: 0018:ffffc90003e36488 EFLAGS: 00010046 RAX: 696e5ab044ea6400 RBX: 00000000ffffffff RCX: ffff888024dc5a00 RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000001 R08: ffffffff8155e402 R09: 1ffff110170c519a R10: dffffc0000000000 R11: ffffed10170c519b R12: dffffc0000000001 R13: ffffffff96c567f8 R14: ffffffff93c94ee0 R15: ffffffff96c85fe8 FS: 00007fcb1a3116c0(0000) GS:ffff8880b8600000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007ffd12061648 CR3: 000000001f73c000 CR4: 00000000003526f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: check_irq_usage kernel/locking/lockdep.c:2829 [inline] check_prev_add kernel/locking/lockdep.c:3165 [inline] check_prevs_add kernel/locking/lockdep.c:3280 [inline] validate_chain+0x4809/0x5920 kernel/locking/lockdep.c:3904 __lock_acquire+0x1384/0x2050 kernel/locking/lockdep.c:5202 lock_acquire+0x1ed/0x550 kernel/locking/lockdep.c:5825 do_write_seqcount_begin_nested include/linux/seqlock.h:454 [inline] do_write_seqcount_begin include/linux/seqlock.h:480 [inline] psi_account_irqtime+0x34a/0x830 kernel/sched/psi.c:1026 __schedule+0x984/0x4b30 kernel/sched/core.c:6676 preempt_schedule_irq+0xfb/0x1c0 kernel/sched/core.c:7004 irqentry_exit+0x5e/0x90 kernel/entry/common.c:354 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:702 RIP: 0010:lock_acquire+0x264/0x550 kernel/locking/lockdep.c:5829 Code: 2b 00 74 08 4c 89 f7 e8 da 42 8e 00 f6 44 24 61 02 0f 85 85 01 00 00 41 f7 c7 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 <4b> c7 44 25 00 00 00 00 00 43 c7 44 25 09 00 00 00 00 43 c7 44 25 RSP: 0018:ffffc90003e36e00 EFLAGS: 00000206 RAX: 0000000000000001 RBX: 1ffff920007c6dcc RCX: 696e5ab044ea6400 RDX: dffffc0000000000 RSI: ffffffff8c0adc40 RDI: ffffffff8c610120 RBP: ffffc90003e36f50 R08: ffffffff96b68b5f R09: 1ffffffff2d6d16b R10: dffffc0000000000 R11: fffffbfff2d6d16c R12: 1ffff920007c6dc8 R13: dffffc0000000000 R14: ffffc90003e36e60 R15: 0000000000000246 touch_wq_lockdep_map+0xc7/0x170 kernel/workqueue.c:3880 __flush_workqueue+0x14f/0x1600 kernel/workqueue.c:3922 drain_workqueue+0xc9/0x3a0 kernel/workqueue.c:4086 destroy_workqueue+0xba/0xc40 kernel/workqueue.c:5830 wg_newlink+0x50d/0x640 drivers/net/wireguard/device.c:390 rtnl_newlink_create net/core/rtnetlink.c:3539 [inline] __rtnl_newlink net/core/rtnetlink.c:3759 [inline] rtnl_newlink+0x1591/0x20a0 net/core/rtnetlink.c:3772 rtnetlink_rcv_msg+0x73f/0xcf0 net/core/rtnetlink.c:6675 netlink_rcv_skb+0x1e3/0x430 net/netlink/af_netlink.c:2551 netlink_unicast_kernel net/netlink/af_netlink.c:1331 [inline] netlink_unicast+0x7f6/0x990 net/netlink/af_netlink.c:1357 netlink_sendmsg+0x8e4/0xcb0 net/netlink/af_netlink.c:1901 sock_sendmsg_nosec net/socket.c:729 [inline] __sock_sendmsg+0x221/0x270 net/socket.c:744 ____sys_sendmsg+0x52a/0x7e0 net/socket.c:2607 ___sys_sendmsg net/socket.c:2661 [inline] __sys_sendmsg+0x292/0x380 net/socket.c:2690 do_syscall_x64 arch/x86/entry/common.c:52 [inline] do_syscall_64+0xf3/0x230 arch/x86/entry/common.c:83 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fcb1957e719 Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 a8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fcb1a311038 EFLAGS: 00000246 ORIG_RAX: 000000000000002e RAX: ffffffffffffffda RBX: 00007fcb19735f80 RCX: 00007fcb1957e719 RDX: 0000000000000000 RSI: 0000000020000000 RDI: 0000000000000003 RBP: 00007fcb195f12be R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007fcb19735f80 R15: 00007ffddf306a38 ---------------- Code disassembly (best guess): 0: 2b 00 sub (%rax),%eax 2: 74 08 je 0xc 4: 4c 89 f7 mov %r14,%rdi 7: e8 da 42 8e 00 call 0x8e42e6 c: f6 44 24 61 02 testb $0x2,0x61(%rsp) 11: 0f 85 85 01 00 00 jne 0x19c 17: 41 f7 c7 00 02 00 00 test $0x200,%r15d 1e: 74 01 je 0x21 20: fb sti 21: 48 c7 44 24 40 0e 36 movq $0x45e0360e,0x40(%rsp) 28: e0 45 * 2a: 4b c7 44 25 00 00 00 movq $0x0,0x0(%r13,%r12,1) <-- trapping instruction 31: 00 00 33: 43 c7 44 25 09 00 00 movl $0x0,0x9(%r13,%r12,1) 3a: 00 00 3c: 43 rex.XB 3d: c7 .byte 0xc7 3e: 44 rex.R 3f: 25 .byte 0x25