Bluetooth: hci0 command 0x0405 tx timeout INFO: task kworker/u5:0:1202 blocked for more than 140 seconds. Not tainted 4.14.193-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. kworker/u5:0 D27944 1202 2 0x80000000 Workqueue: hci0 hci_rx_work Call Trace: context_switch kernel/sched/core.c:2808 [inline] __schedule+0x88b/0x1de0 kernel/sched/core.c:3384 schedule+0x8d/0x1b0 kernel/sched/core.c:3428 schedule_timeout+0x80a/0xe90 kernel/time/timer.c:1731 do_wait_for_common kernel/sched/completion.c:91 [inline] __wait_for_common kernel/sched/completion.c:112 [inline] wait_for_common+0x272/0x430 kernel/sched/completion.c:123 __synchronize_srcu+0x10a/0x1d0 kernel/rcu/srcutree.c:898 debugfs_remove_recursive fs/debugfs/inode.c:744 [inline] debugfs_remove_recursive+0x2e0/0x3b0 fs/debugfs/inode.c:686 hci_conn_cleanup+0x2d8/0x550 net/bluetooth/hci_conn.c:130 hci_conn_del+0x235/0x620 net/bluetooth/hci_conn.c:611 hci_phy_link_complete_evt.isra.0+0x4d0/0x6c0 net/bluetooth/hci_event.c:4355 hci_event_packet+0x2592/0x7c7a net/bluetooth/hci_event.c:5429 hci_rx_work+0x3e6/0x970 net/bluetooth/hci_core.c:4244 process_one_work+0x793/0x14a0 kernel/workqueue.c:2116 worker_thread+0x5cc/0xff0 kernel/workqueue.c:2250 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 INFO: task syz-executor957:1920 blocked for more than 140 seconds. Not tainted 4.14.193-syzkaller #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. syz-executor957 D28912 1920 6378 0x00000004 Call Trace: context_switch kernel/sched/core.c:2808 [inline] __schedule+0x88b/0x1de0 kernel/sched/core.c:3384 schedule+0x8d/0x1b0 kernel/sched/core.c:3428 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:3486 __mutex_lock_common kernel/locking/mutex.c:833 [inline] __mutex_lock+0x669/0x1310 kernel/locking/mutex.c:893 get_l2cap_conn+0xa3/0x430 net/bluetooth/6lowpan.c:1013 lowpan_control_write+0x135/0x490 net/bluetooth/6lowpan.c:1138 full_proxy_write+0xfb/0x1a0 fs/debugfs/file.c:163 __vfs_write+0xe4/0x630 fs/read_write.c:480 vfs_write+0x17f/0x4d0 fs/read_write.c:544 SYSC_write fs/read_write.c:590 [inline] SyS_write+0xf2/0x210 fs/read_write.c:582 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x449039 RSP: 002b:00007f532dd45ce8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001 RAX: ffffffffffffffda RBX: 00000000006e5a08 RCX: 0000000000449039 RDX: 000000000000001b RSI: 00000000200004c0 RDI: 0000000000000003 RBP: 00000000006e5a00 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 00000000006e5a0c R13: 00007ffdb6e44c4f R14: 00007f532dd469c0 R15: 20c49ba5e353f7cf Showing all locks held in the system: 1 lock held by khungtaskd/1068: #0: (tasklist_lock){.+.+}, at: [] debug_show_all_locks+0x7c/0x21a kernel/locking/lockdep.c:4548 3 locks held by kworker/u5:0/1202: #0: ("%s"hdev->name#2){+.+.}, at: [] process_one_work+0x6b0/0x14a0 kernel/workqueue.c:2087 #1: ((&hdev->rx_work)){+.+.}, at: [] process_one_work+0x6e6/0x14a0 kernel/workqueue.c:2091 #2: (&hdev->lock){+.+.}, at: [] hci_phy_link_complete_evt.isra.0+0x27/0x6c0 net/bluetooth/hci_event.c:4346 4 locks held by syz-executor957/1920: #0: (&f->f_pos_lock){+.+.}, at: [] __fdget_pos+0x1fb/0x2b0 fs/file.c:769 #1: (sb_writers#15){.+.+}, at: [] file_start_write include/linux/fs.h:2708 [inline] #1: (sb_writers#15){.+.+}, at: [] vfs_write+0x3d8/0x4d0 fs/read_write.c:543 #2: (debugfs_srcu){....}, at: [] debugfs_real_fops include/linux/debugfs.h:62 [inline] #2: (debugfs_srcu){....}, at: [] full_proxy_write+0x65/0x1a0 fs/debugfs/file.c:163 #3: (&hdev->lock){+.+.}, at: [] get_l2cap_conn+0xa3/0x430 net/bluetooth/6lowpan.c:1013 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 1068 Comm: khungtaskd Not tainted 4.14.193-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:17 [inline] dump_stack+0x1b2/0x283 lib/dump_stack.c:58 nmi_cpu_backtrace.cold+0x57/0x93 lib/nmi_backtrace.c:101 nmi_trigger_cpumask_backtrace+0x13a/0x17f lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:140 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:195 [inline] watchdog+0x5b9/0xb40 kernel/hung_task.c:274 kthread+0x30d/0x420 kernel/kthread.c:232 ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:404 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 3647 Comm: systemd-journal Not tainted 4.14.193-syzkaller #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 task: ffff88809456e200 task.stack: ffff888094570000 RIP: 0010:unwind_next_frame+0xc73/0x17d0 arch/x86/kernel/unwind_orc.c:432 RSP: 0018:ffff888094577948 EFLAGS: 00000246 RAX: ffff888094577b20 RBX: 1ffff110128aef30 RCX: ffffffff88e97da0 RDX: ffff888094577b10 RSI: 0000000000000000 RDI: 0000000000000001 RBP: 0000000000000001 R08: ffffffff88e97da4 R09: ffffffff88e97da5 R10: 0000000000008476 R11: 0000000000000001 R12: ffff888094577ad5 R13: ffff888094577ad8 R14: ffff888094577af0 R15: ffff888094577aa0 FS: 00007f04b0ddd8c0(0000) GS:ffff8880aea00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f04ae193008 CR3: 00000000948bb000 CR4: 00000000001406f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: __unwind_start+0x58f/0x930 arch/x86/kernel/unwind_orc.c:590 unwind_start arch/x86/include/asm/unwind.h:60 [inline] __save_stack_trace+0x63/0x160 arch/x86/kernel/stacktrace.c:43 save_stack mm/kasan/kasan.c:447 [inline] set_track mm/kasan/kasan.c:459 [inline] kasan_kmalloc+0xeb/0x160 mm/kasan/kasan.c:551 slab_post_alloc_hook mm/slab.h:442 [inline] slab_alloc mm/slab.c:3390 [inline] __do_kmalloc mm/slab.c:3718 [inline] __kmalloc_track_caller+0x13f/0x400 mm/slab.c:3735 kmemdup+0x23/0x50 mm/util.c:118 kmemdup include/linux/string.h:445 [inline] selinux_cred_prepare+0x44/0xa0 security/selinux/hooks.c:3849 security_prepare_creds+0x76/0xb0 security/security.c:1008 prepare_creds+0x2ef/0x490 kernel/cred.c:282 SYSC_faccessat fs/open.c:365 [inline] SyS_faccessat+0x7b/0x680 fs/open.c:353 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292 entry_SYSCALL_64_after_hwframe+0x46/0xbb RIP: 0033:0x7f04b00999c7 RSP: 002b:00007ffed953f6b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000015 RAX: ffffffffffffffda RBX: 00007ffed95425d0 RCX: 00007f04b00999c7 RDX: 00007f04b0b0aa00 RSI: 0000000000000000 RDI: 0000558e87aba9a3 RBP: 00007ffed953f6f0 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000069 R11: 0000000000000246 R12: 0000000000000000 R13: 0000000000000000 R14: 00007ffed95425d0 R15: 00007ffed953fbe0 Code: d0 0f 8f 90 fe ff ff 84 c0 0f 84 88 fe ff ff 4c 89 e7 48 89 4c 24 08 e8 4c 0f 5d 00 48 8b 4c 24 08 e9 71 fe ff ff 48 8b 44 24 58 <4c> 89 ff 4c 89 4c 24 30 48 8b 54 24 08 48 89 4c 24 28 4c 89 44