INFO: trying to register non-static key. the code is fine but needs lockdep annotation. turning off the locking correctness validator. CPU: 1 PID: 12776 Comm: kworker/u5:1 Not tainted 5.0.0-rc8+ #88 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Workqueue: hci2 hci_cmd_work Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x172/0x1f0 lib/dump_stack.c:113 assign_lock_key kernel/locking/lockdep.c:731 [inline] register_lock_class+0x1bdc/0x1bf0 kernel/locking/lockdep.c:757 __lock_acquire+0x11f/0x4700 kernel/locking/lockdep.c:3224 lock_acquire+0x16f/0x3f0 kernel/locking/lockdep.c:3841 percpu_down_read_preempt_disable include/linux/percpu-rwsem.h:36 [inline] percpu_down_read include/linux/percpu-rwsem.h:59 [inline] hci_uart_send_frame+0x85/0x470 drivers/bluetooth/hci_ldisc.c:287 hci_send_frame+0x1b8/0x2d0 net/bluetooth/hci_core.c:3538 hci_cmd_work+0x137/0x270 net/bluetooth/hci_core.c:4451 process_one_work+0x98e/0x1790 kernel/workqueue.c:2173 worker_thread+0x98/0xe40 kernel/workqueue.c:2319 kthread+0x357/0x430 kernel/kthread.c:246 ret_from_fork+0x3a/0x50 arch/x86/entry/entry_64.S:352 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: 16657 Comm: syz-executor.0 Not tainted 5.0.0-rc8+ #88 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 RIP: 0010:__wake_up_common+0xdf/0x620 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 69 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 12 05 00 00 49 8b 40 18 89 55 b0 31 db 49 bc 00 RSP: 0018:ffff88803a8ef768 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff88808f9da138 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 1ffffffff12b957f RDI: 0000000000000000 RBP: ffff88803a8ef7c0 R08: ffffffffffffffe8 R09: ffff88803a8ef818 R10: ffffed100751dee6 R11: 0000000000000003 R12: 0000000000000000 R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fd6620ec700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000625208 CR3: 0000000087882000 CR4: 00000000001406e0 DR0: 000000000000b8c4 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __wake_up_common_lock+0xe9/0x190 kernel/sched/wait.c:121 __wake_up+0xe/0x10 kernel/sched/wait.c:145 rcu_sync_enter+0x193/0x310 kernel/rcu/sync.c:132 percpu_down_write+0x61/0x440 kernel/locking/percpu-rwsem.c:143 hci_uart_tty_close+0x13a/0x260 drivers/bluetooth/hci_ldisc.c:531 tty_ldisc_close.isra.0+0x100/0x180 drivers/tty/tty_ldisc.c:485 tty_ldisc_kill+0x9c/0x160 drivers/tty/tty_ldisc.c:633 tty_ldisc_release+0xc6/0x280 drivers/tty/tty_ldisc.c:805 tty_release_struct+0x1b/0x50 drivers/tty/tty_io.c:1610 tty_release+0xbce/0xe90 drivers/tty/tty_io.c:1783 __fput+0x2df/0x8d0 fs/file_table.c:278 ____fput+0x16/0x20 fs/file_table.c:309 task_work_run+0x14a/0x1c0 kernel/task_work.c:113 get_signal+0x1961/0x1d50 kernel/signal.c:2388 do_signal+0x87/0x1940 arch/x86/kernel/signal.c:816 exit_to_usermode_loop+0x244/0x2c0 arch/x86/entry/common.c:162 prepare_exit_to_usermode arch/x86/entry/common.c:197 [inline] syscall_return_slowpath arch/x86/entry/common.c:268 [inline] do_syscall_64+0x52d/0x610 arch/x86/entry/common.c:293 entry_SYSCALL_64_after_hwframe+0x49/0xbe RIP: 0033:0x457e29 Code: ad b8 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 b8 fb ff c3 66 2e 0f 1f 84 00 00 00 00 RSP: 002b:00007fd6620ebc78 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: 0000000000000000 RBX: 0000000000000003 RCX: 0000000000457e29 RDX: 0000000000000000 RSI: 00000000400455c8 RDI: 0000000000000005 RBP: 000000000073c0e0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00007fd6620ec6d4 R13: 00000000004c06b8 R14: 00000000004d23f0 R15: 00000000ffffffff Modules linked in: ---[ end trace 2aab5be233fff365 ]--- RIP: 0010:__wake_up_common+0xdf/0x620 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 69 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 12 05 00 00 49 8b 40 18 89 55 b0 31 db 49 bc 00 RSP: 0018:ffff88803a8ef768 EFLAGS: 00010046 RAX: dffffc0000000000 RBX: ffff88808f9da138 RCX: 0000000000000000 RDX: 0000000000000000 RSI: 1ffffffff12b957f RDI: 0000000000000000 RBP: ffff88803a8ef7c0 R08: ffffffffffffffe8 R09: ffff88803a8ef818 R10: ffffed100751dee6 R11: 0000000000000003 R12: 0000000000000000 R13: 0000000000000003 R14: 0000000000000000 R15: 0000000000000000 FS: 00007fd6620ec700(0000) GS:ffff8880ae900000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 0000000000625208 CR3: 0000000087882000 CR4: 00000000001406e0 DR0: 000000000000b8c4 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400