syzbot


INFO: task hung in xfs_ilock

Status: auto-obsoleted due to no activity on 2024/03/20 00:19
Subsystems: xfs
[Documentation on labels]
First crash: 226d, last: 188d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 INFO: task hung in xfs_ilock 1 20d 20d 0/3 upstream: reported on 2024/06/05 20:46
linux-5.15 INFO: task hung in xfs_ilock 1 20d 20d 0/3 upstream: reported on 2024/06/05 19:00

Sample crash report:
INFO: task syz-executor.0:13531 blocked for more than 143 seconds.
      Not tainted 6.7.0-rc6-syzkaller-00044-g1a44b0073b92 #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor.0  state:D stack:21360 pid:13531 tgid:13530 ppid:5094   flags:0x00004006
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5376 [inline]
 __schedule+0x1961/0x4ab0 kernel/sched/core.c:6688
 __schedule_loop kernel/sched/core.c:6763 [inline]
 schedule+0x149/0x260 kernel/sched/core.c:6778
 schedule_preempt_disabled+0x13/0x20 kernel/sched/core.c:6835
 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+0x707/0xa40 kernel/locking/rwsem.c:1652
 xfs_ilock+0x10e/0x3b0 fs/xfs/xfs_inode.c:198
 xfs_file_splice_read+0x2b7/0x620 fs/xfs/xfs_file.c:366
 splice_direct_to_actor+0x2c4/0x9e0 fs/splice.c:1069
 do_splice_direct+0x2ac/0x3f0 fs/splice.c:1194
 do_sendfile+0x62c/0x1000 fs/read_write.c:1254
 __do_sys_sendfile64 fs/read_write.c:1316 [inline]
 __se_sys_sendfile64+0x100/0x1e0 fs/read_write.c:1308
 do_syscall_x64 arch/x86/entry/common.c:52 [inline]
 do_syscall_64+0x45/0x110 arch/x86/entry/common.c:83
 entry_SYSCALL_64_after_hwframe+0x63/0x6b
RIP: 0033:0x7f074b07cce9
RSP: 002b:00007f074bd9b0c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f074b19bf80 RCX: 00007f074b07cce9
RDX: 0000000020000100 RSI: 0000000000000007 RDI: 0000000000000004
RBP: 00007f074b0c947a R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000007 R11: 0000000000000246 R12: 0000000000000000
R13: 000000000000000b R14: 00007f074b19bf80 R15: 00007ffe3e6f6e08
 </TASK>

Showing all locks held in the system:
1 lock held by khungtaskd/29:
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire include/linux/rcupdate.h:301 [inline]
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: rcu_read_lock include/linux/rcupdate.h:747 [inline]
 #0: ffffffff8d92dae0 (rcu_read_lock){....}-{1:2}, at: debug_show_all_locks+0x55/0x2a0 kernel/locking/lockdep.c:6614
2 locks held by getty/4822:
 #0: ffff88802a42a0a0 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x25/0x70 drivers/tty/tty_ldisc.c:243
 #1: ffffc900031332f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x6b4/0x1e10 drivers/tty/n_tty.c:2201
2 locks held by syz-executor.0/13531:
 #0: ffff88801f9f4418 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253
 #1: ffff8880351748f8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: xfs_ilock+0x10e/0x3b0 fs/xfs/xfs_inode.c:198
6 locks held by syz-executor.0/13580:
1 lock held by syz-executor.0/13635:
2 locks held by syz-executor.4/13891:
 #0: ffff888028e1e418 (sb_writers#16){.+.+}-{0:0}, at: do_sendfile+0x607/0x1000 fs/read_write.c:1253
 #1: ffff8880783aa9f8 (&sb->s_type->i_mutex_key#23){++++}-{3:3}, at: xfs_ilock+0x10e/0x3b0 fs/xfs/xfs_inode.c:198
4 locks held by syz-executor.4/13910:

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

NMI backtrace for cpu 0
CPU: 0 PID: 29 Comm: khungtaskd Not tainted 6.7.0-rc6-syzkaller-00044-g1a44b0073b92 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1e7/0x2d0 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x498/0x4d0 lib/nmi_backtrace.c:113
 nmi_trigger_cpumask_backtrace+0x198/0x310 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+0xfaf/0xff0 kernel/hung_task.c:379
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>
Sending NMI from CPU 0 to CPUs 1:
NMI backtrace for cpu 1
CPU: 1 PID: 77 Comm: kworker/u4:4 Not tainted 6.7.0-rc6-syzkaller-00044-g1a44b0073b92 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
Workqueue: bat_events batadv_nc_worker
RIP: 0010:mark_lock+0x9/0x350 kernel/locking/lockdep.c:4639
Code: 38 c1 0f 8c 1a ff ff ff 4c 89 ff e8 e1 ea 7c 00 e9 0d ff ff ff e8 57 cb a9 09 0f 1f 80 00 00 00 00 55 41 57 41 56 41 55 41 54 <53> 48 83 ec 10 49 89 f7 48 89 3c 24 49 bd 00 00 00 00 00 fc ff df
RSP: 0018:ffffc900015d7950 EFLAGS: 00000002
RAX: 00000000000406ce RBX: ffff8880196dc668 RCX: ffffffff816d821a
RDX: 0000000000000002 RSI: ffff8880196dc668 RDI: ffff8880196dbb80
RBP: ffffc900015d7a28 R08: ffffffff90dd743f R09: 1ffffffff21bae87
R10: dffffc0000000000 R11: fffffbfff21bae88 R12: ffff8880196dc688
R13: 0000000000000001 R14: ffff8880196dc638 R15: 1ffff110032db8c7
FS:  0000000000000000(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c000e2d000 CR3: 000000002995b000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <NMI>
 </NMI>
 <TASK>
 mark_held_locks kernel/locking/lockdep.c:4274 [inline]
 __trace_hardirqs_on_caller kernel/locking/lockdep.c:4292 [inline]
 lockdep_hardirqs_on_prepare+0x281/0x780 kernel/locking/lockdep.c:4359
 trace_hardirqs_on+0x28/0x40 kernel/trace/trace_preemptirq.c:61
 __local_bh_enable_ip+0x168/0x1f0 kernel/softirq.c:386
 spin_unlock_bh include/linux/spinlock.h:396 [inline]
 batadv_nc_purge_paths+0x309/0x3a0 net/batman-adv/network-coding.c:471
 batadv_nc_worker+0x365/0x610 net/batman-adv/network-coding.c:722
 process_one_work kernel/workqueue.c:2627 [inline]
 process_scheduled_works+0x90f/0x1420 kernel/workqueue.c:2700
 worker_thread+0xa5f/0x1000 kernel/workqueue.c:2781
 kthread+0x2d3/0x370 kernel/kthread.c:388
 ret_from_fork+0x48/0x80 arch/x86/kernel/process.c:147
 ret_from_fork_asm+0x11/0x20 arch/x86/entry/entry_64.S:242
 </TASK>

Crashes (7):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/21 00:14 upstream 1a44b0073b92 de21eb89 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xfs_ilock
2023/12/15 00:41 upstream c7402612e2e6 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xfs_ilock
2023/12/14 06:52 upstream 5bd7ef53ffe5 3222d10c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xfs_ilock
2023/12/12 17:30 upstream 26aff849438c ebcad15c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xfs_ilock
2023/11/28 13:20 upstream df60cee26a2e 9fe51b7c .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xfs_ilock
2023/11/20 11:55 upstream 98b1cc82c4af cb976f63 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in xfs_ilock
2023/11/12 19:28 upstream 1b907d050735 6d6dbf8a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in xfs_ilock
* Struck through repros no longer work on HEAD.