INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 15188 Comm: syz-executor.0 Not tainted 4.19.104-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+0x123/0x177 lib/dump_stack.c:118 assign_lock_key kernel/locking/lockdep.c:727 [inline] register_lock_class+0x207f/0x2350 kernel/locking/lockdep.c:753 __lock_acquire+0x160/0x4980 kernel/locking/lockdep.c:3299 lock_acquire+0x173/0x3d0 kernel/locking/lockdep.c:3903 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] hci_uart_flush+0xf7/0x360 drivers/bluetooth/hci_ldisc.c:248 hci_uart_close drivers/bluetooth/hci_ldisc.c:274 [inline] hci_uart_tty_close+0x7d/0x1f0 drivers/bluetooth/hci_ldisc.c:541 tty_ldisc_close.isra.2+0x89/0xc0 drivers/tty/tty_ldisc.c:493 tty_ldisc_kill+0x3c/0xb0 drivers/tty/tty_ldisc.c:639 tty_ldisc_release+0xb8/0x1a0 drivers/tty/tty_ldisc.c:806 tty_release_struct+0x12/0x50 drivers/tty/tty_io.c:1611 tty_release+0x97e/0xc60 drivers/tty/tty_io.c:1784 __fput+0x249/0x7f0 fs/file_table.c:278 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x108/0x180 kernel/task_work.c:113 get_signal+0x139a/0x1a00 kernel/signal.c:2394 do_signal+0x87/0x1960 arch/x86/kernel/signal.c:821 exit_to_usermode_loop+0x114/0x200 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a219 Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcf67f29c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000045a219 RDX: 0000000000000002 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcf67f2a6d4 R13: 00000000004c3209 R14: 00000000004d73a8 R15: 00000000ffffffff kasan: CONFIG_KASAN_INLINE enabled kasan: GPF could be caused by NULL-ptr deref or user memory access general protection fault: 0000 [#1] PREEMPT SMP KASAN CPU: 1 PID: 15188 Comm: syz-executor.0 Not tainted 4.19.104-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__wake_up_common+0xdb/0x600 kernel/sched/wait.c:85 Code: 05 00 00 4c 8b 43 38 49 83 e8 18 49 8d 78 18 48 39 7d d0 0f 84 54 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 f9 04 00 00 49 8b 40 18 89 55 b8 31 db 49 be 00 RSP: 0018:ffff888081fc7778 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff888095f6e878 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 RBP: ffff888081fc77c8 R08: ffffffffffffffe8 R09: ffff888081fc7808 R10: ffffed1012bedd0f R11: ffff888095f6e87b R12: 0000000000000000 R13: ffff888081fc7808 R14: 0000000000000000 R15: ffff888095f6e870 FS: 00007fcf67f2a700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000002528000 CR3: 000000008b2ac000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __wake_up_common_lock+0xde/0x180 kernel/sched/wait.c:121 __wake_up+0xe/0x10 kernel/sched/wait.c:145 rcu_sync_enter+0x17d/0x2f0 kernel/rcu/sync.c:133 percpu_down_write+0x6e/0x43a kernel/locking/percpu-rwsem.c:143 hci_uart_tty_close+0x100/0x1f0 drivers/bluetooth/hci_ldisc.c:544 tty_ldisc_close.isra.2+0x89/0xc0 drivers/tty/tty_ldisc.c:493 tty_ldisc_kill+0x3c/0xb0 drivers/tty/tty_ldisc.c:639 tty_ldisc_release+0xb8/0x1a0 drivers/tty/tty_ldisc.c:806 tty_release_struct+0x12/0x50 drivers/tty/tty_io.c:1611 tty_release+0x97e/0xc60 drivers/tty/tty_io.c:1784 __fput+0x249/0x7f0 fs/file_table.c:278 ____fput+0x9/0x10 fs/file_table.c:309 task_work_run+0x108/0x180 kernel/task_work.c:113 get_signal+0x139a/0x1a00 kernel/signal.c:2394 do_signal+0x87/0x1960 arch/x86/kernel/signal.c:821 exit_to_usermode_loop+0x114/0x200 arch/x86/entry/common.c:163 prepare_exit_to_usermode arch/x86/entry/common.c:198 [inline] syscall_return_slowpath arch/x86/entry/common.c:271 [inline] do_syscall_64+0x413/0x4e0 arch/x86/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x45a219 Code: ad b6 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 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fcf67f29c78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 000000000045a219 RDX: 0000000000000002 RSI: 00000000400455c8 RDI: 0000000000000003 RBP: 000000000075bfc8 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fcf67f2a6d4 R13: 00000000004c3209 R14: 00000000004d73a8 R15: 00000000ffffffff Modules linked in: ---[ end trace ed979c7b95055d86 ]--- RIP: 0010:__wake_up_common+0xdb/0x600 kernel/sched/wait.c:85 Code: 05 00 00 4c 8b 43 38 49 83 e8 18 49 8d 78 18 48 39 7d d0 0f 84 54 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 f9 04 00 00 49 8b 40 18 89 55 b8 31 db 49 be 00 RSP: 0018:ffff888081fc7778 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff888095f6e878 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000000 RBP: ffff888081fc77c8 R08: ffffffffffffffe8 R09: ffff888081fc7808 R10: ffffed1012bedd0f R11: ffff888095f6e87b R12: 0000000000000000 R13: ffff888081fc7808 R14: 0000000000000000 R15: ffff888095f6e870 FS: 00007fcf67f2a700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000002528000 CR3: 000000008b2ac000 CR4: 00000000001406e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400