syzbot


INFO: task hung in xfs_ilock (2)

Status: auto-obsoleted due to no activity on 2024/08/10 18:33
Subsystems: xfs
[Documentation on labels]
First crash: 163d, last: 163d
Similar bugs (3)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in xfs_ilock 1 139d 139d 0/3 auto-obsoleted due to no activity on 2024/09/13 20:46
linux-5.15 INFO: task hung in xfs_ilock 1 139d 139d 0/3 auto-obsoleted due to no activity on 2024/09/13 19:01
upstream INFO: task hung in xfs_ilock xfs 7 306d 345d 0/28 auto-obsoleted due to no activity on 2024/03/20 00:19

Sample crash report:
INFO: task syz-executor.1:10643 blocked for more than 143 seconds.
      Not tainted 6.9.0-rc7-syzkaller-00183-gcf87f46fd34d #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.1  state:D stack:28440 pid:10643 tgid:10625 ppid:9669   flags:0x00000006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5409 [inline]
 __schedule+0x1796/0x4a00 kernel/sched/core.c:6746
 __schedule_loop kernel/sched/core.c:6823 [inline]
 schedule+0x14b/0x320 kernel/sched/core.c:6838
 schedule_preempt_disabled+0x13/0x30 kernel/sched/core.c:6895
 rwsem_down_read_slowpath kernel/locking/rwsem.c:1086 [inline]
 __down_read_common kernel/locking/rwsem.c:1250 [inline]
 __down_read kernel/locking/rwsem.c:1263 [inline]
 down_read_nested+0x709/0xa50 kernel/locking/rwsem.c:1652
 xfs_ilock+0x11e/0x3d0 fs/xfs/xfs_inode.c:193
 xfs_ilock_iocb fs/xfs/xfs_file.c:211 [inline]
 xfs_file_buffered_read+0x172/0x350 fs/xfs/xfs_file.c:311
 xfs_file_read_iter+0x263/0x4d0 fs/xfs/xfs_file.c:339
 call_read_iter include/linux/fs.h:2104 [inline]
 new_sync_read fs/read_write.c:395 [inline]
 vfs_read+0x97b/0xb70 fs/read_write.c:476
 ksys_read+0x1a0/0x2c0 fs/read_write.c:619
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f774fc7dd69
RSP: 002b:00007f7750a690c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000000
RAX: ffffffffffffffda RBX: 00007f774fdac050 RCX: 00007f774fc7dd69
RDX: 000000000000003f RSI: 0000000020000f80 RDI: 0000000000000007
RBP: 00007f774fcca49e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f774fdac050 R15: 00007ffe28fc2738
 </TASK>

Showing all locks held in the system:
1 lock held by pool_workqueue_/3:
 #0: ffffffff8e33a138 (rcu_state.exp_mutex){+.+.}-{3:3}, at: exp_funnel_lock kernel/rcu/tree_exp.h:291 [inline]
 #0: ffffffff8e33a138 (rcu_state.exp_mutex){+.+.}-{3:3}, at: synchronize_rcu_expedited+0x39a/0x820 kernel/rcu/tree_exp.h:939
1 lock held by khungtaskd/29:
 #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:329 [inline]
 #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:781 [inline]
 #0: ffffffff8e334da0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4830:
 #0: ffff88802aa840a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc90002f0e2f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b5/0x1e10 drivers/tty/n_tty.c:2201
3 locks held by kworker/u8:15/6209:
2 locks held by kworker/u8:22/6229:
5 locks held by syz-executor.1/10626:
2 locks held by syz-executor.1/10643:
 #0: ffff88801efb34c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x259/0x320 fs/file.c:1191
 #1: ffff88806a580af8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: xfs_ilock+0x11e/0x3d0 fs/xfs/xfs_inode.c:193
4 locks held by syz-executor.2/11572:
1 lock held by syz-executor.0/12145:
3 locks held by syz-executor.3/12230:
 #0: ffff8880686a14c8 (&f->f_pos_lock){+.+.}-{3:3}, at: __fdget_pos+0x259/0x320 fs/file.c:1191
 #1: ffff88805bbf8420 (sb_writers#36){.+.+}-{0:0}, at: file_start_write include/linux/fs.h:2855 [inline]
 #1: ffff88805bbf8420 (sb_writers#36){.+.+}-{0:0}, at: vfs_write+0x233/0xcb0 fs/read_write.c:586
 #2: ffff888076743510 (&sb->s_type->i_mutex_key#43){++++}-{3:3}, at: inode_lock include/linux/fs.h:795 [inline]
 #2: ffff888076743510 (&sb->s_type->i_mutex_key#43){++++}-{3:3}, at: generic_file_write_iter+0x83/0x310 mm/filemap.c:4092
5 locks held by syz-executor.1/12227:
2 locks held by syz-executor.4/12229:

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

NMI backtrace for cpu 1
CPU: 1 PID: 29 Comm: khungtaskd Not tainted 6.9.0-rc7-syzkaller-00183-gcf87f46fd34d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x241/0x360 lib/dump_stack.c:114
 nmi_cpu_backtrace+0x49c/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x320 lib/nmi_backtrace.c:62
 trigger_all_cpu_backtrace include/linux/nmi.h:160 [inline]
 check_hung_uninterruptible_tasks kernel/hung_task.c:223 [inline]
 watchdog+0xfde/0x1020 kernel/hung_task.c:380
 kthread+0x2f0/0x390 kernel/kthread.c:388
 ret_from_fork+0x4b/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:244
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 12230 Comm: syz-executor.3 Not tainted 6.9.0-rc7-syzkaller-00183-gcf87f46fd34d #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 04/02/2024
RIP: 0010:__lock_release kernel/locking/lockdep.c:5459 [inline]
RIP: 0010:lock_release+0x353/0x9f0 kernel/locking/lockdep.c:5774
Code: 00 4c 89 f2 4d 8b 37 48 81 c3 c8 0a 00 00 48 89 d8 48 c1 e8 03 42 80 3c 20 00 74 0e 48 89 df 49 89 d7 e8 00 b8 84 00 4c 89 fa <4c> 89 33 3b 54 24 44 0f 84 39 02 00 00 ff c2 48 8b 7c 24 18 48 8b
RSP: 0018:ffffc90004c87440 EFLAGS: 00000046
RAX: 1ffff1100f2c68d9 RBX: ffff8880796346c8 RCX: ffffc90004c87403
RDX: 0000000000000003 RSI: ffff8880796346d0 RDI: ffff888079634750
RBP: ffffc90004c87580 R08: ffffffff8fa7ccef R09: 1ffffffff1f4f99d
R10: dffffc0000000000 R11: fffffbfff1f4f99e R12: dffffc0000000000
R13: 0000000000040da2 R14: 035a49b6e8379001 R15: ffff888079634750
FS:  00007f48e92626c0(0000) GS:ffff8880b9400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000001b31e3c000 CR3: 000000006a2e4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 __raw_spin_unlock include/linux/spinlock_api_smp.h:141 [inline]
 _raw_spin_unlock+0x16/0x50 kernel/locking/spinlock.c:186
 spin_unlock include/linux/spinlock.h:391 [inline]
 delete_from_page_cache_batch+0xa7f/0xc70 mm/filemap.c:347
 truncate_inode_pages_range+0x364/0xfc0 mm/truncate.c:359
 truncate_inode_pages mm/truncate.c:439 [inline]
 truncate_pagecache+0x6c/0x90 mm/truncate.c:732
 fat_write_failed fs/fat/inode.c:218 [inline]
 fat_write_begin+0x11f/0x170 fs/fat/inode.c:234
 generic_perform_write+0x322/0x640 mm/filemap.c:3974
 generic_file_write_iter+0xaf/0x310 mm/filemap.c:4095
 call_write_iter include/linux/fs.h:2110 [inline]
 new_sync_write fs/read_write.c:497 [inline]
 vfs_write+0xa84/0xcb0 fs/read_write.c:590
 ksys_write+0x1a0/0x2c0 fs/read_write.c:643
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0xf5/0x240 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f48e847dd69
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 e1 20 00 00 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f48e92620c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f48e85ac120 RCX: 00007f48e847dd69
RDX: 000000000000fea7 RSI: 0000000020000040 RDI: 000000000000000e
RBP: 00007f48e84ca49e R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000006e R14: 00007f48e85ac120 R15: 00007ffe1b102008
 </TASK>

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2024/05/12 18:29 upstream cf87f46fd34d 9026e142 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in xfs_ilock
* Struck through repros no longer work on HEAD.