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: 0 PID: 12501 Comm: syz-executor.1 Not tainted 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1ae/0x29f lib/dump_stack.c:105 register_lock_class+0xe18/0x1210 kernel/locking/lockdep.c:938 __lock_acquire+0x174/0x6100 kernel/locking/lockdep.c:4894 lock_acquire+0x182/0x4a0 kernel/locking/lockdep.c:5625 percpu_down_read+0x46/0x190 include/linux/percpu-rwsem.h:51 hci_uart_flush+0xcd/0x310 drivers/bluetooth/hci_ldisc.c:240 hci_uart_close drivers/bluetooth/hci_ldisc.c:266 [inline] hci_uart_tty_close+0x8e/0x280 drivers/bluetooth/hci_ldisc.c:533 tty_ldisc_close drivers/tty/tty_ldisc.c:474 [inline] tty_ldisc_kill drivers/tty/tty_ldisc.c:629 [inline] tty_ldisc_release+0x362/0x7f0 drivers/tty/tty_ldisc.c:803 tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1706 tty_release+0xc5f/0xef0 drivers/tty/tty_io.c:1878 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:164 get_signal+0x1fd9/0x2080 kernel/signal.c:2581 arch_do_signal_or_restart+0x8e/0x6d0 arch/x86/kernel/signal.c:865 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+0x191/0x220 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:302 do_syscall_64+0x4c/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 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:00007f412dab6188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 000000000056c0f0 RCX: 00000000004665e9 RDX: 0000000000000004 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 00007ffdf4aaaf2f R14: 00007f412dab6300 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: 0 PID: 12501 Comm: syz-executor.1 Not tainted 5.14.0-rc6-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__wake_up_common kernel/sched/wait.c:96 [inline] RIP: 0010:__wake_up_locked+0xa7/0x1a0 kernel/sched/wait.c:166 Code: 00 fc ff df 4c 8b 73 40 66 66 2e 0f 1f 84 00 00 00 00 00 4d 39 f4 0f 84 b3 00 00 00 4c 89 f3 49 8d 6e e8 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 fb 5c 6a 00 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc90002bdf788 EFLAGS: 00010046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88801b17b0c8 RBP: ffffffffffffffe8 R08: dffffc0000000000 R09: 0000000000000003 R10: fffff5200057bed5 R11: 0000000000000004 R12: ffff88801b17b108 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001 FS: 00007f412dab6700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7355b12258 CR3: 000000002dede000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 Call Trace: rcu_sync_func+0xa8/0x200 kernel/rcu/sync.c:87 rcu_sync_enter+0x1fa/0x340 kernel/rcu/sync.c:150 percpu_down_write+0x5e/0x2f0 kernel/locking/percpu-rwsem.c:220 hci_uart_tty_close+0x123/0x280 drivers/bluetooth/hci_ldisc.c:536 tty_ldisc_close drivers/tty/tty_ldisc.c:474 [inline] tty_ldisc_kill drivers/tty/tty_ldisc.c:629 [inline] tty_ldisc_release+0x362/0x7f0 drivers/tty/tty_ldisc.c:803 tty_release_struct+0x27/0xd0 drivers/tty/tty_io.c:1706 tty_release+0xc5f/0xef0 drivers/tty/tty_io.c:1878 __fput+0x352/0x7b0 fs/file_table.c:280 task_work_run+0x146/0x1c0 kernel/task_work.c:164 get_signal+0x1fd9/0x2080 kernel/signal.c:2581 arch_do_signal_or_restart+0x8e/0x6d0 arch/x86/kernel/signal.c:865 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+0x191/0x220 kernel/entry/common.c:209 __syscall_exit_to_user_mode_work kernel/entry/common.c:291 [inline] syscall_exit_to_user_mode+0x26/0x60 kernel/entry/common.c:302 do_syscall_64+0x4c/0xb0 arch/x86/entry/common.c:86 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x4665e9 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:00007f412dab6188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 000000000056c0f0 RCX: 00000000004665e9 RDX: 0000000000000004 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 00000000004bfcc4 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056c0f0 R13: 00007ffdf4aaaf2f R14: 00007f412dab6300 R15: 0000000000022000 Modules linked in: ---[ end trace 58fa77b868892d42 ]--- RIP: 0010:__wake_up_common kernel/sched/wait.c:96 [inline] RIP: 0010:__wake_up_locked+0xa7/0x1a0 kernel/sched/wait.c:166 Code: 00 fc ff df 4c 8b 73 40 66 66 2e 0f 1f 84 00 00 00 00 00 4d 39 f4 0f 84 b3 00 00 00 4c 89 f3 49 8d 6e e8 4c 89 f0 48 c1 e8 03 <80> 3c 10 00 74 12 48 89 df e8 fb 5c 6a 00 48 ba 00 00 00 00 00 fc RSP: 0018:ffffc90002bdf788 EFLAGS: 00010046 RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001 RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff88801b17b0c8 RBP: ffffffffffffffe8 R08: dffffc0000000000 R09: 0000000000000003 R10: fffff5200057bed5 R11: 0000000000000004 R12: ffff88801b17b108 R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001 FS: 00007f412dab6700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f7355b12258 CR3: 000000002dede000 CR4: 00000000001506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess), 1 bytes skipped: 0: ff c3 inc %ebx 2: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1) 9: 00 00 00 c: 0f 1f 40 00 nopl 0x0(%rax) 10: 48 89 f8 mov %rdi,%rax 13: 48 89 f7 mov %rsi,%rdi 16: 48 89 d6 mov %rdx,%rsi 19: 48 89 ca mov %rcx,%rdx 1c: 4d 89 c2 mov %r8,%r10 1f: 4d 89 c8 mov %r9,%r8 22: 4c 8b 4c 24 08 mov 0x8(%rsp),%r9 27: 0f 05 syscall 29: 48 3d 01 f0 ff ff cmp $0xfffffffffffff001,%rax <-- trapping instruction 2f: 73 01 jae 0x32 31: c3 retq 32: 48 c7 c1 bc ff ff ff mov $0xffffffffffffffbc,%rcx 39: f7 d8 neg %eax 3b: 64 89 01 mov %eax,%fs:(%rcx) 3e: 48 rex.W