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+0x20/0x40 kernel/locking/lockdep.c:2103, CPU#1: syz.4.5703/1380 Modules linked in: CPU: 1 UID: 0 PID: 1380 Comm: syz.4.5703 Not tainted syzkaller #0 PREEMPT(full) Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/16/2026 RIP: 0010:print_bfs_bug+0x22/0x40 kernel/locking/lockdep.c:2103 Code: 90 90 90 90 90 90 90 90 55 53 89 fb e8 c7 2d 38 03 89 c5 e8 c0 85 ff ff 85 ed 74 13 83 fb ff 74 16 48 8d 3d d0 12 da 0e 89 de <67> 48 0f b9 3a 5b 5d e9 c2 82 46 0a cc 48 c7 c7 c8 d5 5a 8e e8 05 RSP: 0018:ffffc900162972e8 EFLAGS: 00010046 RAX: 000000000000003b RBX: 00000000ffffffff RCX: bb7ac091e2d7f400 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff907da960 RBP: 0000000000000001 R08: ffffc90016297047 R09: 1ffff92002c52e08 R10: dffffc0000000000 R11: fffff52002c52e09 R12: 000000000000004c R13: ffffffff94472a70 R14: ffffffff9745ccc8 R15: ffffffff9745cda8 FS: 000055558ae8a500(0000) GS:ffff888124dc6000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007fd3636f9368 CR3: 0000000062150000 CR4: 00000000003526f0 Call Trace: check_irq_usage kernel/locking/lockdep.c:-1 [inline] check_prev_add kernel/locking/lockdep.c:3213 [inline] check_prevs_add kernel/locking/lockdep.c:3328 [inline] validate_chain kernel/locking/lockdep.c:3952 [inline] __lock_acquire+0x25ed/0x2de0 kernel/locking/lockdep.c:5288 lock_acquire+0x115/0x350 kernel/locking/lockdep.c:5942 seqcount_lockdep_reader_access+0x55/0x100 include/linux/seqlock.h:73 ktime_get+0x45/0x220 kernel/time/timekeeping.c:1002 clockevents_program_event+0x290/0x630 kernel/time/clockevents.c:363 hrtimer_rearm kernel/time/hrtimer.c:2176 [inline] __hrtimer_rearm_deferred+0x36c/0x4b0 kernel/time/hrtimer.c:2196 hrtimer_rearm_deferred_tif include/linux/hrtimer_rearm.h:58 [inline] hrtimer_rearm_deferred include/linux/hrtimer_rearm.h:67 [inline] irqentry_exit_to_kernel_mode_after_preempt include/linux/irq-entry-common.h:505 [inline] irqentry_exit_to_kernel_mode include/linux/irq-entry-common.h:542 [inline] irqentry_exit+0x8d3/0x910 kernel/entry/common.c:167 asm_sysvec_apic_timer_interrupt+0x1a/0x20 arch/x86/include/asm/idtentry.h:674 RIP: 0010:lock_acquire+0x232/0x350 kernel/locking/lockdep.c:5947 Code: ff ff ff e8 40 dc 43 0a f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 62 67 f2 11 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 7f e0 46 0a cc 48 8d 3d 87 6a da RSP: 0018:ffffc90016297748 EFLAGS: 00000286 RAX: bb7ac091e2d7f400 RBX: 0000000000000001 RCX: 8000000000000402 RDX: ffff888027ca0c00 RSI: ffffffff8e69ef61 RDI: ffffffff8c6dac80 RBP: ffff888027ca0000 R08: 0000000000000008 R09: ffffffff96b89380 R10: 00000000e84da623 R11: 000000002887de84 R12: ffff88807d9ce170 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246 __raw_spin_lock_bh include/linux/spinlock_api_smp.h:182 [inline] _raw_spin_lock_bh+0x36/0x50 kernel/locking/spinlock.c:205 spin_lock_bh include/linux/spinlock.h:353 [inline] dev_reset_queue+0x138/0x1b0 include/net/sch_generic.h:754 netdev_for_each_tx_queue include/linux/netdevice.h:2747 [inline] dev_deactivate_many+0x778/0xda0 net/sched/sch_generic.c:1394 __dev_close_many+0x180/0x6e0 net/core/dev.c:1782 netif_close_many+0x249/0x660 net/core/dev.c:1824 unregister_netdevice_many_notify+0xb76/0x2140 net/core/dev.c:12498 unregister_netdevice_many net/core/dev.c:12600 [inline] unregister_netdevice_queue+0x2f5/0x340 net/core/dev.c:12401 unregister_netdevice include/linux/netdevice.h:3485 [inline] __tun_detach+0x1074/0x1900 drivers/net/tun.c:637 tun_detach drivers/net/tun.c:653 [inline] tun_chr_close+0x10a/0x1c0 drivers/net/tun.c:3587 __fput+0x418/0xa50 fs/file_table.c:512 task_work_run+0x1d9/0x270 kernel/task_work.c:233 resume_user_mode_work include/linux/resume_user_mode.h:50 [inline] __exit_to_user_mode_loop kernel/entry/common.c:70 [inline] exit_to_user_mode_loop+0x204/0x770 kernel/entry/common.c:101 __exit_to_user_mode_prepare include/linux/irq-entry-common.h:207 [inline] syscall_exit_to_user_mode_prepare include/linux/irq-entry-common.h:230 [inline] syscall_exit_to_user_mode include/linux/entry-common.h:343 [inline] do_syscall_64+0x328/0x520 arch/x86/entry/syscall_64.c:89 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fb8e1b9e159 Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 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 e8 ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007fff449eeb48 EFLAGS: 00000246 ORIG_RAX: 00000000000001b4 RAX: 0000000000000000 RBX: 00007fb8e1e27da0 RCX: 00007fb8e1b9e159 RDX: 0000000000000000 RSI: 000000000000001e RDI: 0000000000000003 RBP: 00007fb8e1e27da0 R08: 00007fb8e1e26038 R09: 0000000000000000 R10: 00000000003ffbc8 R11: 0000000000000246 R12: 000000000018db99 R13: 00007fb8e1e2609c R14: 000000000018da14 R15: 00007fb8e1e26090 ---------------- Code disassembly (best guess): 0: 90 nop 1: 90 nop 2: 90 nop 3: 90 nop 4: 90 nop 5: 90 nop 6: 90 nop 7: 90 nop 8: 55 push %rbp 9: 53 push %rbx a: 89 fb mov %edi,%ebx c: e8 c7 2d 38 03 call 0x3382dd8 11: 89 c5 mov %eax,%ebp 13: e8 c0 85 ff ff call 0xffff85d8 18: 85 ed test %ebp,%ebp 1a: 74 13 je 0x2f 1c: 83 fb ff cmp $0xffffffff,%ebx 1f: 74 16 je 0x37 21: 48 8d 3d d0 12 da 0e lea 0xeda12d0(%rip),%rdi # 0xeda12f8 28: 89 de mov %ebx,%esi * 2a: 67 48 0f b9 3a ud1 (%edx),%rdi <-- trapping instruction 2f: 5b pop %rbx 30: 5d pop %rbp 31: e9 c2 82 46 0a jmp 0xa4682f8 36: cc int3 37: 48 c7 c7 c8 d5 5a 8e mov $0xffffffff8e5ad5c8,%rdi 3e: e8 .byte 0xe8 3f: 05 .byte 0x5