INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 0 PID: 13919 Comm: syz-executor.0 Not tainted 5.7.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:77 [inline] dump_stack+0x188/0x20d lib/dump_stack.c:118 assign_lock_key kernel/locking/lockdep.c:894 [inline] register_lock_class+0x1664/0x1760 kernel/locking/lockdep.c:1206 __lock_acquire+0xff/0x48a0 kernel/locking/lockdep.c:4259 lock_acquire+0x1f2/0x8f0 kernel/locking/lockdep.c:4959 percpu_down_read include/linux/percpu-rwsem.h:51 [inline] hci_uart_flush+0x105/0x550 drivers/bluetooth/hci_ldisc.c:241 hci_uart_close drivers/bluetooth/hci_ldisc.c:267 [inline] hci_uart_tty_close+0x87/0x270 drivers/bluetooth/hci_ldisc.c:534 tty_ldisc_close.isra.0+0x110/0x190 drivers/tty/tty_ldisc.c:489 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:637 tty_ldisc_release+0xe1/0x2a0 drivers/tty/tty_ldisc.c:809 tty_release_struct+0x16/0x50 drivers/tty/tty_io.c:1614 tty_release+0xbc7/0xe90 drivers/tty/tty_io.c:1785 __fput+0x33e/0x880 fs/file_table.c:281 task_work_run+0xf4/0x1b0 kernel/task_work.c:123 get_signal+0x207a/0x2510 kernel/signal.c:2533 do_signal+0x81/0x2240 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x26c/0x360 arch/x86/entry/common.c:161 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x6b1/0x7d0 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca59 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb1936e1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00000000004e7180 RCX: 000000000045ca59 RDX: 0000000000000002 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000378 R14: 00000000004c60c9 R15: 00007fb1936e26d4 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: 13919 Comm: syz-executor.0 Not tainted 5.7.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:86 Code: 05 00 00 4c 8b 43 40 49 83 e8 18 49 8d 78 18 48 39 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 3d 05 00 00 49 8b 40 18 89 54 24 10 31 db 48 bd RSP: 0018:ffffc90005d678c0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff888091896cc8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff15173ba RDI: 0000000000000000 RBP: ffff888091896d18 R08: ffffffffffffffe8 R09: 0000000000000000 R10: 0000000000000003 R11: fffff52000bacf12 R12: ffff888091896cc0 R13: 0000000000000282 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fb1936e2700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056235f056648 CR3: 000000004d133000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: rcu_sync_func+0x159/0x1f0 kernel/rcu/sync.c:87 rcu_sync_enter+0x152/0x2f0 kernel/rcu/sync.c:150 percpu_down_write+0x98/0x400 kernel/locking/percpu-rwsem.c:220 hci_uart_tty_close+0x145/0x270 drivers/bluetooth/hci_ldisc.c:537 tty_ldisc_close.isra.0+0x110/0x190 drivers/tty/tty_ldisc.c:489 tty_ldisc_kill+0x94/0x150 drivers/tty/tty_ldisc.c:637 tty_ldisc_release+0xe1/0x2a0 drivers/tty/tty_ldisc.c:809 tty_release_struct+0x16/0x50 drivers/tty/tty_io.c:1614 tty_release+0xbc7/0xe90 drivers/tty/tty_io.c:1785 __fput+0x33e/0x880 fs/file_table.c:281 task_work_run+0xf4/0x1b0 kernel/task_work.c:123 get_signal+0x207a/0x2510 kernel/signal.c:2533 do_signal+0x81/0x2240 arch/x86/kernel/signal.c:810 exit_to_usermode_loop+0x26c/0x360 arch/x86/entry/common.c:161 prepare_exit_to_usermode arch/x86/entry/common.c:196 [inline] syscall_return_slowpath arch/x86/entry/common.c:279 [inline] do_syscall_64+0x6b1/0x7d0 arch/x86/entry/common.c:305 entry_SYSCALL_64_after_hwframe+0x49/0xb3 RIP: 0033:0x45ca59 Code: 0d b7 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 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 0f 83 db b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fb1936e1c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 00000000004e7180 RCX: 000000000045ca59 RDX: 0000000000000002 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 000000000078bfa0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff R13: 0000000000000378 R14: 00000000004c60c9 R15: 00007fb1936e26d4 Modules linked in: ---[ end trace b67a25df0fac31f4 ]--- RIP: 0010:__wake_up_common+0xdf/0x650 kernel/sched/wait.c:86 Code: 05 00 00 4c 8b 43 40 49 83 e8 18 49 8d 78 18 48 39 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 3d 05 00 00 49 8b 40 18 89 54 24 10 31 db 48 bd RSP: 0018:ffffc90005d678c0 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff888091896cc8 RCX: 0000000000000000 RDX: 0000000000000001 RSI: 1ffffffff15173ba RDI: 0000000000000000 RBP: ffff888091896d18 R08: ffffffffffffffe8 R09: 0000000000000000 R10: 0000000000000003 R11: fffff52000bacf12 R12: ffff888091896cc0 R13: 0000000000000282 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fb1936e2700(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000056235f056648 CR3: 000000004d133000 CR4: 00000000001426e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400