BUG: scheduling while atomic: syz-executor.2/17280/0x00000002 Modules linked in: Preemption disabled at: [<0000000000000000>] 0x0 CPU: 1 PID: 17280 Comm: syz-executor.2 Not tainted 5.4.125-syzkaller-00242-g4d2f1b8fa9ba #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:2409 [inline] lock_sock_nested+0x1ed/0x310 net/core/sock.c:2955 lock_sock include/net/sock.h:1546 [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_set_ldisc+0x314/0x1100 drivers/tty/tty_ldisc.c:590 tiocsetd drivers/tty/tty_io.c:2334 [inline] tty_ioctl+0x142e/0x1710 drivers/tty/tty_io.c:2594 do_vfs_ioctl+0x76a/0x1720 fs/ioctl.c:47 ksys_ioctl fs/ioctl.c:742 [inline] __do_sys_ioctl fs/ioctl.c:749 [inline] __se_sys_ioctl fs/ioctl.c:747 [inline] __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4665d9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0714f21188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 00000000200001c0 RSI: 0000000000005423 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe1438f6df R14: 00007f0714f21300 R15: 0000000000022000 ------------[ cut here ]------------ DEBUG_LOCKS_WARN_ON(val > preempt_count()) WARNING: CPU: 0 PID: 17280 at kernel/sched/core.c:4019 preempt_count_sub+0x9c/0x160 kernel/sched/core.c:4019 Modules linked in: CPU: 0 PID: 17280 Comm: syz-executor.2 Tainted: G W 5.4.125-syzkaller-00242-g4d2f1b8fa9ba #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 5f a7 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 4b f3 de 00 85 c0 74 b1 48 c7 c0 54 3e 47 86 48 c1 RSP: 0018:ffff8881e99ff8f0 EFLAGS: 00010246 RAX: d605895466df0200 RBX: 0000000000000001 RCX: 0000000000040000 RDX: ffffc9000b6c6000 RSI: 000000000003ffff RDI: 0000000000040000 RBP: 0000000000000001 R08: ffffffff814e8ddf R09: fffffbfff0dc98da R10: fffffbfff0dc98da R11: 0000000000000000 R12: ffff8881e45db000 R13: dffffc0000000000 R14: dffffc0000000000 R15: ffff8881b189c000 FS: 00007f0714f21700(0000) GS:ffff8881f6e00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f31fad8c000 CR3: 00000001e828f000 CR4: 00000000001426f0 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_set_ldisc+0x314/0x1100 drivers/tty/tty_ldisc.c:590 tiocsetd drivers/tty/tty_io.c:2334 [inline] tty_ioctl+0x142e/0x1710 drivers/tty/tty_io.c:2594 do_vfs_ioctl+0x76a/0x1720 fs/ioctl.c:47 ksys_ioctl fs/ioctl.c:742 [inline] __do_sys_ioctl fs/ioctl.c:749 [inline] __se_sys_ioctl fs/ioctl.c:747 [inline] __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747 do_syscall_64+0xcb/0x1e0 arch/x86/entry/common.c:290 entry_SYSCALL_64_after_hwframe+0x44/0xa9 RIP: 0033:0x4665d9 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 bc ff ff ff f7 d8 64 89 01 48 RSP: 002b:00007f0714f21188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 000000000056bf80 RCX: 00000000004665d9 RDX: 00000000200001c0 RSI: 0000000000005423 RDI: 0000000000000004 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf80 R13: 00007ffe1438f6df R14: 00007f0714f21300 R15: 0000000000022000 ---[ end trace e3e55934f11c8bd4 ]---