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: 31734 Comm: syz-executor.5 Not tainted 5.16.0-rc2-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+0x1dc/0x2d8 lib/dump_stack.c:106
assign_lock_key kernel/locking/lockdep.c:951 [inline]
register_lock_class+0xf4b/0x1390 kernel/locking/lockdep.c:1263
__lock_acquire+0x149/0x2b00 kernel/locking/lockdep.c:4906
lock_acquire+0x19f/0x4d0 kernel/locking/lockdep.c:5637
percpu_down_read+0x44/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: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+0x3fc/0x870 fs/file_table.c:280
task_work_run+0x146/0x1c0 kernel/task_work.c:164
get_signal+0x2078/0x2120 kernel/signal.c:2624
arch_do_signal_or_restart+0x9c/0x730 arch/x86/kernel/signal.c:868
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:207
__syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300
do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f09820f6ae9
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:00007f097f66c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007f0982209f60 RCX: 00007f09820f6ae9
RDX: 0000000000000004 RSI: 00000000400455c8 RDI: 0000000000000003
RBP: 00007f0982150f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffca720935f R14: 00007f097f66c300 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: 31734 Comm: syz-executor.5 Not tainted 5.16.0-rc2-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:__wake_up_locked+0xa7/0x1a0 kernel/sched/wait.c:166
Code: 00 fc ff df 4c 8b 73 40 66 2e 0f 1f 84 00 00 00 00 00 90 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 92 6d 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90002acf788 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8880216c24c8
RBP: ffffffffffffffe8 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff52000559ed5 R11: 0000000000000004 R12: ffff8880216c2508
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001
FS: 00007f097f66c700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8473f291b8 CR3: 000000007ce46000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rcu_sync_func+0xa8/0x200 kernel/rcu/sync.c:87
rcu_sync_enter+0x20a/0x350 kernel/rcu/sync.c:150
percpu_down_write+0x5c/0x2f0 kernel/locking/percpu-rwsem.c:220
hci_uart_tty_close+0x123/0x280 drivers/bluetooth/hci_ldisc.c:539
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+0x3fc/0x870 fs/file_table.c:280
task_work_run+0x146/0x1c0 kernel/task_work.c:164
get_signal+0x2078/0x2120 kernel/signal.c:2624
arch_do_signal_or_restart+0x9c/0x730 arch/x86/kernel/signal.c:868
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:207
__syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
syscall_exit_to_user_mode+0x2e/0x70 kernel/entry/common.c:300
do_syscall_64+0x53/0xd0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7f09820f6ae9
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:00007f097f66c188 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: 0000000000000000 RBX: 00007f0982209f60 RCX: 00007f09820f6ae9
RDX: 0000000000000004 RSI: 00000000400455c8 RDI: 0000000000000003
RBP: 00007f0982150f6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffca720935f R14: 00007f097f66c300 R15: 0000000000022000
Modules linked in:
---[ end trace 190ba9a8ce5a472e ]---
RIP: 0010:__wake_up_locked+0xa7/0x1a0 kernel/sched/wait.c:166
Code: 00 fc ff df 4c 8b 73 40 66 2e 0f 1f 84 00 00 00 00 00 90 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 92 6d 00 48 ba 00 00 00 00 00 fc
RSP: 0018:ffffc90002acf788 EFLAGS: 00010046
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 0000000000000001
RDX: dffffc0000000000 RSI: 0000000000000003 RDI: ffff8880216c24c8
RBP: ffffffffffffffe8 R08: dffffc0000000000 R09: 0000000000000003
R10: fffff52000559ed5 R11: 0000000000000004 R12: ffff8880216c2508
R13: dffffc0000000000 R14: 0000000000000000 R15: 0000000000000001
FS: 00007f097f66c700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f8473f291b8 CR3: 000000007ce46000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
----------------
Code disassembly (best guess), 3 bytes skipped:
0: df 4c 8b 73 fisttps 0x73(%rbx,%rcx,4)
4: 40 rex
5: 66 2e 0f 1f 84 00 00 nopw %cs:0x0(%rax,%rax,1)
c: 00 00 00
f: 90 nop
10: 4d 39 f4 cmp %r14,%r12
13: 0f 84 b3 00 00 00 je 0xcc
19: 4c 89 f3 mov %r14,%rbx
1c: 49 8d 6e e8 lea -0x18(%r14),%rbp
20: 4c 89 f0 mov %r14,%rax
23: 48 c1 e8 03 shr $0x3,%rax
* 27: 80 3c 10 00 cmpb $0x0,(%rax,%rdx,1) <-- trapping instruction
2b: 74 12 je 0x3f
2d: 48 89 df mov %rbx,%rdi
30: e8 fb 92 6d 00 callq 0x6d9330
35: 48 rex.W
36: ba 00 00 00 00 mov $0x0,%edx
3b: 00 fc add %bh,%ah