INFO: task kworker/u4:17:5889 blocked for more than 143 seconds.
Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/u4:17 state:D stack:26248 pid:5889 ppid:2 flags:0x00004000
Workqueue: nfc2_nci_rx_wq nci_rx_work
Call Trace:
context_switch kernel/sched/core.c:5333 [inline]
__schedule+0x1d23/0x5650 kernel/sched/core.c:6658
schedule+0xde/0x1a0 kernel/sched/core.c:6734
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6793
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747
device_lock include/linux/device.h:837 [inline]
nfc_targets_found+0xe8/0x3e0 net/nfc/core.c:778
nci_target_auto_activated net/nfc/nci/ntf.c:489 [inline]
nci_rf_intf_activated_ntf_packet net/nfc/nci/ntf.c:672 [inline]
nci_ntf_packet+0x1326/0x2bc0 net/nfc/nci/ntf.c:802
nci_rx_work+0x190/0x330 net/nfc/nci/core.c:1517
process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
kthread+0x33e/0x440 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
INFO: task syz-executor.4:17525 blocked for more than 143 seconds.
Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:27488 pid:17525 ppid:13010 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5333 [inline]
__schedule+0x1d23/0x5650 kernel/sched/core.c:6658
schedule+0xde/0x1a0 kernel/sched/core.c:6734
schedule_timeout+0x276/0x2b0 kernel/time/timer.c:2143
do_wait_for_common kernel/sched/completion.c:85 [inline]
__wait_for_common+0x1ce/0x5c0 kernel/sched/completion.c:106
__flush_workqueue+0x3f5/0x13a0 kernel/workqueue.c:2977
nci_close_device+0x142/0x370 net/nfc/nci/core.c:579
nci_unregister_device+0x38/0x310 net/nfc/nci/core.c:1292
virtual_ncidev_close+0x52/0xb0 drivers/nfc/virtual_ncidev.c:163
__fput+0x27c/0xa90 fs/file_table.c:321
task_work_run+0x16f/0x270 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop kernel/entry/common.c:171 [inline]
exit_to_user_mode_prepare+0x210/0x240 kernel/entry/common.c:204
__syscall_exit_to_user_mode_work kernel/entry/common.c:286 [inline]
syscall_exit_to_user_mode+0x1d/0x50 kernel/entry/common.c:297
do_syscall_64+0x46/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcd2a63dfab
RSP: 002b:00007ffe60e6bf80 EFLAGS: 00000293 ORIG_RAX: 0000000000000003
RAX: 0000000000000000 RBX: 0000000000000004 RCX: 00007fcd2a63dfab
RDX: 0000001b30520000 RSI: 0000001b30526624 RDI: 0000000000000003
RBP: 00007fcd2a7ad980 R08: 0000000000000000 R09: 0000000084ddbe87
R10: 00007ffe60e7c090 R11: 0000000000000293 R12: 00000000001617ac
R13: 00007ffe60e6c080 R14: 00007fcd2a7ac120 R15: 0000000000000032
INFO: task syz-executor.4:17527 blocked for more than 143 seconds.
Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:27016 pid:17527 ppid:13010 flags:0x00000004
Call Trace:
context_switch kernel/sched/core.c:5333 [inline]
__schedule+0x1d23/0x5650 kernel/sched/core.c:6658
schedule+0xde/0x1a0 kernel/sched/core.c:6734
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6793
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747
genl_lock net/netlink/genetlink.c:33 [inline]
genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063
netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2572
genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076
netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942
sock_sendmsg_nosec net/socket.c:724 [inline]
sock_sendmsg+0xde/0x190 net/socket.c:747
____sys_sendmsg+0x71c/0x900 net/socket.c:2501
___sys_sendmsg+0x110/0x1b0 net/socket.c:2555
__sys_sendmsg+0xf7/0x1c0 net/socket.c:2584
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcd2a68c0f9
RSP: 002b:00007fcd2b4bc168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fcd2a7abf80 RCX: 00007fcd2a68c0f9
RDX: 0000000000000000 RSI: 0000000020000780 RDI: 0000000000000005
RBP: 00007fcd2a6e7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe60e6bf1f R14: 00007fcd2b4bc300 R15: 0000000000022000
INFO: task syz-executor.4:17534 blocked for more than 144 seconds.
Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.4 state:D stack:26096 pid:17534 ppid:13010 flags:0x00004004
Call Trace:
context_switch kernel/sched/core.c:5333 [inline]
__schedule+0x1d23/0x5650 kernel/sched/core.c:6658
schedule+0xde/0x1a0 kernel/sched/core.c:6734
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6793
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747
nci_request net/nfc/nci/core.c:149 [inline]
nci_start_poll+0x319/0x970 net/nfc/nci/core.c:854
nfc_start_poll+0x192/0x320 net/nfc/core.c:225
nfc_genl_start_poll+0x1ac/0x490 net/nfc/netlink.c:828
genl_family_rcv_msg_doit.isra.0+0x1e6/0x2d0 net/netlink/genetlink.c:968
genl_family_rcv_msg net/netlink/genetlink.c:1048 [inline]
genl_rcv_msg+0x4ff/0x7e0 net/netlink/genetlink.c:1065
netlink_rcv_skb+0x165/0x440 net/netlink/af_netlink.c:2572
genl_rcv+0x28/0x40 net/netlink/genetlink.c:1076
netlink_unicast_kernel net/netlink/af_netlink.c:1339 [inline]
netlink_unicast+0x547/0x7f0 net/netlink/af_netlink.c:1365
netlink_sendmsg+0x925/0xe30 net/netlink/af_netlink.c:1942
sock_sendmsg_nosec net/socket.c:724 [inline]
sock_sendmsg+0xde/0x190 net/socket.c:747
____sys_sendmsg+0x71c/0x900 net/socket.c:2501
___sys_sendmsg+0x110/0x1b0 net/socket.c:2555
__sys_sendmsg+0xf7/0x1c0 net/socket.c:2584
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x39/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fcd2a68c0f9
RSP: 002b:00007fcd2b49b168 EFLAGS: 00000246 ORIG_RAX: 000000000000002e
RAX: ffffffffffffffda RBX: 00007fcd2a7ac050 RCX: 00007fcd2a68c0f9
RDX: 0000000000000000 RSI: 0000000020000440 RDI: 0000000000000005
RBP: 00007fcd2a6e7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffe60e6bf1f R14: 00007fcd2b49b300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
#0: ffffffff8c796630 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:519
1 lock held by rcu_tasks_trace/14:
#0: ffffffff8c796330 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:519
1 lock held by khungtaskd/28:
#0: ffffffff8c797240 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6545
2 locks held by getty/4762:
#0: ffff88802c06a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xef4/0x13e0 drivers/tty/n_tty.c:2176
3 locks held by kworker/u4:17/5889:
#0: ffff88804268c938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:34 [inline]
#0: ffff88804268c938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: arch_atomic_long_set include/linux/atomic/atomic-long.h:41 [inline]
#0: ffff88804268c938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:1324 [inline]
#0: ffff88804268c938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:643 [inline]
#0: ffff88804268c938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:670 [inline]
#0: ffff88804268c938 ((wq_completion)nfc2_nci_rx_wq){+.+.}-{0:0}, at: process_one_work+0x883/0x15e0 kernel/workqueue.c:2376
#1: ffffc9000bedfdb0 ((work_completion)(&ndev->rx_work)){+.+.}-{0:0}, at: process_one_work+0x8b7/0x15e0 kernel/workqueue.c:2380
#2: ffff888075924100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline]
#2: ffff888075924100 (&dev->mutex){....}-{3:3}, at: nfc_targets_found+0xe8/0x3e0 net/nfc/core.c:778
1 lock held by syz-executor.4/17525:
#0: ffff888075923350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_close_device+0x6d/0x370 net/nfc/nci/core.c:561
2 locks held by syz-executor.4/17527:
#0: ffffffff8e196a10 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline]
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063
5 locks held by syz-executor.4/17534:
#0: ffffffff8e196a10 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline]
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063
#2: ffff888075924508 (&genl_data->genl_data_mutex){+.+.}-{3:3}, at: nfc_genl_start_poll+0x19e/0x490 net/nfc/netlink.c:826
#3: ffff888075924100 (&dev->mutex){....}-{3:3}, at: device_lock include/linux/device.h:837 [inline]
#3: ffff888075924100 (&dev->mutex){....}-{3:3}, at: nfc_start_poll+0x58/0x320 net/nfc/core.c:208
#4: ffff888075923350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_request net/nfc/nci/core.c:149 [inline]
#4: ffff888075923350 (&ndev->req_lock){+.+.}-{3:3}, at: nci_start_poll+0x319/0x970 net/nfc/nci/core.c:854
2 locks held by syz-executor.5/17598:
#0: ffffffff8e196a10 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline]
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063
2 locks held by syz-executor.4/17607:
#0: ffffffff8e196a10 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline]
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063
2 locks held by syz-executor.4/17622:
#0: ffffffff8e196a10 (cb_lock){++++}-{3:3}, at: genl_rcv+0x19/0x40 net/netlink/genetlink.c:1075
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_lock net/netlink/genetlink.c:33 [inline]
#1: ffffffff8e196ac8 (genl_mutex){+.+.}-{3:3}, at: genl_rcv_msg+0x51a/0x7e0 net/netlink/genetlink.c:1063
=============================================
NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0xd9/0x150 lib/dump_stack.c:106
nmi_cpu_backtrace+0x29c/0x350 lib/nmi_backtrace.c:113
nmi_trigger_cpumask_backtrace+0x2a4/0x300 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xe16/0x1090 kernel/hung_task.c:379
kthread+0x33e/0x440 kernel/kthread.c:379
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: 40 Comm: kworker/u4:2 Not tainted 6.3.0-rc4-next-20230331-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:__lock_acquire+0xc17/0x5df0 kernel/locking/lockdep.c:5071
Code: 00 00 48 8d 1c 5b 48 c1 e3 06 48 81 c3 60 c0 4f 91 48 8d 7b 40 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 80 3c 02 00 <0f> 85 e6 47 00 00 48 83 7b 40 00 0f 84 f7 0f 00 00 0f b7 44 24 10
RSP: 0018:ffffc90000b17a38 EFLAGS: 00000046
RAX: dffffc0000000000 RBX: ffffffff914fd7a0 RCX: ffffffff81648361
RDX: 1ffffffff229fafc RSI: 0000000000000008 RDI: ffffffff914fd7e0
RBP: 0000000000000004 R08: 0000000000000000 R09: ffffffff914fbc47
R10: fffffbfff229f788 R11: 0000000000000000 R12: ffff8880177a4508
R13: ffff8880177a3a80 R14: 0000000000000000 R15: b98d254c0818c18a
FS: 0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c0031d7000 CR3: 000000000c571000 CR4: 00000000003506e0
DR0: 00000000ffff070c DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
Call Trace:
lock_acquire.part.0+0x11c/0x370 kernel/locking/lockdep.c:5691
rcu_lock_acquire include/linux/rcupdate.h:302 [inline]
rcu_read_lock include/linux/rcupdate.h:748 [inline]
batadv_nc_purge_orig_hash net/batman-adv/network-coding.c:408 [inline]
batadv_nc_worker+0x131/0xfe0 net/batman-adv/network-coding.c:719
process_one_work+0x99a/0x15e0 kernel/workqueue.c:2405
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2552
kthread+0x33e/0x440 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308