INFO: task syz-executor.1:8174 blocked for more than 143 seconds.
Not tainted 6.3.0-rc2-next-20230316-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1 state:D stack:27480 pid:8174 ppid:5128 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5305 [inline]
__schedule+0x1d23/0x5650 kernel/sched/core.c:6623
schedule+0xde/0x1a0 kernel/sched/core.c:6699
schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6758
__mutex_lock_common kernel/locking/mutex.c:679 [inline]
__mutex_lock+0xa3b/0x1350 kernel/locking/mutex.c:747
eventpoll_release_file+0xe2/0x1d0 fs/eventpoll.c:962
eventpoll_release include/linux/eventpoll.h:53 [inline]
__fput+0x7da/0xa90 fs/file_table.c:312
task_work_run+0x16f/0x270 kernel/task_work.c:179
get_signal+0x1c7/0x25b0 kernel/signal.c:2635
arch_do_signal_or_restart+0x79/0x5c0 arch/x86/kernel/signal.c:306
exit_to_user_mode_loop kernel/entry/common.c:168 [inline]
exit_to_user_mode_prepare+0x11f/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:0x7fd4cc68c0f9
RSP: 002b:00007fd4cd367168 EFLAGS: 00000246 ORIG_RAX: 00000000000000e9
RAX: 0000000000000000 RBX: 00007fd4cc7ac1f0 RCX: 00007fd4cc68c0f9
RDX: 0000000000000008 RSI: 0000000000000001 RDI: 0000000000000005
RBP: 00007fd4cc6e7b39 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000020000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007ffd6ce1a7bf R14: 00007fd4cd367300 R15: 0000000000022000
Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/13:
#0: ffffffff8c795830 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:516
1 lock held by rcu_tasks_trace/14:
#0: ffffffff8c795530 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:516
1 lock held by khungtaskd/28:
#0: ffffffff8c796400 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x51/0x390 kernel/locking/lockdep.c:6545
2 locks held by getty/4761:
#0: ffff888027973098 (&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:2177
3 locks held by kworker/u4:1/5160:
3 locks held by kworker/u4:4/5195:
1 lock held by syz-executor.1/8172:
1 lock held by syz-executor.1/8174:
#0: ffff888028869c68 (&ep->mtx){+.+.}-{3:3}, at: eventpoll_release_file+0xe2/0x1d0 fs/eventpoll.c:962
5 locks held by kworker/u4:15/8979:
4 locks held by syz-executor.1/10133:
#0: ffff888086d1a1c0 (&tty->legacy_mutex){+.+.}-{3:3}, at: tty_release+0x8c/0x1380 drivers/tty/tty_io.c:1735
#1: ffff8880b9828808 (&per_cpu_ptr(group->pcpu, cpu)->seq){-.-.}-{0:0}, at: psi_task_switch+0x2de/0x950 kernel/sched/psi.c:976
#2: ffff888027e086f8 (&sig->wait_chldexit){....}-{2:2}, at: __wake_up_common_lock+0xb8/0x140 kernel/sched/wait.c:137
#3: ffff888027ee74a0 (&____s->seqcount#5){....}-{0:0}, at: exit_notify kernel/exit.c:761 [inline]
#3: ffff888027ee74a0 (&____s->seqcount#5){....}-{0:0}, at: do_exit+0x14a5/0x29f0 kernel/exit.c:889
2 locks held by syz-executor.2/10132:
1 lock held by syz-executor.2/10136:
#0: ffff88801e6f1798 (&q->debugfs_mutex){+.+.}-{3:3}, at: blk_trace_remove+0x22/0x40 kernel/trace/blktrace.c:406
2 locks held by syz-executor.5/10144:
#0: ffffffff8e103648 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:75 [inline]
#0: ffffffff8e103648 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x3e8/0xd50 net/core/rtnetlink.c:6171
#1: ffffffff8c7a1878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:293 [inline]
#1: ffffffff8c7a1878 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x64a/0x770 kernel/rcu/tree_exp.h:992
2 locks held by syz-executor.1/10157:
#0: ffff888020e2c098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
#1: ffff888020e2c130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: tty_write_lock drivers/tty/tty_io.c:944 [inline]
#1: ffff888020e2c130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: do_tty_write drivers/tty/tty_io.c:967 [inline]
#1: ffff888020e2c130 (&tty->atomic_write_lock){+.+.}-{3:3}, at: file_tty_write.constprop.0+0x251/0x9c0 drivers/tty/tty_io.c:1089
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.3.0-rc2-next-20230316-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 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 5465 Comm: kworker/u4:6 Not tainted 6.3.0-rc2-next-20230316-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: events_unbound flush_to_ldisc
RIP: 0010:arch_atomic_read arch/x86/include/asm/atomic.h:29 [inline]
RIP: 0010:rcu_dynticks_curr_cpu_in_eqs include/linux/context_tracking.h:121 [inline]
RIP: 0010:rcu_is_watching+0x5c/0xb0 kernel/rcu/tree.c:695
Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 75 54 48 03 1c ed 00 fa 10 8c 48 b8 00 00 00 00 00 fc ff df 48 89 da 48 c1 ea 03 0f b6 14 02 <48> 89 d8 83 e0 07 83 c0 03 38 d0 7c 04 84 d2 75 1c 8b 03 c1 e8 02
RSP: 0018:ffffc900050974f8 EFLAGS: 00000806
RAX: dffffc0000000000 RBX: ffff8880b9836c68 RCX: ffffffff8164cf65
RDX: 0000000000000000 RSI: 0000000000000004 RDI: ffffffff8c10fa00
RBP: 0000000000000000 R08: 0000000000000000 R09: ffffffff8e784717
R10: fffffbfff1cf08e2 R11: 0000000000000001 R12: ffffffff8c796400
R13: 0000000000000000 R14: 0000000000000001 R15: ffff8880166ac000
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f68f0b842d8 CR3: 0000000026317000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
trace_lock_release include/trace/events/lock.h:69 [inline]
lock_release+0x4fb/0x670 kernel/locking/lockdep.c:5702
rcu_lock_release include/linux/rcupdate.h:332 [inline]
rcu_read_unlock include/linux/rcupdate.h:806 [inline]
select_task_rq_fair+0x470/0x3ff0 kernel/sched/fair.c:7672
select_task_rq kernel/sched/core.c:3553 [inline]
try_to_wake_up+0x3a0/0x1a50 kernel/sched/core.c:4260
wake_up_worker kernel/workqueue.c:859 [inline]
insert_work+0x27e/0x350 kernel/workqueue.c:1369
__queue_work+0x5c6/0xfb0 kernel/workqueue.c:1524
queue_work_on+0xf2/0x110 kernel/workqueue.c:1552
queue_work include/linux/workqueue.h:504 [inline]
tty_insert_flip_string_and_push_buffer+0x11c/0x160 drivers/tty/tty_buffer.c:634
pty_write+0xda/0x100 drivers/tty/pty.c:118
tty_put_char+0x126/0x150 drivers/tty/tty_io.c:3142
__process_echoes+0x583/0x9f0 drivers/tty/n_tty.c:717
commit_echoes+0x148/0x210 drivers/tty/n_tty.c:782
n_tty_receive_char+0x3b7/0x5b0 drivers/tty/n_tty.c:1420
n_tty_receive_buf_standard+0x930/0x2de0 drivers/tty/n_tty.c:1589
__receive_buf drivers/tty/n_tty.c:1613 [inline]
n_tty_receive_buf_common+0x3a8/0x1540 drivers/tty/n_tty.c:1711
tty_ldisc_receive_buf+0xa7/0x190 drivers/tty/tty_buffer.c:457
tty_port_default_receive_buf+0x72/0xa0 drivers/tty/tty_port.c:39
receive_buf drivers/tty/tty_buffer.c:515 [inline]
flush_to_ldisc+0x218/0x700 drivers/tty/tty_buffer.c:565
process_one_work+0x991/0x15c0 kernel/workqueue.c:2390
worker_thread+0x669/0x1090 kernel/workqueue.c:2537
kthread+0x33e/0x440 kernel/kthread.c:379
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308