INFO: task kworker/u5:0:9599 blocked for more than 143 seconds. Not tainted 5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u5:0 state:D stack:27584 pid: 9599 ppid: 2 flags:0x00004000 Workqueue: hci7 hci_power_on Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6458 schedule+0xeb/0x1b0 kernel/sched/core.c:6530 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6589 __mutex_lock_common+0xecf/0x26c0 kernel/locking/mutex.c:679 __mutex_lock kernel/locking/mutex.c:747 [inline] mutex_lock_nested+0x17/0x20 kernel/locking/mutex.c:799 hci_dev_do_open net/bluetooth/hci_core.c:480 [inline] hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 INFO: task syz-executor.5:9637 blocked for more than 143 seconds. Not tainted 5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.5 state:D stack:26584 pid: 9637 ppid: 23914 flags:0x00004004 Call Trace: context_switch kernel/sched/core.c:5146 [inline] __schedule+0x957/0xe20 kernel/sched/core.c:6458 schedule+0xeb/0x1b0 kernel/sched/core.c:6530 schedule_timeout+0xac/0x300 kernel/time/timer.c:1911 do_wait_for_common+0x3ea/0x560 kernel/sched/completion.c:85 __wait_for_common kernel/sched/completion.c:106 [inline] wait_for_common kernel/sched/completion.c:117 [inline] wait_for_completion+0x46/0x60 kernel/sched/completion.c:138 __flush_work kernel/workqueue.c:3075 [inline] __cancel_work_timer+0x585/0x740 kernel/workqueue.c:3162 hci_dev_close_sync+0x31/0xcc0 net/bluetooth/hci_sync.c:4091 hci_dev_do_close net/bluetooth/hci_core.c:553 [inline] hci_unregister_dev+0x1b1/0x460 net/bluetooth/hci_core.c:2685 hci_uart_tty_close+0x1a7/0x280 drivers/bluetooth/hci_ldisc.c:548 tty_set_ldisc+0x22e/0x670 drivers/tty/tty_ldisc.c:552 tty_ioctl+0xada/0xc60 drivers/tty/tty_io.c:2714 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:870 [inline] __se_sys_ioctl+0xfb/0x170 fs/ioctl.c:856 do_syscall_x64 arch/x86/entry/common.c:50 [inline] do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x46/0xb0 RIP: 0033:0x7f655c889109 RSP: 002b:00007f655dab8168 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007f655c99bf60 RCX: 00007f655c889109 RDX: 0000000020000100 RSI: 0000000000005423 RDI: 0000000000000003 RBP: 00007f655c8e305d R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffe80033d7f R14: 00007f655dab8300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by khungtaskd/28: #0: ffffffff8cb1e820 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 1 lock held by klogd/2966: #0: ffff8880b9b39b58 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:544 2 locks held by getty/3288: #0: ffff88814ab8c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc90002d162e8 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2124 3 locks held by kworker/u5:0/9599: #0: ffff88802983d938 ((wq_completion)hci7){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc9000adafd00 ((work_completion)(&hdev->power_on)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff888062db1048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_open net/bluetooth/hci_core.c:480 [inline] #2: ffff888062db1048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_power_on+0x178/0x650 net/bluetooth/hci_core.c:963 3 locks held by syz-executor.5/9637: #0: ffff8880249491c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: tty_set_ldisc+0x4e/0x670 drivers/tty/tty_ldisc.c:529 #1: ffff888024949098 (&tty->ldisc_sem){++++}-{0:0}, at: __tty_ldisc_lock drivers/tty/tty_ldisc.c:290 [inline] #1: ffff888024949098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_lock+0x6a/0xb0 drivers/tty/tty_ldisc.c:314 #2: ffff888062db1048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_dev_do_close net/bluetooth/hci_core.c:551 [inline] #2: ffff888062db1048 (&hdev->req_lock){+.+.}-{3:3}, at: hci_unregister_dev+0x1a9/0x460 net/bluetooth/hci_core.c:2685 2 locks held by dhcpcd/9701: #0: ffff88802e152130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: lock_sock include/net/sock.h:1677 [inline] #0: ffff88802e152130 (sk_lock-AF_PACKET){+.+.}-{0:0}, at: packet_do_bind+0x2a/0xce0 net/packet/af_packet.c:3194 #1: ffffffff8cb23920 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline] #1: ffffffff8cb23920 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x266/0x720 kernel/rcu/tree_exp.h:927 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106 nmi_cpu_backtrace+0x473/0x4a0 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x168/0x280 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:146 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:212 [inline] watchdog+0xcf9/0xd40 kernel/hung_task.c:369 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 23614 Comm: kworker/u4:8 Not tainted 5.19.0-rc4-syzkaller-00044-g1a0e93df1e10 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/18/2022 Workqueue: phy56 ieee80211_iface_work RIP: 0010:preempt_count_sub+0x1e/0x160 kernel/sched/core.c:5634 Code: 88 63 7e 00 e9 69 ff ff ff 0f 1f 00 41 56 53 89 fb 48 c7 c0 e0 0e 54 91 48 c1 e8 03 49 be 00 00 00 00 00 fc ff df 42 8a 04 30 <84> c0 0f 85 c2 00 00 00 83 3d b3 09 f8 0f 00 75 22 65 8b 05 d2 69 RSP: 0018:ffffc900088cf1c8 EFLAGS: 00000a02 RAX: 1ffffffff22a8104 RBX: 0000000000000001 RCX: 0000000000000000 RDX: dffffc0000000000 RSI: ffffc900088c8000 RDI: 0000000000000001 RBP: ffffc900088cf2c0 R08: ffffc900088cff48 R09: dffffc0000000000 R10: fffff52001119e64 R11: 1ffff92001119e62 R12: ffffc900088cff58 R13: ffffffff8e836de0 R14: dffffc0000000000 R15: ffffc900088d0000 FS: 0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055d386383600 CR3: 000000000c88e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0x1b06/0x24c0 arch/x86/kernel/unwind_orc.c:624 arch_stack_walk+0x112/0x140 arch/x86/kernel/stacktrace.c:25 stack_trace_save+0x12d/0x1f0 kernel/stacktrace.c:122 kasan_save_stack mm/kasan/common.c:38 [inline] kasan_set_track mm/kasan/common.c:45 [inline] set_alloc_info mm/kasan/common.c:436 [inline] ____kasan_kmalloc+0xdc/0x110 mm/kasan/common.c:515 kasan_kmalloc include/linux/kasan.h:234 [inline] __kmalloc+0x223/0x370 mm/slub.c:4446 kmalloc include/linux/slab.h:605 [inline] ieee802_11_parse_elems_crc+0x146/0x1130 net/mac80211/util.c:1508 ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2257 [inline] ieee80211_bss_info_update+0x845/0xc30 net/mac80211/scan.c:212 ieee80211_rx_bss_info net/mac80211/ibss.c:1119 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1610 [inline] ieee80211_ibss_rx_queued_mgmt+0x1659/0x28c0 net/mac80211/ibss.c:1639 ieee80211_iface_process_skb net/mac80211/iface.c:1527 [inline] ieee80211_iface_work+0x757/0xcd0 net/mac80211/iface.c:1581 process_one_work+0x81c/0xd10 kernel/workqueue.c:2289 worker_thread+0xb14/0x1330 kernel/workqueue.c:2436 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 ---------------- Code disassembly (best guess): 0: 88 63 7e mov %ah,0x7e(%rbx) 3: 00 e9 add %ch,%cl 5: 69 ff ff ff 0f 1f imul $0x1f0fffff,%edi,%edi b: 00 41 56 add %al,0x56(%rcx) e: 53 push %rbx f: 89 fb mov %edi,%ebx 11: 48 c7 c0 e0 0e 54 91 mov $0xffffffff91540ee0,%rax 18: 48 c1 e8 03 shr $0x3,%rax 1c: 49 be 00 00 00 00 00 movabs $0xdffffc0000000000,%r14 23: fc ff df 26: 42 8a 04 30 mov (%rax,%r14,1),%al * 2a: 84 c0 test %al,%al <-- trapping instruction 2c: 0f 85 c2 00 00 00 jne 0xf4 32: 83 3d b3 09 f8 0f 00 cmpl $0x0,0xff809b3(%rip) # 0xff809ec 39: 75 22 jne 0x5d 3b: 65 gs 3c: 8b .byte 0x8b 3d: 05 .byte 0x5 3e: d2 .byte 0xd2 3f: 69 .byte 0x69