BUG: scheduling while atomic: syz-executor.1/9644/0x00000002 Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 9644 Comm: syz-executor.1 Not tainted 5.4.125-syzkaller-00008-ga8f2bcabf9c5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x1d8/0x24e lib/dump_stack.c:118 __schedule_bug+0x1af/0x240 kernel/sched/core.c:4076 schedule_debug kernel/sched/core.c:4100 [inline] __schedule+0xa42/0x1170 kernel/sched/core.c:4219 schedule+0x13b/0x1d0 kernel/sched/core.c:4355 __lock_sock net/core/sock.c:2414 [inline] lock_sock_nested+0x1ed/0x310 net/core/sock.c:2960 lock_sock include/net/sock.h:1549 [inline] hci_sock_dev_event+0x2da/0x570 net/bluetooth/hci_sock.c:758 hci_unregister_dev+0x2a5/0x13f0 net/bluetooth/hci_core.c:3424 hci_uart_tty_close+0x1a2/0x220 drivers/bluetooth/hci_ldisc.c:545 tty_ldisc_close drivers/tty/tty_ldisc.c:494 [inline] tty_ldisc_kill drivers/tty/tty_ldisc.c:642 [inline] tty_ldisc_release+0x272/0x600 drivers/tty/tty_ldisc.c:814 tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1612 tty_release+0xdd7/0x10a0 drivers/tty/tty_io.c:1785 __fput+0x27d/0x6c0 fs/file_table.c:281 task_work_run+0x186/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x2b0/0x310 arch/x86/entry/common.c:194 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4193fb Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffe1e0d09a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004193fb RDX: 0000000000570260 RSI: 00007fb4d68dbf40 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b31d236f8 R10: 0000000000000564 R11: 0000000000000293 R12: 000000000005df6e R13: 00000000000003e8 R14: 000000000056bf80 R15: 000000000005df4a ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(val > preempt_count()) WARNING: CPU: 1 PID: 9644 at kernel/sched/core.c:4019 preempt_count_sub+0x9c/0x160 kernel/sched/core.c:4019 Modules linked in: CPU: 1 PID: 9644 Comm: syz-executor.1 Tainted: G W 5.4.125-syzkaller-00008-ga8f2bcabf9c5 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:preempt_count_sub+0x9c/0x160 kernel/sched/core.c:4019 Code: 42 8a 04 30 84 c0 0f 85 89 00 00 00 83 3d 9f af 00 05 00 75 d3 48 c7 c7 80 cb aa 84 48 c7 c6 20 cc aa 84 31 c0 e8 54 33 f6 ff <0f> 0b eb ba e8 fb fe de 00 85 c0 74 b1 48 c7 c0 94 46 47 86 48 c1 RSP: 0018:ffff8881dd31fc48 EFLAGS: 00010246 RAX: e41a48f752497b00 RBX: 0000000000000001 RCX: ffff8881dfa1bf00 RDX: 0000000000000000 RSI: 00000000000009bc RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff814e8e0f R09: fffffbfff0dcd2da R10: fffffbfff0dcd2da R11: 0000000000000000 R12: ffff8881e4aad400 R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff8881e8f60000 FS: 0000000002b4d400(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000002b4d3bc CR3: 00000001f42f6000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __raw_read_unlock include/linux/rwlock_api_smp.h:227 [inline] _raw_read_unlock+0x21/0x40 kernel/locking/spinlock.c:255 hci_unregister_dev+0x2a5/0x13f0 net/bluetooth/hci_core.c:3424 hci_uart_tty_close+0x1a2/0x220 drivers/bluetooth/hci_ldisc.c:545 tty_ldisc_close drivers/tty/tty_ldisc.c:494 [inline] tty_ldisc_kill drivers/tty/tty_ldisc.c:642 [inline] tty_ldisc_release+0x272/0x600 drivers/tty/tty_ldisc.c:814 tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1612 tty_release+0xdd7/0x10a0 drivers/tty/tty_io.c:1785 __fput+0x27d/0x6c0 fs/file_table.c:281 task_work_run+0x186/0x1b0 kernel/task_work.c:113 tracehook_notify_resume include/linux/tracehook.h:188 [inline] exit_to_usermode_loop arch/x86/entry/common.c:163 [inline] prepare_exit_to_usermode+0x2b0/0x310 arch/x86/entry/common.c:194 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4193fb Code: 0f 05 48 3d 00 f0 ff ff 77 45 c3 0f 1f 40 00 48 83 ec 18 89 7c 24 0c e8 63 fc ff ff 8b 7c 24 0c 41 89 c0 b8 03 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 35 44 89 c7 89 44 24 0c e8 a1 fc ff ff 8b 44 RSP: 002b:00007ffe1e0d09a0 EFLAGS: 00000293 ORIG_RAX: 0000000000000003 RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00000000004193fb RDX: 0000000000570260 RSI: 00007fb4d68dbf40 RDI: 0000000000000003 RBP: 0000000000000001 R08: 0000000000000000 R09: 0000001b31d236f8 R10: 0000000000000564 R11: 0000000000000293 R12: 000000000005df6e R13: 00000000000003e8 R14: 000000000056bf80 R15: 000000000005df4a ---[ end trace ab96d608406762e1 ]--- ---------------- Code disassembly (best guess): 0: 0f 05 syscall 2: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax 8: 77 45 ja 0x4f a: c3 retq b: 0f 1f 40 00 nopl 0x0(%rax) f: 48 83 ec 18 sub $0x18,%rsp 13: 89 7c 24 0c mov %edi,0xc(%rsp) 17: e8 63 fc ff ff callq 0xfffffc7f 1c: 8b 7c 24 0c mov 0xc(%rsp),%edi 20: 41 89 c0 mov %eax,%r8d 23: b8 03 00 00 00 mov $0x3,%eax 28: 0f 05 syscall 2a: 48 3d 00 f0 ff ff cmp $0xfffffffffffff000,%rax <-- trapping instruction 30: 77 35 ja 0x67 32: 44 89 c7 mov %r8d,%edi 35: 89 44 24 0c mov %eax,0xc(%rsp) 39: e8 a1 fc ff ff callq 0xfffffcdf 3e: 8b .byte 0x8b 3f: 44 rex.R