INFO: task kworker/u4:27:7628 blocked for more than 143 seconds. Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/u4:27 state:D stack:21248 pid:7628 ppid:2 flags:0x00004000 Workqueue: nfc2_nci_rx_wq nci_rx_work Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6690 __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 device_lock include/linux/device.h:831 [inline] nfc_targets_found+0x273/0x590 net/nfc/core.c:778 nci_rf_discover_ntf_packet+0xbaa/0xd70 net/nfc/nci/ntf.c:390 nci_ntf_packet+0x140/0x970 net/nfc/nci/ntf.c:798 nci_rx_work+0x160/0x2b0 net/nfc/nci/core.c:1517 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 arch/x86/entry/entry_64.S:308 INFO: task kworker/0:10:14195 blocked for more than 143 seconds. Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:kworker/0:10 state:D stack:24632 pid:14195 ppid:2 flags:0x00004000 Workqueue: events nfc_urelease_event_work Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_preempt_disabled+0xf/0x20 kernel/sched/core.c:6690 __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 nci_request net/nfc/nci/core.c:149 [inline] nci_stop_poll+0x11d/0x470 net/nfc/nci/core.c:873 nfc_stop_poll+0xdf/0x210 net/nfc/core.c:259 nfc_urelease_event_work+0x159/0x300 net/nfc/netlink.c:1814 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 arch/x86/entry/entry_64.S:308 INFO: task syz-executor.0:16760 blocked for more than 143 seconds. Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. task:syz-executor.0 state:D stack:25440 pid:16760 ppid:5096 flags:0x00004006 Call Trace: context_switch kernel/sched/core.c:5244 [inline] __schedule+0x9d1/0xe40 kernel/sched/core.c:6555 schedule+0xcb/0x190 kernel/sched/core.c:6631 schedule_timeout+0xac/0x300 kernel/time/timer.c:2143 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_workqueue+0x76a/0x16a0 kernel/workqueue.c:2861 nci_close_device+0x1b2/0x5e0 net/nfc/nci/core.c:579 nci_unregister_device+0x3c/0x250 net/nfc/nci/core.c:1292 virtual_ncidev_close+0x55/0x90 drivers/nfc/virtual_ncidev.c:163 __fput+0x3ba/0x880 fs/file_table.c:320 task_work_run+0x243/0x300 kernel/task_work.c:179 get_signal+0x1654/0x1820 kernel/signal.c:2635 arch_do_signal_or_restart+0x8d/0x5f0 arch/x86/kernel/signal.c:306 exit_to_user_mode_loop+0x74/0x160 kernel/entry/common.c:168 exit_to_user_mode_prepare+0xad/0x110 kernel/entry/common.c:203 __syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline] syscall_exit_to_user_mode+0x2e/0x60 kernel/entry/common.c:296 entry_SYSCALL_64_after_hwframe+0x63/0xcd RIP: 0033:0x7fd470e8c0d9 RSP: 002b:00007fd471bda168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000 RAX: fffffffffffffff2 RBX: 00007fd470fabf80 RCX: 00007fd470e8c0d9 RDX: 0000000000000064 RSI: 0000000020000840 RDI: 0000000000000003 RBP: 00007fd470ee7ae9 R08: 0000000000000000 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000 R13: 00007ffc01504b8f R14: 00007fd471bda300 R15: 0000000000022000 Showing all locks held in the system: 1 lock held by rcu_tasks_kthre/12: #0: ffffffff8d3238d0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by rcu_tasks_trace/13: #0: ffffffff8d3240d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507 1 lock held by khungtaskd/28: #0: ffffffff8d323700 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30 2 locks held by getty/4739: #0: ffff888028566098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244 #1: ffffc900015902f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177 2 locks held by kworker/u4:12/5375: #0: ffff8880b983a1d8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x25/0x110 kernel/sched/core.c:537 #1: ffff8880b9827748 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x5d9/0xa30 kernel/sched/psi.c:964 3 locks held by kworker/u4:27/7628: #0: ffff888079cc7938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc9000577fd00 ((work_completion)(&ndev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffff88807a4c2100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:831 [inline] #2: ffff88807a4c2100 (&dev->mutex){....}-{3:3}, at: nfc_targets_found+0x273/0x590 net/nfc/core.c:778 3 locks held by kworker/0:6/14191: #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc900035cfd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffffffff8e75af68 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1805 3 locks held by kworker/0:7/14192: #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc900035dfd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffffffff8e75af68 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1805 6 locks held by kworker/0:10/14195: #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc9000360fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffffffff8e75af68 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1805 #3: ffff88807a4c2508 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x10a/0x300 net/nfc/netlink.c:1811 #4: ffff88807a4c2100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:831 [inline] #4: ffff88807a4c2100 (&dev->mutex){....}-{3:3}, at: nfc_stop_poll+0x33/0x210 net/nfc/core.c:247 #5: ffff888025406350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_request net/nfc/nci/core.c:149 [inline] #5: ffff888025406350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_stop_poll+0x11d/0x470 net/nfc/nci/core.c:873 3 locks held by kworker/1:20/15194: #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc9000555fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffffffff8e75af68 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1805 1 lock held by syz-executor.0/16760: #0: ffff888025406350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_close_device+0xfe/0x5e0 net/nfc/nci/core.c:561 3 locks held by kworker/0:1/16880: #0: ffff888012864d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262 #1: ffffc90006cf7d00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264 #2: ffffffff8e75af68 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1805 2 locks held by syz-executor.0/16890: #0: ffffffff8da46a28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:129 #1: ffffffff8e75af68 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_register_device+0x33/0x320 net/nfc/core.c:1116 1 lock held by syz-executor.5/16919: #0: ffffffff8da46a28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:129 1 lock held by syz-executor.0/16941: #0: ffffffff8da46a28 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:129 ============================================= NMI backtrace for cpu 1 CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Call Trace: __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0x1e3/0x2d0 lib/dump_stack.c:106 nmi_cpu_backtrace+0x4e3/0x560 lib/nmi_backtrace.c:111 nmi_trigger_cpumask_backtrace+0x19b/0x3e0 lib/nmi_backtrace.c:62 trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline] check_hung_uninterruptible_tasks kernel/hung_task.c:220 [inline] watchdog+0xcd5/0xd20 kernel/hung_task.c:377 kthread+0x266/0x300 kernel/kthread.c:376 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308 Sending NMI from CPU 1 to CPUs 0: NMI backtrace for cpu 0 CPU: 0 PID: 7626 Comm: kworker/u4:26 Not tainted 6.1.0-syzkaller-13139-gf9ff5644bcc0 #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022 Workqueue: phy6 ieee80211_iface_work RIP: 0010:memset_erms+0xb/0x10 arch/x86/lib/memset_64.S:65 Code: 03 40 0f b6 f6 48 b8 01 01 01 01 01 01 01 01 48 0f af c6 f3 48 ab 89 d1 f3 aa 4c 89 c8 c3 90 49 89 f9 40 88 f0 48 89 d1 f3 aa <4c> 89 c8 c3 90 49 89 fa 40 0f b6 ce 48 b8 01 01 01 01 01 01 01 01 RSP: 0018:ffffc90004ebf138 EFLAGS: 00000202 RAX: ffffc90004ebf800 RBX: ffffc90004ebf258 RCX: 0000000000000000 RDX: 0000000000000010 RSI: 0000000000000000 RDI: ffffc90004ebf280 RBP: 1ffffffff1f6399a R08: dffffc0000000000 R09: ffffc90004ebf270 R10: fffff520009d7e50 R11: 1ffff920009d7e4e R12: ffffc90004ebf220 R13: ffffffff8fb1ccd2 R14: ffffc90004ebf270 R15: 1ffff920009d7e45 FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000000c00bad3448 CR3: 000000000d08e000 CR4: 00000000003506f0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 Call Trace: unwind_next_frame+0xdbc/0x24c0 arch/x86/kernel/unwind_orc.c:565 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:45 [inline] kasan_set_track+0x4c/0x70 mm/kasan/common.c:52 ____kasan_kmalloc mm/kasan/common.c:371 [inline] __kasan_kmalloc+0x97/0xb0 mm/kasan/common.c:380 kasan_kmalloc include/linux/kasan.h:211 [inline] __do_kmalloc_node mm/slab_common.c:968 [inline] __kmalloc+0xaf/0x190 mm/slab_common.c:981 kmalloc include/linux/slab.h:584 [inline] kzalloc include/linux/slab.h:720 [inline] ieee802_11_parse_elems_full+0xff/0x2ad0 net/mac80211/util.c:1655 ieee802_11_parse_elems_crc net/mac80211/ieee80211_i.h:2260 [inline] ieee802_11_parse_elems net/mac80211/ieee80211_i.h:2267 [inline] ieee80211_rx_mgmt_probe_beacon net/mac80211/ibss.c:1605 [inline] ieee80211_ibss_rx_queued_mgmt+0x4fa/0x2d00 net/mac80211/ibss.c:1638 ieee80211_iface_process_skb net/mac80211/iface.c:1581 [inline] ieee80211_iface_work+0x773/0xcf0 net/mac80211/iface.c:1635 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 arch/x86/entry/entry_64.S:308