[v6.1] INFO: task hung in sync_inodes_sb

19 views
Skip to first unread message

syzbot

unread,
Mar 9, 2023, 9:07:36 PM3/9/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 42616e0f09fb Linux 6.1.15
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11e9f47cc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=690b9ff41783cd73
dashboard link: https://syzkaller.appspot.com/bug?extid=9a20df095d11804348bc
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/db869f2ed2bd/disk-42616e0f.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/37951bbe5829/vmlinux-42616e0f.xz
kernel image: https://storage.googleapis.com/syzbot-assets/23aa1a75ce0f/bzImage-42616e0f.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9a20df...@syzkaller.appspotmail.com

INFO: task syz-executor.2:8468 blocked for more than 143 seconds.
Not tainted 6.1.15-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:21224 pid:8468 ppid:1 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5238 [inline]
__schedule+0x1376/0x4360 kernel/sched/core.c:6551
schedule+0xbf/0x180 kernel/sched/core.c:6627
wb_wait_for_completion+0x162/0x290 fs/fs-writeback.c:191
sync_inodes_sb+0x2af/0xa70 fs/fs-writeback.c:2714
sync_filesystem+0x16b/0x220 fs/sync.c:64
generic_shutdown_super+0x6b/0x310 fs/super.c:474
kill_block_super+0x7a/0xe0 fs/super.c:1428
deactivate_locked_super+0xa0/0x110 fs/super.c:332
cleanup_mnt+0x490/0x520 fs/namespace.c:1186
task_work_run+0x246/0x300 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
exit_to_user_mode_loop+0xd9/0x100 kernel/entry/common.c:171
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:203
__syscall_exit_to_user_mode_work kernel/entry/common.c:285 [inline]
syscall_exit_to_user_mode+0x60/0x2c0 kernel/entry/common.c:296
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f6d81c8d567
RSP: 002b:00007ffcf87968a8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f6d81c8d567
RDX: 00007ffcf8796979 RSI: 000000000000000a RDI: 00007ffcf8796970
RBP: 00007ffcf8796970 R08: 00000000ffffffff R09: 00007ffcf8796740
R10: 0000555555e1d8b3 R11: 0000000000000246 R12: 00007f6d81ce6b24
R13: 00007ffcf8797a30 R14: 0000555555e1d810 R15: 00007ffcf8797a70
</TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
#0: ffffffff8cf267f0 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xce0 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
#0: ffffffff8cf26ff0 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x26/0xce0 kernel/rcu/tasks.h:507
5 locks held by kworker/1:1/26:
1 lock held by khungtaskd/28:
#0: ffffffff8cf26620 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
1 lock held by klogd/2986:
#0:
ffff8880b9b39dd8 (&rq->__lock){-.-.}-{2:2}, at: raw_spin_rq_lock_nested+0x26/0x140 kernel/sched/core.c:537
2 locks held by getty/3318:
#0: ffff8880280c5098 (&tty->ldisc_sem){++++}-{0:0}
, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
#1: ffffc900031262f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6a7/0x1db0 drivers/tty/n_tty.c:2177
4 locks held by kworker/u4:14/5308:
#0:
ffff8881456bd938
((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x77b/0x1350
#1: ffffc900093b7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7be/0x1350 kernel/workqueue.c:2264
#2: ffff88802a3be650 (sb_internal#2){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x263/0x12d0 fs/xfs/libxfs/xfs_bmap.c:4521
#3: ffff88802acb08d8 (&xfs_nondir_ilock_class){++++}-{3:3}, at: xfs_bmapi_convert_delalloc+0x291/0x12d0 fs/xfs/libxfs/xfs_bmap.c:4526
2 locks held by syz-executor.2/8468:
#0: ffff88802a3be0e0 (&type->s_umount_key#55){+.+.}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:362
#1: ffff8881475d47d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
#1: ffff8881475d47d0 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x290/0xa70 fs/fs-writeback.c:2712

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 28 Comm: khungtaskd Not tainted 6.1.15-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x4e1/0x560 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x1b0/0x3f0 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+0xf68/0xfb0 kernel/hung_task.c:377
kthread+0x268/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 26 Comm: kworker/1:1 Not tainted 6.1.15-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: xfs-buf/loop2 xfs_buf_ioend_work
RIP: 0010:io_serial_in+0x72/0xb0 drivers/tty/serial/8250/8250_port.c:460
Code: 74 ac dc fc 89 e9 41 d3 e6 48 83 c3 40 48 89 d8 48 c1 e8 03 42 80 3c 38 00 74 08 48 89 df e8 25 b7 32 fd 44 03 33 44 89 f2 ec <0f> b6 c0 5b 41 5e 41 5f 5d c3 89 e9 80 e1 07 38 c1 7c ad 48 89 ef
RSP: 0018:ffffc90000a1f2f8 EFLAGS: 00000002
RAX: 1ffffffff239ee00 RBX: ffffffff91cf7380 RCX: 0000000000000000
RDX: 00000000000003fd RSI: 0000000000000000 RDI: 0000000000000020
RBP: 0000000000000000 R08: ffffffff84ad7da2 R09: ffffed1003d48047
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff919afd70
R13: 000000000000270e R14: 00000000000003fd R15: dffffc0000000000
FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000563f47e52600 CR3: 000000000cc8e000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
serial_in drivers/tty/serial/8250/8250.h:118 [inline]
serial_lsr_in drivers/tty/serial/8250/8250.h:140 [inline]
wait_for_lsr drivers/tty/serial/8250/8250_port.c:2087 [inline]
serial8250_console_fifo_write drivers/tty/serial/8250/8250_port.c:3358 [inline]
serial8250_console_write+0x1057/0x1750 drivers/tty/serial/8250/8250_port.c:3436
call_console_driver kernel/printk/printk.c:1942 [inline]
console_emit_next_record+0xa78/0xda0 kernel/printk/printk.c:2731
console_unlock+0x278/0x6e0 kernel/printk/printk.c:2860
vprintk_emit+0xd1/0x1f0 kernel/printk/printk.c:2268
_printk+0xd1/0x111 kernel/printk/printk.c:2289
print_hex_dump+0x1a2/0x250 lib/hexdump.c:285
xfs_hex_dump+0x39/0x50 fs/xfs/xfs_message.c:110
xfs_buf_verifier_error+0x1ca/0x2a0 fs/xfs/xfs_error.c:428
xfs_allocbt_read_verify+0x52/0xc0
xfs_buf_ioend+0x328/0x850 fs/xfs/xfs_buf.c:1303
process_one_work+0x8ee/0x1350 kernel/workqueue.c:2289
worker_thread+0xa5f/0x1210 kernel/workqueue.c:2436
kthread+0x268/0x300 kernel/kthread.c:376
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:306
</TASK>


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Mar 9, 2023, 9:13:48 PM3/9/23
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: d9b4a0c83a2d Linux 5.15.98
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12f85a5cc80000
kernel config: https://syzkaller.appspot.com/x/.config?x=2f8d9515b973b23b
dashboard link: https://syzkaller.appspot.com/bug?extid=e0232bd63c6e293aaf6a
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2

Unfortunately, I don't have any reproducer for this issue yet.

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/037cabbd3313/disk-d9b4a0c8.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/9967e551eb34/vmlinux-d9b4a0c8.xz
kernel image: https://storage.googleapis.com/syzbot-assets/a050c7a4fd99/bzImage-d9b4a0c8.xz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+e0232b...@syzkaller.appspotmail.com

INFO: task syz-executor.2:3626 blocked for more than 143 seconds.
Not tainted 5.15.98-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.2 state:D stack:20608 pid: 3626 ppid: 1 flags:0x00004004
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5023 [inline]
__schedule+0x132d/0x45e0 kernel/sched/core.c:6369
schedule+0x11b/0x1f0 kernel/sched/core.c:6452
wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191
sync_inodes_sb+0x2af/0xa70 fs/fs-writeback.c:2745
sync_filesystem+0x16b/0x220 fs/sync.c:64
generic_shutdown_super+0x6e/0x2c0 fs/super.c:448
kill_block_super+0x7a/0xe0 fs/super.c:1396
deactivate_locked_super+0xa0/0x110 fs/super.c:335
cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
task_work_run+0x129/0x1a0 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:207
__syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
syscall_exit_to_user_mode+0x5d/0x2a0 kernel/entry/common.c:300
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f7c6833f567
RSP: 002b:00007ffc6ec5aac8 EFLAGS: 00000246 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f7c6833f567
RDX: 00007ffc6ec5ab9b RSI: 000000000000000a RDI: 00007ffc6ec5ab90
RBP: 00007ffc6ec5ab90 R08: 00000000ffffffff R09: 00007ffc6ec5a960
R10: 00005555571348b3 R11: 0000000000000246 R12: 00007f7c68398b24
R13: 00007ffc6ec5bc50 R14: 0000555557134810 R15: 00007ffc6ec5bc90
</TASK>

Showing all locks held in the system:
4 locks held by kworker/u4:0/9:
#0: ffff888142fdc138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x1230 kernel/workqueue.c:2279
#1: ffffc90000ce7d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7cd/0x1230 kernel/workqueue.c:2281
#2: ffff8880688a2650 (sb_internal#2){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x20f/0x1180 fs/xfs/libxfs/xfs_bmap.c:4573
#3: ffff888040505368 (&xfs_nondir_ilock_class){++++}-{3:3}, at: xfs_bmapi_convert_delalloc+0x23c/0x1180 fs/xfs/libxfs/xfs_bmap.c:4578
5 locks held by kworker/0:1/13:
3 locks held by kworker/1:0/21:
#0:
ffff888011c64d38
((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x1230 kernel/workqueue.c:2279
#1: ffffc90000db7d20 ((work_completion)(&(&nsim_dev->trap_data->trap_report_dw)->work)){+.+.}-{0:0}, at: process_one_work+0x7cd/0x1230 kernel/workqueue.c:2281
#2: ffff88804436e400 (&nsim_dev->port_list_lock#2){+.+.}-{3:3}, at: nsim_dev_trap_report_work+0x56/0xab0 drivers/net/netdevsim/dev.c:760
3 locks held by kworker/1:1/25:
#0: ffff888011c64d38 ((wq_completion)events){+.+.}-{0:0}, at: process_one_work+0x78a/0x1230 kernel/workqueue.c:2279
#1:
ffffc90000dffd20 (deferred_process_work){+.+.}-{0:0}, at: process_one_work+0x7cd/0x1230 kernel/workqueue.c:2281
#2:
ffffffff8d9d8628
(rtnl_mutex){+.+.}-{3:3}, at: switchdev_deferred_process_work+0xa/0x20 net/switchdev/switchdev.c:74
1 lock held by khungtaskd/27:
#0:
ffffffff8c91c660
(
rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by kworker/u4:2/154:
3 locks held by kworker/1:2/1065:
#0:
ffff888011c64d38 (
(wq_completion)events
){+.+.}-{0:0}
, at: process_one_work+0x78a/0x1230 kernel/workqueue.c:2279
#1:
ffffc9000538fd20
((linkwatch_work).work){+.+.}-{0:0}, at: process_one_work+0x7cd/0x1230 kernel/workqueue.c:2281
#2: ffffffff8d9d8628 (rtnl_mutex){+.+.}-{3:3}, at: linkwatch_event+0xa/0x50 net/core/link_watch.c:251
1 lock held by dhcpcd/3170:
#0: ffffffff8d9d8628 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock net/core/rtnetlink.c:72 [inline]
#0: ffffffff8d9d8628 (rtnl_mutex){+.+.}-{3:3}, at: rtnetlink_rcv_msg+0x897/0xde0 net/core/rtnetlink.c:5584
2 locks held by getty/3270:
#0: ffff888024f35098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1:
ffffc90002bb32e8
(
&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6af/0x1da0 drivers/tty/n_tty.c:2147
2 locks held by syz-executor.2/3626:
#0: ffff8880688a20e0 (&type->s_umount_key#56){+.+.}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:365
#1: ffff88801c5fc7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
#1: ffff88801c5fc7d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x290/0xa70 fs/fs-writeback.c:2743
2 locks held by syz-executor.4/3636:
#0:
ffff88801d26a0e0
(
&type->s_umount_key#56){+.+.}-{3:3}, at: deactivate_super+0xa9/0xe0 fs/super.c:365
#1: ffff8881470b67d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
#1: ffff8881470b67d8 (&bdi->wb_switch_rwsem){+.+.}-{3:3}, at: sync_inodes_sb+0x290/0xa70 fs/fs-writeback.c:2743
5 locks held by kworker/0:4/3668:
4 locks held by kworker/u4:9/5251:
#0: ffff888142fdc138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x1230 kernel/workqueue.c:2279
#1: ffffc90006207d20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7cd/0x1230 kernel/workqueue.c:2281
#2: ffff88801d26a650 (sb_internal#2){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x20f/0x1180 fs/xfs/libxfs/xfs_bmap.c:4573
#3: ffff888040501768 (&xfs_nondir_ilock_class){++++}-{3:3}, at: xfs_bmapi_convert_delalloc+0x23c/0x1180 fs/xfs/libxfs/xfs_bmap.c:4578
5 locks held by kworker/u4:12/5274:
#0: ffff888011db5138 ((wq_completion)netns){+.+.}-{0:0}, at: process_one_work+0x78a/0x1230 kernel/workqueue.c:2279
#1: ffffc9000b4b7d20 (net_cleanup_work){+.+.}-{0:0}, at: process_one_work+0x7cd/0x1230 kernel/workqueue.c:2281
#2: ffffffff8d9cc8d0 (pernet_ops_rwsem){++++}-{3:3}, at: cleanup_net+0xf1/0xb60 net/core/net_namespace.c:558
#3: ffffffff8d9d8628 (rtnl_mutex){+.+.}-{3:3}, at: rtnl_lock_unregistering net/core/dev.c:11545 [inline]
#3: ffffffff8d9d8628 (rtnl_mutex){+.+.}-{3:3}, at: default_device_exit_batch+0x1ac/0x3f0 net/core/dev.c:11583
#4: ffffffff8c920ba8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:290 [inline]
#4: ffffffff8c920ba8 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x277/0x730 kernel/rcu/tree_exp.h:838
3 locks held by kworker/u4:14/5294:
7 locks held by syz-executor.1/8842:
#0: ffff888025666460 (sb_writers#8){.+.+}-{0:0}, at: vfs_write+0x29a/0xe50 fs/read_write.c:590
#1: ffff88801f582088 (&of->mutex){+.+.}-{3:3}, at: kernfs_fop_write_iter+0x1e7/0x4f0 fs/kernfs/file.c:287
#2: ffff88801ef22008 (kn->active#206){.+.+}-{0:0}, at: kernfs_fop_write_iter+0x20b/0x4f0 fs/kernfs/file.c:288
#3: ffffffff8d355da8
(
nsim_bus_dev_list_lock
){+.+.}-{3:3}, at: del_device_store+0xf1/0x470 drivers/net/netdevsim/bus.c:344
#4:
ffff88804436d178
(
&dev->mutex
){....}-{3:3}
, at: device_lock include/linux/device.h:760 [inline]
, at: __device_driver_lock drivers/base/dd.c:1039 [inline]
, at: device_release_driver_internal+0xc2/0x7f0 drivers/base/dd.c:1254
#5: ffff88804436e400 (&nsim_dev->port_list_lock#2){+.+.}-{3:3}, at: nsim_dev_port_del_all drivers/net/netdevsim/dev.c:1362 [inline]
#5: ffff88804436e400 (&nsim_dev->port_list_lock#2){+.+.}-{3:3}, at: nsim_dev_reload_destroy+0x118/0x240 drivers/net/netdevsim/dev.c:1564
#6: ffffffff8d9d8628 (rtnl_mutex){+.+.}-{3:3}, at: netdev_run_todo+0xa4f/0xc40 net/core/dev.c:10625

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0xec6/0xf10 kernel/hung_task.c:295
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 <unknown>:298
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 4425 Comm: kworker/1:7 Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: xfs-buf/loop4 xfs_buf_ioend_work
RIP: 0010:irqtime_account_irq+0xb/0x1e0 kernel/sched/cputime.c:51
Code: 05 39 39 f3 0d 01 c3 0f 1f 84 00 00 00 00 00 c6 05 29 39 f3 0d 00 c3 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 55 41 54 53 50 <41> 89 f7 48 89 fd e8 ea 17 c1 08 89 c3 83 f8 08 0f 83 9d 01 00 00
RSP: 0018:ffffc90000dd0de0 EFLAGS: 00000002
RAX: 0000000000000000 RBX: 0000000004200002 RCX: 1ffff11008139c20
RDX: 1ffff11008139ae5 RSI: 0000000000000100 RDI: ffff8880409cd700
RBP: ffffc90000dd0f30 R08: ffffffff8f4c7040 R09: ffffffff8f4c7048
R10: ffffffff8f4c7058 R11: ffffffff8f4c7050 R12: ffff8880409cd700
R13: 1ffff920001ba1e8 R14: dffffc0000000000 R15: ffffc90000dd0ec0
FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000557742f13038 CR3: 000000007eccb000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
account_softirq_enter include/linux/vtime.h:141 [inline]
__do_softirq+0x17e/0x9fe kernel/softirq.c:536
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:636
irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:console_trylock_spinning+0x36b/0x3f0 kernel/printk/printk.c:1909
Code: 0f 84 75 ff ff ff e8 84 03 1a 00 fb 31 db eb 41 e8 7a 03 1a 00 e8 c5 87 b4 08 4d 85 ed 74 cd e8 6b 03 1a 00 fb bb 01 00 00 00 <48> c7 c7 a0 8d 7f 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc9000b0df840 EFLAGS: 00000293
RAX: ffffffff81665125 RBX: 0000000000000001 RCX: ffff8880409cd700
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc9000b0df910 R08: ffffffff816650de R09: fffffbfff1f58840
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff9200161bf08
R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000
vprintk_emit+0xa1/0x150 kernel/printk/printk.c:2267
_printk+0xd1/0x111 kernel/printk/printk.c:2289
__xfs_printk fs/xfs/xfs_message.c:24 [inline]
xfs_alert+0x1c8/0x320 fs/xfs/xfs_message.c:52
xfs_buf_verifier_error+0x161/0x290 fs/xfs/xfs_error.c:407
xfs_allocbt_read_verify+0x52/0xc0
xfs_buf_ioend+0x30c/0x7c0 fs/xfs/xfs_buf.c:1263
process_one_work+0x8e6/0x1230 kernel/workqueue.c:2306
worker_thread+0xaca/0x1280 kernel/workqueue.c:2453
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 <unknown>:298

syzbot

unread,
Mar 9, 2023, 10:45:54 PM3/9/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: d9b4a0c83a2d Linux 5.15.98
git tree: linux-5.15.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1197110ac80000
kernel config: https://syzkaller.appspot.com/x/.config?x=2f8d9515b973b23b
dashboard link: https://syzkaller.appspot.com/bug?extid=e0232bd63c6e293aaf6a
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=17904584c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14f2fd14c80000
mounted in repro: https://storage.googleapis.com/syzbot-assets/c47ab62d25a4/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+e0232b...@syzkaller.appspotmail.com

INFO: task syz-executor166:3630 blocked for more than 143 seconds.
Not tainted 5.15.98-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor166 state:D
stack:24544 pid: 3630 ppid: 3628 flags:0x00004000
Call Trace:
<TASK>
context_switch kernel/sched/core.c:5023 [inline]
__schedule+0x132d/0x45e0 kernel/sched/core.c:6369
schedule+0x11b/0x1f0 kernel/sched/core.c:6452
wb_wait_for_completion+0x164/0x290 fs/fs-writeback.c:191
sync_inodes_sb+0x2af/0xa70 fs/fs-writeback.c:2745
sync_filesystem+0x16b/0x220 fs/sync.c:64
generic_shutdown_super+0x6e/0x2c0 fs/super.c:448
kill_block_super+0x7a/0xe0 fs/super.c:1396
deactivate_locked_super+0xa0/0x110 fs/super.c:335
cleanup_mnt+0x44e/0x500 fs/namespace.c:1143
task_work_run+0x129/0x1a0 kernel/task_work.c:164
tracehook_notify_resume include/linux/tracehook.h:189 [inline]
exit_to_user_mode_loop+0x106/0x130 kernel/entry/common.c:175
exit_to_user_mode_prepare+0xb1/0x140 kernel/entry/common.c:207
__syscall_exit_to_user_mode_work kernel/entry/common.c:289 [inline]
syscall_exit_to_user_mode+0x5d/0x2a0 kernel/entry/common.c:300
do_syscall_64+0x49/0xb0 arch/x86/entry/common.c:86
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f5e9b7bbd07
RSP: 002b:00007ffe75c1c378 EFLAGS: 00000206 ORIG_RAX: 00000000000000a6
RAX: 0000000000000000 RBX: 0000000000000000 RCX: 00007f5e9b7bbd07
RDX: 00007ffe75c1c439 RSI: 000000000000000a RDI: 00007ffe75c1c430
RBP: 00007ffe75c1c430 R08: 00000000ffffffff R09: 00007ffe75c1c210
R10: 0000555556290653 R11: 0000000000000206 R12: 00007ffe75c1d4a0
R13: 00005555562905f0 R14: 00007ffe75c1c3a0 R15: 0000000000000001
</TASK>

Showing all locks held in the system:
3 locks held by kworker/0:0/7:
1 lock held by khungtaskd/27:
#0: ffffffff8c91c660
(rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
4 locks held by kworker/u4:1/144:
#0: ffff8881429be138 ((wq_completion)writeback){+.+.}-{0:0}, at: process_one_work+0x78a/0x1230 kernel/workqueue.c:2279
#1: ffffc900010ffd20 ((work_completion)(&(&wb->dwork)->work)){+.+.}-{0:0}, at: process_one_work+0x7cd/0x1230 kernel/workqueue.c:2281
#2: ffff88801ce86650 (sb_internal#2){.+.+}-{0:0}, at: xfs_bmapi_convert_delalloc+0x20f/0x1180 fs/xfs/libxfs/xfs_bmap.c:4573
#3: ffff888074e100e8 (&xfs_nondir_ilock_class){++++}-{3:3}, at: xfs_bmapi_convert_delalloc+0x23c/0x1180 fs/xfs/libxfs/xfs_bmap.c:4578
2 locks held by getty/3269:
#0: ffff888024847098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:252
#1: ffffc90002bb32e8 (
&ldata->atomic_read_lock
){+.+.}-{3:3}
, at: n_tty_read+0x6af/0x1da0 drivers/tty/n_tty.c:2147
5 locks held by kworker/1:3/3298:
2 locks held by syz-executor166/3630:
#0:
ffff88801ce860e0
(&type->s_umount_key
#43
){+.+.}-{3:3}
, at: deactivate_super+0xa9/0xe0 fs/super.c:365
#1: ffff8881475ea7d8
(
&bdi->wb_switch_rwsem
){+.+.}-{3:3}
, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
, at: sync_inodes_sb+0x290/0xa70 fs/fs-writeback.c:2743

=============================================

NMI backtrace for cpu 0
CPU: 0 PID: 27 Comm: khungtaskd Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Call Trace:
<TASK>
__dump_stack lib/dump_stack.c:88 [inline]
dump_stack_lvl+0x1e3/0x2cb lib/dump_stack.c:106
nmi_cpu_backtrace+0x46a/0x4a0 lib/nmi_backtrace.c:111
nmi_trigger_cpumask_backtrace+0x181/0x2a0 lib/nmi_backtrace.c:62
trigger_all_cpu_backtrace include/linux/nmi.h:148 [inline]
check_hung_uninterruptible_tasks kernel/hung_task.c:210 [inline]
watchdog+0xec6/0xf10 kernel/hung_task.c:295
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 <unknown>:298
</TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 3298 Comm: kworker/1:3 Not tainted 5.15.98-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/02/2023
Workqueue: xfs-buf/loop0 xfs_buf_ioend_work
RIP: 0010:___update_load_sum kernel/sched/pelt.c:194 [inline]
RIP: 0010:update_rt_rq_load_avg+0x43/0x9b0 kernel/sched/pelt.c:352
Code: be 00 00 00 00 00 fc ff df 48 8d 9e 40 0b 00 00 48 89 dd 48 c1 ed 03 42 80 7c 35 00 00 74 08 48 89 df e8 90 c5 68 00 48 8b 03 <4d> 89 fc 49 29 c4 0f 88 93 00 00 00 45 31 ff 49 81 fc 00 04 00 00
RSP: 0018:ffffc90000dd0bf8 EFLAGS: 00000046
RAX: 000000e94ce6a000 RBX: ffff8880b9b3a1c0 RCX: ffff8880b9b39680
RDX: 0000000000000000 RSI: ffff8880b9b39680 RDI: 000000e95044c557
RBP: 1ffff11017367438 R08: dffffc0000000000 R09: fffffbfff1bc70fe
R10: 0000000000000000 R11: dffffc0000000001 R12: ffffffff8c34fb50
R13: ffff8880b9b39680 R14: dffffc0000000000 R15: 000000e95044c557
FS: 0000000000000000(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005644be663600 CR3: 00000000198de000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<IRQ>
__update_blocked_others kernel/sched/fair.c:8320 [inline]
update_blocked_averages+0x2fa/0x1450 kernel/sched/fair.c:8448
run_rebalance_domains+0xf5/0x1b0 kernel/sched/fair.c:11137
__do_softirq+0x3d1/0x9fe kernel/softirq.c:558
invoke_softirq kernel/softirq.c:432 [inline]
__irq_exit_rcu+0x155/0x240 kernel/softirq.c:636
irq_exit_rcu+0x5/0x20 kernel/softirq.c:648
sysvec_apic_timer_interrupt+0x91/0xb0 arch/x86/kernel/apic/apic.c:1097
</IRQ>
<TASK>
asm_sysvec_apic_timer_interrupt+0x16/0x20 arch/x86/include/asm/idtentry.h:638
RIP: 0010:console_trylock_spinning+0x36b/0x3f0 kernel/printk/printk.c:1909
Code: 0f 84 75 ff ff ff e8 84 03 1a 00 fb 31 db eb 41 e8 7a 03 1a 00 e8 c5 87 b4 08 4d 85 ed 74 cd e8 6b 03 1a 00 fb bb 01 00 00 00 <48> c7 c7 a0 8d 7f 8c 31 f6 ba 01 00 00 00 31 c9 41 b8 01 00 00 00
RSP: 0018:ffffc90002d4f7c0 EFLAGS: 00000293
RAX: ffffffff81665125 RBX: 0000000000000001 RCX: ffff88801b7b0000
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90002d4f890 R08: ffffffff816650de R09: fffffbfff1f5882e
R10: 0000000000000000 R11: dffffc0000000001 R12: 1ffff920005a9ef8
R13: 0000000000000200 R14: 0000000000000046 R15: dffffc0000000000
vprintk_emit+0xa1/0x150 kernel/printk/printk.c:2267
_printk+0xd1/0x111 kernel/printk/printk.c:2289
print_hex_dump+0x1a2/0x250 lib/hexdump.c:285
xfs_hex_dump+0x39/0x50 fs/xfs/xfs_message.c:118
xfs_buf_verifier_error+0x1bc/0x290 fs/xfs/xfs_error.c:413
xfs_allocbt_read_verify+0x52/0xc0
xfs_buf_ioend+0x30c/0x7c0 fs/xfs/xfs_buf.c:1263
process_one_work+0x8e6/0x1230 kernel/workqueue.c:2306
worker_thread+0xaca/0x1280 kernel/workqueue.c:2453
kthread+0x3f6/0x4f0 kernel/kthread.c:319
ret_from_fork+0x1f/0x30 <unknown>:298
</TASK>
INFO: NMI handler (nmi_cpu_backtrace_handler) took too long to run: 1.584 msecs

syzbot

unread,
Mar 10, 2023, 7:34:54 PM3/10/23
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 8a923980a190 Linux 6.1.16
git tree: linux-6.1.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13d36688c80000
kernel config: https://syzkaller.appspot.com/x/.config?x=fc32d7322291d081
dashboard link: https://syzkaller.appspot.com/bug?extid=9a20df095d11804348bc
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
userspace arch: arm64
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1285b888c80000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=16589f92c80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/bf09a4a426d0/disk-8a923980.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/99e88c1c3e26/vmlinux-8a923980.xz
kernel image: https://storage.googleapis.com/syzbot-assets/d13a720e0836/Image-8a923980.gz.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/144ca3dac04f/mount_0.gz

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+9a20df...@syzkaller.appspotmail.com

INFO: task syz-executor341:4362 blocked for more than 143 seconds.
Not tainted 6.1.16-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor341 state:D
stack:0 pid:4362 ppid:4361 flags:0x00000008
Call trace:
__switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
context_switch kernel/sched/core.c:5238 [inline]
__schedule+0xf9c/0x1d84 kernel/sched/core.c:6551
schedule+0xc4/0x170 kernel/sched/core.c:6627
wb_wait_for_completion+0x154/0x29c fs/fs-writeback.c:191
sync_inodes_sb+0x220/0x944 fs/fs-writeback.c:2714
sync_filesystem+0x160/0x218 fs/sync.c:64
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
INFO: task syz-executor341:4363 blocked for more than 143 seconds.
Not tainted 6.1.16-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor341 state:D
stack:0 pid:4363 ppid:4361 flags:0x00000008
Call trace:
__switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
context_switch kernel/sched/core.c:5238 [inline]
__schedule+0xf9c/0x1d84 kernel/sched/core.c:6551
schedule+0xc4/0x170 kernel/sched/core.c:6627
wb_wait_for_completion+0x154/0x29c fs/fs-writeback.c:191
sync_inodes_sb+0x220/0x944 fs/fs-writeback.c:2714
sync_filesystem+0x160/0x218 fs/sync.c:64
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
INFO: task syz-executor341:4364 blocked for more than 143 seconds.
Not tainted 6.1.16-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor341 state:D
stack:0 pid:4364 ppid:4361 flags:0x00000008
Call trace:
__switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
context_switch kernel/sched/core.c:5238 [inline]
__schedule+0xf9c/0x1d84 kernel/sched/core.c:6551
schedule+0xc4/0x170 kernel/sched/core.c:6627
wb_wait_for_completion+0x154/0x29c fs/fs-writeback.c:191
sync_inodes_sb+0x220/0x944 fs/fs-writeback.c:2714
sync_filesystem+0x160/0x218 fs/sync.c:64
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
INFO: task syz-executor341:4365 blocked for more than 143 seconds.
Not tainted 6.1.16-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor341 state:D
stack:0 pid:4365 ppid:4361 flags:0x00000008
Call trace:
__switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
context_switch kernel/sched/core.c:5238 [inline]
__schedule+0xf9c/0x1d84 kernel/sched/core.c:6551
schedule+0xc4/0x170 kernel/sched/core.c:6627
wb_wait_for_completion+0x154/0x29c fs/fs-writeback.c:191
sync_inodes_sb+0x220/0x944 fs/fs-writeback.c:2714
sync_filesystem+0x160/0x218 fs/sync.c:64
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
INFO: task syz-executor341:4366 blocked for more than 143 seconds.
Not tainted 6.1.16-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor341 state:D
stack:0 pid:4366 ppid:4361 flags:0x00000008
Call trace:
__switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
context_switch kernel/sched/core.c:5238 [inline]
__schedule+0xf9c/0x1d84 kernel/sched/core.c:6551
schedule+0xc4/0x170 kernel/sched/core.c:6627
wb_wait_for_completion+0x154/0x29c fs/fs-writeback.c:191
sync_inodes_sb+0x220/0x944 fs/fs-writeback.c:2714
sync_filesystem+0x160/0x218 fs/sync.c:64
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581
INFO: task syz-executor341:4367 blocked for more than 143 seconds.
Not tainted 6.1.16-syzkaller #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor341 state:D
stack:0 pid:4367 ppid:4361 flags:0x00000008
Call trace:
__switch_to+0x320/0x754 arch/arm64/kernel/process.c:553
context_switch kernel/sched/core.c:5238 [inline]
__schedule+0xf9c/0x1d84 kernel/sched/core.c:6551
schedule+0xc4/0x170 kernel/sched/core.c:6627
wb_wait_for_completion+0x154/0x29c fs/fs-writeback.c:191
sync_inodes_sb+0x220/0x944 fs/fs-writeback.c:2714
sync_filesystem+0x160/0x218 fs/sync.c:64
generic_shutdown_super+0x70/0x328 fs/super.c:474
kill_block_super+0x70/0xdc fs/super.c:1441
deactivate_locked_super+0xac/0x124 fs/super.c:332
deactivate_super+0xf0/0x110 fs/super.c:363
cleanup_mnt+0x394/0x41c fs/namespace.c:1186
__cleanup_mnt+0x20/0x30 fs/namespace.c:1193
task_work_run+0x240/0x2f0 kernel/task_work.c:179
resume_user_mode_work include/linux/resume_user_mode.h:49 [inline]
do_notify_resume+0x2144/0x3470 arch/arm64/kernel/signal.c:1132
prepare_exit_to_user_mode arch/arm64/kernel/entry-common.c:137 [inline]
exit_to_user_mode arch/arm64/kernel/entry-common.c:142 [inline]
el0_svc+0x9c/0x168 arch/arm64/kernel/entry-common.c:638
el0t_64_sync_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t_64_sync+0x18c/0x190 arch/arm64/kernel/entry.S:581

Showing all locks held in the system:
3 locks held by kworker/0:0/7:
1 lock held by rcu_tasks_kthre/12:
#0:
ffff800015905e30
(
rcu_tasks.tasks_gp_mutex
){+.+.}-{3:3}
, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510
1 lock held by rcu_tasks_trace/13:
#0:
ffff800015906630
(
rcu_tasks_trace.tasks_gp_mutex
){+.+.}-{3:3}
, at: rcu_tasks_one_gp+0x44/0xcf4 kernel/rcu/tasks.h:510
1 lock held by khungtaskd/28:
#0:
ffff800015905c60
(
rcu_read_lock
){....}-{1:2}
, at: rcu_lock_acquire+0xc/0x44 include/linux/rcupdate.h:305
4 locks held by kworker/u4:2/39:
#0:
ffff0000c0e3d938
(
(wq_completion)writeback
){+.+.}-{0:0}
, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
#1:
ffff80001b187c20
(
(work_completion)(&(&wb->dwork)->work)
){+.+.}-{0:0}
, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
#2:
ffff0000c1e00650
(
sb_internal
#2
){.+.+}-{0:0}
, at: xfs_bmapi_convert_delalloc+0x21c/0x10b0 fs/xfs/libxfs/xfs_bmap.c:4521
#3:
ffff0000e08d1858
(
&xfs_nondir_ilock_class
){++++}-{3:3}
, at: mrupdate_nested fs/xfs/mrlock.h:36 [inline]
, at: xfs_ilock+0x2fc/0x684 fs/xfs/xfs_inode.c:211
4 locks held by kworker/u4:5/1608:
#0:
ffff0000c0e3d938
(
(wq_completion)writeback
){+.+.}-{0:0}
, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
#1:
ffff800021ed7c20
((work_completion)(&(&wb->dwork)->work)
){+.+.}-{0:0}
, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
#2:
ffff0000c1c84650
(
sb_internal
#2
){.+.+}-{0:0}
, at: xfs_bmapi_convert_delalloc+0x21c/0x10b0 fs/xfs/libxfs/xfs_bmap.c:4521
#3:
ffff0000e0845e18
(
&xfs_nondir_ilock_class
){++++}-{3:3}
, at: mrupdate_nested fs/xfs/mrlock.h:36 [inline]
, at: xfs_ilock+0x2fc/0x684 fs/xfs/xfs_inode.c:211
2 locks held by getty/3988:
#0:
ffff0000d414e098
(
&tty->ldisc_sem
){++++}-{0:0}
, at: ldsem_down_read+0x3c/0x4c drivers/tty/tty_ldsem.c:340
#1:
ffff80001bba02f0
(
&ldata->atomic_read_lock
){+.+.}-{3:3}
, at: n_tty_read+0x414/0x1210 drivers/tty/n_tty.c:2177
4 locks held by kworker/u4:1/4349:
#0:
ffff0000c0e3d938
(
(wq_completion)writeback
){+.+.}-{0:0}
, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
#1:
ffff80001de47c20
(
(work_completion)(&(&wb->dwork)->work)
){+.+.}-{0:0}
, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
#2:
ffff0000da5c0650
(
sb_internal
#2
){.+.+}-{0:0}
, at: xfs_bmapi_convert_delalloc+0x21c/0x10b0 fs/xfs/libxfs/xfs_bmap.c:4521
#3:
ffff0000e0843f18
(
&xfs_nondir_ilock_class
){++++}-{3:3}
, at: mrupdate_nested fs/xfs/mrlock.h:36 [inline]
, at: xfs_ilock+0x2fc/0x684 fs/xfs/xfs_inode.c:211
2 locks held by syz-executor341/4362:
#0:
ffff0000c1e000e0
(
&type->s_umount_key
#40
){+.+.}-{3:3}
, at: deactivate_super+0xe8/0x110 fs/super.c:362
#1:
ffff0000cc88a7d0
(
&bdi->wb_switch_rwsem
){+.+.}-{3:3}
, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2712
2 locks held by syz-executor341/4363:
#0:
ffff0000ceb0e0e0
(
&type->s_umount_key
#40
){+.+.}-{3:3}
, at: deactivate_super+0xe8/0x110 fs/super.c:362
#1:
ffff0000cc8d87d0
(
&bdi->wb_switch_rwsem
){+.+.}-{3:3}
, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2712
2 locks held by syz-executor341/4364:
#0:
ffff0000d9b720e0
(
&type->s_umount_key
#40
){+.+.}-{3:3}
, at: deactivate_super+0xe8/0x110 fs/super.c:362
#1:
ffff0000cc8de7d0
(
&bdi->wb_switch_rwsem
){+.+.}-{3:3}
, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2712
2 locks held by syz-executor341/4365:
#0:
ffff0000d92720e0
(
&type->s_umount_key
#40
){+.+.}-{3:3}
, at: deactivate_super+0xe8/0x110 fs/super.c:362
#1:
ffff0000cc8ec7d0
(
&bdi->wb_switch_rwsem
){+.+.}-{3:3}
, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2712
2 locks held by syz-executor341/4366:
#0:
ffff0000da5c00e0
(
&type->s_umount_key
#40
){+.+.}-{3:3}
, at: deactivate_super+0xe8/0x110 fs/super.c:362
#1:
ffff0000cc8fa7d0
(
&bdi->wb_switch_rwsem
){+.+.}-{3:3}
, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2712
2 locks held by syz-executor341/4367:
#0:
ffff0000c1c840e0
(
&type->s_umount_key
#40
){+.+.}-{3:3}
, at: deactivate_super+0xe8/0x110 fs/super.c:362
#1:
ffff0000cc9807d0
(
&bdi->wb_switch_rwsem
){+.+.}-{3:3}
, at: bdi_down_write_wb_switch_rwsem fs/fs-writeback.c:362 [inline]
, at: sync_inodes_sb+0x208/0x944 fs/fs-writeback.c:2712
4 locks held by kworker/u4:3/4424:
#0:
ffff0000c0e3d938
(
(wq_completion)writeback
){+.+.}-{0:0}
, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
#1:
ffff80001dc77c20
(
(work_completion)(&(&wb->dwork)->work)
){+.+.}-{0:0}
, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
#2:
ffff0000d9b72650
(
sb_internal
#2
){.+.+}-{0:0}
, at: xfs_bmapi_convert_delalloc+0x21c/0x10b0 fs/xfs/libxfs/xfs_bmap.c:4521
#3:
ffff0000e0841858
(
&xfs_nondir_ilock_class
){++++}-{3:3}
, at: mrupdate_nested fs/xfs/mrlock.h:36 [inline]
, at: xfs_ilock+0x2fc/0x684 fs/xfs/xfs_inode.c:211
4 locks held by kworker/u4:4/4425:
#0:
ffff0000c0e3d938
(
(wq_completion)writeback
){+.+.}-{0:0}
, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
#1:
ffff80001e007c20
(
(work_completion)(&(&wb->dwork)->work)
){+.+.}-{0:0}
, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
#2:
ffff0000ceb0e650
(
sb_internal
#2
){.+.+}-{0:0}
, at: xfs_bmapi_convert_delalloc+0x21c/0x10b0 fs/xfs/libxfs/xfs_bmap.c:4521
#3:
ffff0000e08d4e98
(
&xfs_nondir_ilock_class
){++++}-{3:3}
, at: mrupdate_nested fs/xfs/mrlock.h:36 [inline]
, at: xfs_ilock+0x2fc/0x684 fs/xfs/xfs_inode.c:211
4 locks held by kworker/u4:7/4427:
#0:
ffff0000c0e3d938
(
(wq_completion)writeback
){+.+.}-{0:0}
, at: process_one_work+0x664/0x16f4 kernel/workqueue.c:2262
#1:
ffff80001dc97c20
(
(work_completion)(&(&wb->dwork)->work)
){+.+.}-{0:0}
, at: process_one_work+0x6a8/0x16f4 kernel/workqueue.c:2264
#2:
ffff0000d9272650
(
sb_internal
#2
){.+.+}-{0:0}
, at: xfs_bmapi_convert_delalloc+0x21c/0x10b0 fs/xfs/libxfs/xfs_bmap.c:4521
#3:
ffff0000e0843758
(
&xfs_nondir_ilock_class
){++++}-{3:3}
, at: mrupdate_nested fs/xfs/mrlock.h:36 [inline]
, at: xfs_ilock+0x2fc/0x684 fs/xfs/xfs_inode.c:211

=============================================


Reply all
Reply to author
Forward
0 new messages