audit: type=1326 audit(1692468246.458:334): auid=0 uid=0 gid=0 ses=4 subj=system_u:system_r:kernel_t:s0 pid=21369 comm="syz-executor.0" exe="/syz-executor.0" sig=31 arch=c000003e syscall=202 compat=0 ip=0x7f821e921b19 code=0x0 Bluetooth: hci6: link tx timeout Bluetooth: hci6: killing stalled connection 11:aa:aa:aa:aa:aa BUG: sleeping function called from invalid context at kernel/locking/mutex.c:580 in_atomic(): 0, irqs_disabled(): 0, non_block: 0, pid: 18820, name: kworker/u7:0 preempt_count: 0, expected: 0 RCU nest depth: 1, expected: 0 3 locks held by kworker/u7:0/18820: #0: ffff88800d283d38 ((wq_completion)hci6#2){+.+.}-{0:0}, at: process_one_work+0x69e/0x1450 #1: ffff88803bdb7d98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x6d1/0x1450 #2: ffffffff8560e8e0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480 CPU: 1 PID: 18820 Comm: kworker/u7:0 Not tainted 6.5.0-rc6-next-20230818 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Workqueue: hci6 hci_tx_work Call Trace: dump_stack_lvl+0xc1/0xf0 __might_resched+0x2f9/0x510 __mutex_lock+0x9e/0x1a30 hci_cmd_sync_submit+0x3b/0x2d0 hci_cmd_sync_queue+0x7b/0xb0 hci_disconnect+0x1c2/0x450 __check_timeout+0x2cc/0x480 hci_tx_work+0x7cb/0x1a70 process_one_work+0x7c8/0x1450 worker_thread+0x80e/0x1190 kthread+0x33f/0x440 ret_from_fork+0x48/0x80 ret_from_fork_asm+0x1b/0x30 syz-executor.4[21384]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set ============================= [ BUG: Invalid wait context ] 6.5.0-rc6-next-20230818 #1 Tainted: G W ----------------------------- kworker/u7:0/18820 is trying to lock: ffff8880368749b0 (&hdev->unregister_lock){+.+.}-{3:3}, at: hci_cmd_sync_submit+0x3b/0x2d0 other info that might help us debug this: loop4: detected capacity change from 0 to 63 context-{4:4} 3 locks held by kworker/u7:0/18820: #0: ffff88800d283d38 ((wq_completion)hci6#2){+.+.}-{0:0}, at: process_one_work+0x69e/0x1450 #1: ffff88803bdb7d98 ((work_completion)(&hdev->tx_work)){+.+.}-{0:0}, at: process_one_work+0x6d1/0x1450 #2: ffffffff8560e8e0 (rcu_read_lock){....}-{1:2}, at: __check_timeout+0x171/0x480 stack backtrace: CPU: 1 PID: 18820 Comm: kworker/u7:0 Tainted: G W 6.5.0-rc6-next-20230818 #1 Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.12.0-1 04/01/2014 Workqueue: hci6 hci_tx_work Call Trace: dump_stack_lvl+0x91/0xf0 __lock_acquire+0x1605/0x6340 SELinux: security_context_str_to_sid (staff_u) failed with errno=-22 lock_acquire+0x19a/0x4c0 __mutex_lock+0x12a/0x1a30 hci_cmd_sync_submit+0x3b/0x2d0 hci_cmd_sync_queue+0x7b/0xb0 hci_disconnect+0x1c2/0x450 __check_timeout+0x2cc/0x480 hci_tx_work+0x7cb/0x1a70 process_one_work+0x7c8/0x1450 worker_thread+0x80e/0x1190 kthread+0x33f/0x440 ret_from_fork+0x48/0x80 ret_from_fork_asm+0x1b/0x30 syz-executor.7[21399]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set loop7: detected capacity change from 0 to 8 FAT-fs (loop7): Unrecognized mount option "appraise_type=imasig" or missing value syz-executor.7[21391]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set loop7: detected capacity change from 0 to 8 FAT-fs (loop7): Unrecognized mount option "appraise_type=imasig" or missing value syz-executor.2[21411]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set loop2: detected capacity change from 0 to 264192 tmpfs: Bad value for 'nr_inodes' syz-executor.2[21411]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set syz-executor.7[21417]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set loop7: detected capacity change from 0 to 264192 syz-executor.7[21420]: memfd_create() called without MFD_EXEC or MFD_NOEXEC_SEAL set loop7: detected capacity change from 0 to 264192 Bluetooth: hci6: command 0x0405 tx timeout Bluetooth: hci6: command 0x0406 tx timeout Bluetooth: hci6: command 0x0405 tx timeout