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#0: syz-executor/5582 Modules linked in: CPU: 0 UID: 0 PID: 5582 Comm: syz-executor Not tainted syzkaller #0 PREEMPT_{RT,(full)} Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/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 77 3e 29 03 89 c5 e8 e0 85 ff ff 85 ed 74 13 83 fb ff 74 16 48 8d 3d 20 dd 12 0f 89 de <67> 48 0f b9 3a 5b 5d e9 42 df bb 09 cc 48 c7 c7 8e 9a a4 8d e8 35 RSP: 0018:ffffc900053bf2b0 EFLAGS: 00010046 RAX: 000000000000003b RBX: 00000000ffffffff RCX: ee665eccd30fd700 RDX: 0000000000000000 RSI: 00000000ffffffff RDI: ffffffff90b54830 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000000000000000 R10: dffffc0000000000 R11: fffff52000a77e05 R12: 0000000000000044 R13: ffffffff9454c5e8 R14: ffffffff9745c8d8 R15: ffffffff9745c9b8 FS: 000055557351e500(0000) GS:ffff8881249bb000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f0f144e7b4c CR3: 0000000058112000 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 do_write_seqcount_begin_nested include/linux/seqlock.h:478 [inline] do_write_seqcount_begin include/linux/seqlock.h:504 [inline] psi_write_begin+0xa9/0x160 kernel/sched/psi.c:183 psi_account_irqtime+0x1dd/0x6d0 kernel/sched/psi.c:1030 __schedule+0x971/0x5700 kernel/sched/core.c:7277 preempt_schedule_irq+0x4b/0x90 kernel/sched/core.c:7606 irqentry_exit_to_kernel_mode include/linux/irq-entry-common.h:539 [inline] irqentry_exit+0x14f/0x920 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 a0 68 b8 09 f7 44 24 10 00 02 00 00 0f 84 38 ff ff ff 65 48 8b 05 e2 42 04 12 48 3b 44 24 50 75 33 fb 48 83 c4 58 <5b> 41 5c 41 5d 41 5e 41 5f 5d e9 ff 3c bc 09 cc 48 8d 3d d7 34 13 RSP: 0018:ffffc900053bf848 EFLAGS: 00000286 RAX: ee665eccd30fd700 RBX: 0000000000000001 RCX: 0000000000000046 RDX: ffff88802f028c40 RSI: ffffffff8db329e5 RDI: ffffffff8bcc6980 RBP: ffff88802f028000 R08: 0000000000000008 R09: ffffffff96da1728 R10: 00000000ee185589 R11: 00000000f5c32e28 R12: ffff88804141e938 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000246 touch_wq_lockdep_map+0xcb/0x180 kernel/workqueue.c:4111 __flush_workqueue+0x148/0x1470 kernel/workqueue.c:4153 drain_workqueue+0xce/0x380 kernel/workqueue.c:4317 destroy_workqueue+0xbb/0xc60 kernel/workqueue.c:6155 btrfs_destroy_workqueue+0x45/0x230 fs/btrfs/async-thread.c:358 btrfs_stop_all_workers+0x1cc/0x280 fs/btrfs/disk-io.c:1775 close_ctree+0x7f8/0x1230 fs/btrfs/disk-io.c:4594 generic_shutdown_super+0x13d/0x2d0 fs/super.c:751 kill_anon_super+0x3b/0x70 fs/super.c:1355 btrfs_kill_super+0x41/0x50 fs/btrfs/super.c:2152 deactivate_locked_super+0xbe/0x110 fs/super.c:586 cleanup_mnt+0x204/0x2a0 fs/namespace.c:1392 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:0x7fea53a8f517 Code: a2 c7 05 dc 61 25 00 00 00 00 00 eb 96 e8 e1 12 00 00 90 31 f6 e9 09 00 00 00 66 0f 1f 84 00 00 00 00 00 b8 a6 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 01 c3 48 c7 c2 e8 ff ff ff f7 d8 64 89 02 b8 RSP: 002b:00007ffe3ab373a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6 RAX: 0000000000000000 RBX: 00007fea53b24ccb RCX: 00007fea53a8f517 RDX: 0000000000000000 RSI: 0000000000000009 RDI: 00007ffe3ab37460 RBP: 00007ffe3ab37460 R08: 00007ffe3ab38460 R09: 00000000ffffffff R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffe3ab384f0 R13: 00007fea53b24ccb R14: 000000000011fe2f R15: 00007ffe3ab38530 ---------------- 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 77 3e 29 03 call 0x3293e88 11: 89 c5 mov %eax,%ebp 13: e8 e0 85 ff ff call 0xffff85f8 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 20 dd 12 0f lea 0xf12dd20(%rip),%rdi # 0xf12dd48 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 42 df bb 09 jmp 0x9bbdf78 36: cc int3 37: 48 c7 c7 8e 9a a4 8d mov $0xffffffff8da49a8e,%rdi 3e: e8 .byte 0xe8 3f: 35 .byte 0x35