INFO: trying to register non-static key. The code is fine but needs lockdep annotation, or maybe you didn't initialize this object before use? turning off the locking correctness validator. CPU: 1 PID: 17502 Comm: syz-executor.1 Not tainted 5.13.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:79 [inline] dump_stack+0x141/0x1d7 lib/dump_stack.c:120 assign_lock_key kernel/locking/lockdep.c:937 [inline] register_lock_class+0x1077/0x1180 kernel/locking/lockdep.c:1249 __lock_acquire+0x102/0x5230 kernel/locking/lockdep.c:4781 lock_acquire kernel/locking/lockdep.c:5512 [inline] lock_acquire+0x1ab/0x740 kernel/locking/lockdep.c:5477 percpu_down_read include/linux/percpu-rwsem.h:51 [inline] hci_uart_flush+0x11b/0x550 drivers/bluetooth/hci_ldisc.c:240 hci_uart_close+0x20/0x80 drivers/bluetooth/hci_ldisc.c:266 hci_uart_tty_close+0xb1/0x2a0 drivers/bluetooth/hci_ldisc.c:533 tty_ldisc_close+0x110/0x190 drivers/tty/tty_ldisc.c:489 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:644 tty_ldisc_release+0xe1/0x2a0 drivers/tty/tty_ldisc.c:818 tty_release_struct+0x20/0xe0 drivers/tty/tty_io.c:1713 tty_release+0xc70/0x1210 drivers/tty/tty_io.c:1884 __fput+0x288/0x920 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 get_signal+0x1ba2/0x2150 kernel/signal.c:2608 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x180/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae 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:00007f93c4830188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 000000000056c0f0 RCX: 00000000004665d9 RDX: 0000000000000004 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 0000000000a9fb1f R14: 00007f93c4830300 R15: 0000000000022000 general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 1 PID: 17502 Comm: syz-executor.1 Not tainted 5.13.0-rc7-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__wake_up_common+0xdf/0x650 kernel/sched/wait.c:101 Code: 05 00 00 4c 8b 43 40 49 83 e8 18 49 8d 78 18 48 3b 3c 24 0f 84 6a 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 40 05 00 00 49 8b 40 18 89 54 24 10 31 db 48 bd RSP: 0018:ffffc900126078d0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880319954c8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff1b935a9 RDI: 0000000000000000 RBP: ffff888031995518 R08: ffffffffffffffe8 R09: 0000000000000000 R10: fffff520024c0f14 R11: 0000000000000001 R12: ffff8880319954c0 R13: 0000000000000297 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f93c4830700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000541198 CR3: 000000003520d000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_sync_func+0x119/0x180 kernel/rcu/sync.c:87 rcu_sync_enter+0x150/0x2e0 kernel/rcu/sync.c:150 percpu_down_write+0x9d/0x440 kernel/locking/percpu-rwsem.c:220 hci_uart_tty_close+0x162/0x2a0 drivers/bluetooth/hci_ldisc.c:536 tty_ldisc_close+0x110/0x190 drivers/tty/tty_ldisc.c:489 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:644 tty_ldisc_release+0xe1/0x2a0 drivers/tty/tty_ldisc.c:818 tty_release_struct+0x20/0xe0 drivers/tty/tty_io.c:1713 tty_release+0xc70/0x1210 drivers/tty/tty_io.c:1884 __fput+0x288/0x920 fs/file_table.c:280 task_work_run+0xdd/0x1a0 kernel/task_work.c:164 get_signal+0x1ba2/0x2150 kernel/signal.c:2608 arch_do_signal_or_restart+0x2a8/0x1eb0 arch/x86/kernel/signal.c:789 handle_signal_work kernel/entry/common.c:148 [inline] exit_to_user_mode_loop kernel/entry/common.c:172 [inline] exit_to_user_mode_prepare+0x180/0x290 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x19/0x60 kernel/entry/common.c:302 do_syscall_64+0x47/0xb0 arch/x86/entry/common.c:57 entry_SYSCALL_64_after_hwframe+0x44/0xae 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:00007f93c4830188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 000000000056c0f0 RCX: 00000000004665d9 RDX: 0000000000000004 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 00000000004bfcb9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 0000000000a9fb1f R14: 00007f93c4830300 R15: 0000000000022000 Modules linked in: ---[ end trace ec59e62cff52582a ]--- RIP: 0010:__wake_up_common+0xdf/0x650 kernel/sched/wait.c:101 Code: 05 00 00 4c 8b 43 40 49 83 e8 18 49 8d 78 18 48 3b 3c 24 0f 84 6a 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 40 05 00 00 49 8b 40 18 89 54 24 10 31 db 48 bd RSP: 0018:ffffc900126078d0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff8880319954c8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff1b935a9 RDI: 0000000000000000 RBP: ffff888031995518 R08: ffffffffffffffe8 R09: 0000000000000000 R10: fffff520024c0f14 R11: 0000000000000001 R12: ffff8880319954c0 R13: 0000000000000297 R14: 0000000000000000 R15: 0000000000000000 FS: 00007f93c4830700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000541198 CR3: 000000003520d000 CR4: 00000000001526e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400