INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 9427 Comm: syz-executor.1 Not tainted 5.4.0-rc7+ #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+0x197/0x210 lib/dump_stack.c:118 assign_lock_key kernel/locking/lockdep.c:881 [inline] register_lock_class+0x179e/0x1850 kernel/locking/lockdep.c:1190 __lock_acquire+0xf4/0x4a00 kernel/locking/lockdep.c:3837 lock_acquire+0x190/0x410 kernel/locking/lockdep.c:4487 percpu_down_read include/linux/percpu-rwsem.h:40 [inline] hci_uart_flush+0x110/0x510 drivers/bluetooth/hci_ldisc.c:241 hci_uart_close drivers/bluetooth/hci_ldisc.c:267 [inline] hci_uart_tty_close+0x8e/0x280 drivers/bluetooth/hci_ldisc.c:534 tty_ldisc_close.isra.0+0x119/0x1a0 drivers/tty/tty_ldisc.c:494 tty_ldisc_kill+0x9c/0x160 drivers/tty/tty_ldisc.c:642 tty_ldisc_release+0xe9/0x2b0 drivers/tty/tty_ldisc.c:814 tty_release_struct+0x1b/0x50 drivers/tty/tty_io.c:1612 tty_release+0xbcb/0xe90 drivers/tty/tty_io.c:1785 __fput+0x2ff/0x890 fs/file_table.c:280 ____fput+0x16/0x20 fs/file_table.c:313 task_work_run+0x145/0x1c0 kernel/task_work.c:113 get_signal+0x2078/0x2500 kernel/signal.c:2528 do_signal+0x87/0x1700 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x286/0x380 arch/x86/entry/common.c:159 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:348 [inline] do_fast_syscall_32+0xb87/0xdb3 arch/x86/entry/common.c:404 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f2ba39 Code: 00 00 00 89 d3 5b 5e 5f 5d c3 b8 80 96 98 00 eb c4 8b 04 24 c3 8b 1c 24 c3 8b 34 24 c3 8b 3c 24 c3 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7f060cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00000000400455c8 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 9427 Comm: syz-executor.1 Not tainted 5.4.0-rc7+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__wake_up_common+0xdf/0x610 kernel/sched/wait.c:86 Code: 05 00 00 4c 8b 43 38 49 83 e8 18 49 8d 78 18 48 39 7d d0 0f 84 64 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 0d 05 00 00 49 8b 40 18 89 55 b0 31 db 49 bc 00 RSP: 0018:ffff88809cec7808 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff88809844d8b8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff138d576 RDI: 0000000000000000 RBP: ffff88809cec7860 R08: ffffffffffffffe8 R09: 0000000000000000 R10: ffffed10139d8efc R11: 0000000000000003 R12: ffff88809844d900 R13: ffff88809844d8b0 R14: 0000000000000000 R15: ffff88809844d8b8 FS: 0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:00000000f7f06b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000000625208 CR3: 000000008eb72000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __wake_up_locked+0x11/0x20 kernel/sched/wait.c:151 rcu_sync_func+0x16f/0x200 kernel/rcu/sync.c:87 rcu_sync_enter+0x158/0x310 kernel/rcu/sync.c:150 percpu_down_write+0x61/0x3f0 kernel/locking/percpu-rwsem.c:146 hci_uart_tty_close+0x154/0x280 drivers/bluetooth/hci_ldisc.c:537 tty_ldisc_close.isra.0+0x119/0x1a0 drivers/tty/tty_ldisc.c:494 tty_ldisc_kill+0x9c/0x160 drivers/tty/tty_ldisc.c:642 tty_ldisc_release+0xe9/0x2b0 drivers/tty/tty_ldisc.c:814 tty_release_struct+0x1b/0x50 drivers/tty/tty_io.c:1612 tty_release+0xbcb/0xe90 drivers/tty/tty_io.c:1785 __fput+0x2ff/0x890 fs/file_table.c:280 ____fput+0x16/0x20 fs/file_table.c:313 task_work_run+0x145/0x1c0 kernel/task_work.c:113 get_signal+0x2078/0x2500 kernel/signal.c:2528 do_signal+0x87/0x1700 arch/x86/kernel/signal.c:815 exit_to_usermode_loop+0x286/0x380 arch/x86/entry/common.c:159 prepare_exit_to_usermode arch/x86/entry/common.c:194 [inline] syscall_return_slowpath arch/x86/entry/common.c:274 [inline] do_syscall_32_irqs_on arch/x86/entry/common.c:348 [inline] do_fast_syscall_32+0xb87/0xdb3 arch/x86/entry/common.c:404 entry_SYSENTER_compat+0x70/0x7f arch/x86/entry/entry_64_compat.S:139 RIP: 0023:0xf7f2ba39 Code: 00 00 00 89 d3 5b 5e 5f 5d c3 b8 80 96 98 00 eb c4 8b 04 24 c3 8b 1c 24 c3 8b 34 24 c3 8b 3c 24 c3 51 52 55 89 e5 0f 34 cd 80 <5d> 5a 59 c3 90 90 90 90 eb 0d 90 90 90 90 90 90 90 90 90 90 90 90 RSP: 002b:00000000f7f060cc EFLAGS: 00000296 ORIG_RAX: 0000000000000036 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 00000000400455c8 RDX: 0000000000000002 RSI: 0000000000000000 RDI: 0000000000000000 RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000000 R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000 Modules linked in: ---[ end trace 41211dc17633078f ]--- RIP: 0010:__wake_up_common+0xdf/0x610 kernel/sched/wait.c:86 Code: 05 00 00 4c 8b 43 38 49 83 e8 18 49 8d 78 18 48 39 7d d0 0f 84 64 02 00 00 48 b8 00 00 00 00 00 fc ff df 48 89 f9 48 c1 e9 03 <80> 3c 01 00 0f 85 0d 05 00 00 49 8b 40 18 89 55 b0 31 db 49 bc 00 RSP: 0018:ffff88809cec7808 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff88809844d8b8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff138d576 RDI: 0000000000000000 RBP: ffff88809cec7860 R08: ffffffffffffffe8 R09: 0000000000000000 R10: ffffed10139d8efc R11: 0000000000000003 R12: ffff88809844d900 R13: ffff88809844d8b0 R14: 0000000000000000 R15: ffff88809844d8b8 FS: 0000000000000000(0000) GS:ffff8880ae900000(0063) knlGS:00000000f7f06b40 CS: 0010 DS: 002b ES: 002b CR0: 0000000080050033 CR2: 0000000000625208 CR3: 000000008eb72000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400