INFO: task kworker/0:21:6722 blocked for more than 143 seconds.
Not tainted 6.2.0-rc2-syzkaller-00256-ga689b938df39 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/0:21 state:D stack:25624 pid:6722 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:1838
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/u4:23:10813 blocked for more than 143 seconds.
Not tainted 6.2.0-rc2-syzkaller-00256-ga689b938df39 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:23 state:D stack:24352 pid:10813 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 syz-executor.1:18688 blocked for more than 143 seconds.
Not tainted 6.2.0-rc2-syzkaller-00256-ga689b938df39 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:23344 pid:18688 ppid:5095 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:0x7fda63a8c0c9
RSP: 002b:00007fda64785168 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: fffffffffffffff2 RBX: 00007fda63babf80 RCX: 00007fda63a8c0c9
RDX: 0000000000000064 RSI: 0000000020000840 RDI: 0000000000000003
RBP: 00007fda63ae7ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffddced4ebf R14: 00007fda64785300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8d5239d0 (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: ffffffff8d5241d0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
3 locks held by kworker/1:1/26:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90000a1fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
1 lock held by khungtaskd/28:
#0: ffffffff8d523800 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
3 locks held by kworker/0:3/1128:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc9000521fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:2/1606:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90005c57d00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
2 locks held by getty/4743:
#0: ffff88802c853098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6e8/0x1e50 drivers/tty/n_tty.c:2177
3 locks held by kworker/1:5/5147:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc900046f7d00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:6/5148:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90004707d00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:13/6647:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc9000509fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:19/6657:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc900053cfd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
6 locks held by kworker/0:21/6722:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90005b67d00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
#3: ffff888076e0c508 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0x10a/0x300 net/nfc/netlink.c:1835
#4: ffff888076e0c100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:831 [inline]
#4: ffff888076e0c100 (&dev->mutex){....}-{3:3}, at: nfc_stop_poll+0x33/0x210 net/nfc/core.c:247
#5: ffff88807a8d6350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_request net/nfc/nci/core.c:149 [inline]
#5: ffff88807a8d6350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_stop_poll+0x11d/0x470 net/nfc/nci/core.c:873
3 locks held by kworker/u4:15/7252:
3 locks held by kworker/u4:23/10813:
#0: ffff88802a5ef938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90015a97d00 ((work_completion)(&ndev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffff888076e0c100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:831 [inline]
#2: ffff888076e0c100 (&dev->mutex){....}-{3:3}, at: nfc_targets_found+0x273/0x590 net/nfc/core.c:778
3 locks held by kworker/0:0/13514:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc9000383fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/0:11/13883:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90004eefd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:0/13930:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc90004ebfd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:10/13933:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc9000510fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:14/13935:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc9000512fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
1 lock held by syz-executor.1/18688:
#0: ffff88807a8d6350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_close_device+0xfe/0x5e0 net/nfc/nci/core.c:561
3 locks held by kworker/1:3/18784:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc900032ffd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
2 locks held by syz-executor.1/18786:
#0: ffffffff8dc47448 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:129
#1: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_register_device+0x33/0x320 net/nfc/core.c:1116
1 lock held by syz-executor.0/18805:
#0: ffffffff8dc47448 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:129
3 locks held by kworker/1:4/18815:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc900037afd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:7/18816:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc9000352fd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
3 locks held by kworker/1:8/18821:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc900037cfd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
1 lock held by syz-executor.5/18824:
#0: ffffffff8dc47448 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:129
3 locks held by kworker/1:11/18827:
#0: ffff888012870d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x796/0xd10 kernel/workqueue.c:2262
#1: ffffc900037dfd00 ((work_completion)(&w->w)){+.+.}-{0:0}, at: process_one_work+0x7d0/0xd10 kernel/workqueue.c:2264
#2: ffffffff8e95cf28 (nfc_devlist_mutex){+.+.}-{3:3}, at: nfc_urelease_event_work+0xa4/0x300 net/nfc/netlink.c:1829
1 lock held by syz-executor.1/18830:
#0: ffffffff8dc47448 (misc_mtx){+.+.}-{3:3}, at: misc_open+0x57/0x3c0 drivers/char/misc.c:129
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc2-syzkaller-00256-ga689b938df39 #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 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 7938 Comm: kworker/u4:19 Not tainted 6.2.0-rc2-syzkaller-00256-ga689b938df39 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Workqueue: bat_events batadv_nc_worker
RIP: 0010:lock_acquire+0x238/0x400 kernel/locking/lockdep.c:5672
Code: 00 02 00 00 74 01 fb 48 c7 44 24 40 0e 36 e0 45 4b c7 04 2c 00 00 00 00 43 c7 44 2c 09 00 00 00 00 43 c7 44 2c 11 00 00 00 00 <66> 43 c7 44 2c 15 00 00 43 c6 44 2c 17 00 65 48 8b 04 25 28 00 00
RSP: 0018:ffffc90004c3fa60 EFLAGS: 00000206
RAX: 0000000000000001 RBX: 1ffff92000987f58 RCX: ffff888075748a30
RDX: dffffc0000000000 RSI: ffffffff8b0daae0 RDI: ffffffff8b6979c0
RBP: ffffc90004c3fbb8 R08: dffffc0000000000 R09: fffffbfff212e031
R10: fffffbfff212e031 R11: 1ffffffff212e030 R12: dffffc0000000000
R13: 1ffff92000987f54 R14: ffffc90004c3fac0 R15: 0000000000000246
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055df9f6a69f8 CR3: 000000000d28e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
rcu_lock_acquire+0x2a/0x30 include/linux/rcupdate.h:325
rcu_read_lock include/linux/rcupdate.h:764 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
batadv_nc_worker+0xc8/0x5b0 net/batman-adv/network-coding.c:719
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