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: 16181 Comm: syz-executor.4 Not tainted 5.15.0-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+0xcd/0x134 lib/dump_stack.c:106 assign_lock_key kernel/locking/lockdep.c:939 [inline] register_lock_class+0xf79/0x10c0 kernel/locking/lockdep.c:1251 __lock_acquire+0x105/0x54a0 kernel/locking/lockdep.c:4894 lock_acquire kernel/locking/lockdep.c:5625 [inline] lock_acquire+0x1ab/0x510 kernel/locking/lockdep.c:5590 percpu_down_read include/linux/percpu-rwsem.h:51 [inline] hci_uart_flush+0x119/0x550 drivers/bluetooth/hci_ldisc.c:240 hci_uart_close+0x1d/0x70 drivers/bluetooth/hci_ldisc.c:266 hci_uart_tty_close+0xb1/0x2a0 drivers/bluetooth/hci_ldisc.c:536 tty_ldisc_close+0x110/0x190 drivers/tty/tty_ldisc.c:474 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:629 tty_ldisc_hangup+0x30b/0x680 drivers/tty/tty_ldisc.c:749 __tty_hangup.part.0+0x40a/0x830 drivers/tty/tty_io.c:639 __tty_hangup drivers/tty/tty_io.c:594 [inline] tty_vhangup drivers/tty/tty_io.c:711 [inline] tty_ioctl+0xcda/0x1670 drivers/tty/tty_io.c:2745 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ff2e18c1ae9 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:00007ff2ded92188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff2e19d5320 RCX: 00007ff2e18c1ae9 RDX: 0000000000000000 RSI: 0000000000005437 RDI: 0000000000000005 RBP: 00007ff2e191bf25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff686aa0ef R14: 00007ff2ded92300 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: 16181 Comm: syz-executor.4 Not tainted 5.15.0-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:ffffc9000471fa48 EFLAGS: 00010056 RAX: dffffc0000000000 RBX: ffff8880799fc4c8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff1adf0ed RDI: 0000000000000000 RBP: ffff8880799fc518 R08: ffffffffffffffe8 R09: 0000000000000000 R10: fffff520008e3f43 R11: 0000000000000001 R12: ffff8880799fc4c0 R13: 0000000000000297 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff2ded92700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005624b080e050 CR3: 000000007c2da000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 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+0x55/0x3e0 kernel/locking/percpu-rwsem.c:220 hci_uart_tty_close+0x162/0x2a0 drivers/bluetooth/hci_ldisc.c:539 tty_ldisc_close+0x110/0x190 drivers/tty/tty_ldisc.c:474 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:629 tty_ldisc_hangup+0x30b/0x680 drivers/tty/tty_ldisc.c:749 __tty_hangup.part.0+0x40a/0x830 drivers/tty/tty_io.c:639 __tty_hangup drivers/tty/tty_io.c:594 [inline] tty_vhangup drivers/tty/tty_io.c:711 [inline] tty_ioctl+0xcda/0x1670 drivers/tty/tty_io.c:2745 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:874 [inline] __se_sys_ioctl fs/ioctl.c:860 [inline] __x64_sys_ioctl+0x193/0x200 fs/ioctl.c:860 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x35/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x44/0xae RIP: 0033:0x7ff2e18c1ae9 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:00007ff2ded92188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007ff2e19d5320 RCX: 00007ff2e18c1ae9 RDX: 0000000000000000 RSI: 0000000000005437 RDI: 0000000000000005 RBP: 00007ff2e191bf25 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007fff686aa0ef R14: 00007ff2ded92300 R15: 0000000000022000 Modules linked in: ---[ end trace 67db56223f57f950 ]--- 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:ffffc9000471fa48 EFLAGS: 00010056 RAX: dffffc0000000000 RBX: ffff8880799fc4c8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff1adf0ed RDI: 0000000000000000 RBP: ffff8880799fc518 R08: ffffffffffffffe8 R09: 0000000000000000 R10: fffff520008e3f43 R11: 0000000000000001 R12: ffff8880799fc4c0 R13: 0000000000000297 R14: 0000000000000000 R15: 0000000000000000 FS: 00007ff2ded92700(0000) GS:ffff8880b9d00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00005624b080e050 CR3: 000000007c2da000 CR4: 0000000000350ee0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000600 ---------------- Code disassembly (best guess): 0: 05 00 00 4c 8b add $0x8b4c0000,%eax 5: 43 rex.XB 6: 40 rex 7: 49 83 e8 18 sub $0x18,%r8 b: 49 8d 78 18 lea 0x18(%r8),%rdi f: 48 3b 3c 24 cmp (%rsp),%rdi 13: 0f 84 6a 02 00 00 je 0x283 19: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 20: fc ff df 23: 48 89 f9 mov %rdi,%rcx 26: 48 c1 e9 03 shr $0x3,%rcx * 2a: 80 3c 01 00 cmpb $0x0,(%rcx,%rax,1) <-- trapping instruction 2e: 0f 85 40 05 00 00 jne 0x574 34: 49 8b 40 18 mov 0x18(%r8),%rax 38: 89 54 24 10 mov %edx,0x10(%rsp) 3c: 31 db xor %ebx,%ebx 3e: 48 rex.W 3f: bd .byte 0xbd