INFO: task kworker/1:2:917 blocked for more than 143 seconds.
Not tainted 6.4.0-rc7-next-20230626-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:kworker/1:2 state:D
stack:26248 pid:917 ppid:2 flags:0x00004000
Workqueue: xfs-sync/loop0 xfs_flush_inodes_worker
Call Trace:
context_switch kernel/sched/core.c:5381 [inline]
__schedule+0xc9a/0x5880 kernel/sched/core.c:6710
schedule+0xde/0x1a0 kernel/sched/core.c:6786
wb_wait_for_completion+0x182/0x240 fs/fs-writeback.c:192
sync_inodes_sb+0x1aa/0xa60 fs/fs-writeback.c:2736
xfs_flush_inodes_worker+0x67/0x80 fs/xfs/xfs_super.c:623
process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748
kthread+0x344/0x440 kernel/kthread.c:389
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
INFO: task syz-executor369:5028 blocked for more than 143 seconds.
Not tainted 6.4.0-rc7-next-20230626-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor369 state:D
stack:24776 pid:5028 ppid:5027 flags:0x00004006
Call Trace:
context_switch kernel/sched/core.c:5381 [inline]
__schedule+0xc9a/0x5880 kernel/sched/core.c:6710
schedule+0xde/0x1a0 kernel/sched/core.c:6786
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_work+0x595/0xb60 kernel/workqueue.c:3386
xfs_flush_inodes+0x76/0x90 fs/xfs/xfs_super.c:646
xfs_file_buffered_write+0x297/0xa50 fs/xfs/xfs_file.c:771
xfs_file_write_iter+0x53b/0x730 fs/xfs/xfs_file.c:824
call_write_iter include/linux/fs.h:1871 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x981/0xda0 fs/read_write.c:584
ksys_write+0x122/0x250 fs/read_write.c:637
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:0x7fd8e39a8229
RSP: 002b:00007ffe2d8f42c8 EFLAGS: 00000246
ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fd8e39a8229
RDX: 000000000208e24b RSI: 0000000020000040 RDI: 0000000000000004
RBP: 0000000000000000 R08: 00007fd8e3a1fec0 R09: 00007fd8e3a1fec0
R10: 0000000000000002 R11: 0000000000000246 R12: 00007ffe2d8f42f0
R13: 0000000000000000 R14: 431bde82d7b634db R15: 0000000000000000
Showing all locks held in the system:
2 locks held by kworker/0:0/7:
8 locks held by kworker/u4:0/10:
1 lock held by rcu_tasks_kthre/13:
#0:
ffffffff8c9a2170
(
rcu_tasks.tasks_gp_mutex
){+.+.}-{3:3}
, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522
1 lock held by rcu_tasks_trace/14:
#0:
ffffffff8c9a1e70
(
rcu_tasks_trace.tasks_gp_mutex
){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x31/0xd80 kernel/rcu/tasks.h:522
1 lock held by khungtaskd/28:
#0:
ffffffff8c9a2d80
(
rcu_read_lock
){....}-{1:2}
, at: debug_show_all_locks+0x55/0x340 kernel/locking/lockdep.c:6615
4 locks held by kworker/1:2/917:
#0:
ffff88802a7ed938
(
(wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: arch_atomic64_set arch/x86/include/asm/atomic64_64.h:20 [inline]
(wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: raw_atomic64_set include/linux/atomic/atomic-arch-fallback.h:2608 [inline]
(wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: raw_atomic_long_set include/linux/atomic/atomic-long.h:79 [inline]
(wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: atomic_long_set include/linux/atomic/atomic-instrumented.h:3196 [inline]
(wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: set_work_data kernel/workqueue.c:675 [inline]
(wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: set_work_pool_and_clear_pending kernel/workqueue.c:702 [inline]
(wq_completion)xfs-sync/loop0){+.+.}-{0:0}, at: process_one_work+0x8fd/0x16f0 kernel/workqueue.c:2567
#1:
ffffc9000506fdb0
(
(work_completion)(&mp->m_flush_inodes_work)
){+.+.}-{0:0}
, at: process_one_work+0x930/0x16f0 kernel/workqueue.c:2571
#2:
ffff88807d7d80e0
(
&type->s_umount_key#42){.+.+}-{3:3}, at: xfs_flush_inodes_worker+0x42/0x80 fs/xfs/xfs_super.c:622
#3: ffff88801f3587d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:364 [inline]
#3: ffff88801f3587d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x190/0xa60 fs/fs-writeback.c:2734
2 locks held by getty/4780:
#0: ffff88802bb7a098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x26/0x80 drivers/tty/tty_ldisc.c:243
#1: ffffc900015b02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0xf08/0x13f0 drivers/tty/n_tty.c:2187
2 locks held by syz-executor369/5028:
#0: ffff88807d7d8410
(
sb_writers#9){.+.+}-{0:0}, at: ksys_write+0x122/0x250 fs/read_write.c:637
#1: ffff888077fb1a78 (&sb->s_type->i_mutex_key#15){+.+.}-{3:3}, at: xfs_ilock+0x354/0x3e0 fs/xfs/xfs_inode.c:195
=============================================
NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.4.0-rc7-next-20230626-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/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:160 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:222 [inline]
watchdog+0xe16/0x1090 kernel/hung_task.c:379
kthread+0x344/0x440 kernel/kthread.c:389
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: 7 Comm: kworker/0:0 Not tainted 6.4.0-rc7-next-20230626-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
Workqueue: xfs-buf/loop0 xfs_buf_ioend_work
RIP: 0010:io_serial_in+0x87/0xa0 drivers/tty/serial/8250/8250_port.c:410
Code: a2 f8 fc 48 8d 7d 40 44 89 e1 48 b8 00 00 00 00 00 fc ff df 48 89 fa d3 e3 48 c1 ea 03 80 3c 02 00 75 16 66 03 5d 40 89 da ec <5b> 0f b6 c0 5d 41 5c c3 e8 dc c3 4b fd eb a6 e8 35 c4 4b fd eb e3
RSP: 0018:ffffc900000c7668 EFLAGS: 00000006
RAX: dffffc0000000005 RBX: 00000000000003f9 RCX: 0000000000000000
RDX: 00000000000003f9 RSI: ffffffff848c6950 RDI: ffffffff92421ae0
RBP: ffffffff92421aa0 R08: 0000000000000001 R09: 000000000000001f
R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
R13: ffffffff92421aa0 R14: ffffffff92421d60 R15: ffffffff92421af0
FS: 0000000000000000(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557bef223600 CR3: 00000000163df000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
serial_port_in include/linux/serial_core.h:592 [inline]
serial8250_console_write+0x1be/0x1010 drivers/tty/serial/8250/8250_port.c:3408
console_emit_next_record kernel/printk/printk.c:2877 [inline]
console_flush_all+0x49c/0xcc0 kernel/printk/printk.c:2933
console_unlock+0xb8/0x1f0 kernel/printk/printk.c:3007
vprintk_emit+0x1bd/0x600 kernel/printk/printk.c:2307
vprintk+0x84/0xa0 kernel/printk/printk_safe.c:50
_printk+0xbf/0xf0 kernel/printk/printk.c:2328
print_hex_dump+0x1b6/0x240 lib/hexdump.c:285
xfs_hex_dump+0x3a/0x40 fs/xfs/xfs_message.c:110
xfs_buf_verifier_error+0x24b/0x320 fs/xfs/xfs_error.c:460
xfs_allocbt_read_verify+0x44/0xe0 fs/xfs/libxfs/xfs_alloc_btree.c:341
xfs_buf_ioend+0x75b/0x1870 fs/xfs/xfs_buf.c:1302
process_one_work+0xa34/0x16f0 kernel/workqueue.c:2597
worker_thread+0x67d/0x10c0 kernel/workqueue.c:2748
kthread+0x344/0x440 kernel/kthread.c:389
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.926 msecs