syzbot


INFO: task hung in find_inode_fast

Status: fixed on 2023/06/08 14:41
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+77d6fcc37bbb92f26048@syzkaller.appspotmail.com
Fix commit: 0f7bfd6f8164 ext4: fix task hung in ext4_xattr_delete_inode
First crash: 478d, last: 317d
Cause bisection: failed (error log, bisect log)
  
Discussions (10)
Title Replies (including bot) Last reply
[PATCH AUTOSEL 4.14 1/5] mmc: atmel-mci: fix race between stop command and start of next command 7 (7) 2023/03/21 02:30
[PATCH AUTOSEL 4.19 1/7] mmc: atmel-mci: fix race between stop command and start of next command 7 (7) 2023/03/14 12:44
[PATCH AUTOSEL 5.4 1/7] mmc: atmel-mci: fix race between stop command and start of next command 7 (7) 2023/03/14 12:44
[PATCH AUTOSEL 5.10 1/8] mmc: atmel-mci: fix race between stop command and start of next command 8 (8) 2023/03/14 12:44
[PATCH AUTOSEL 5.15 01/10] mmc: atmel-mci: fix race between stop command and start of next command 10 (10) 2023/03/14 12:43
[PATCH AUTOSEL 6.1 01/13] mmc: atmel-mci: fix race between stop command and start of next command 13 (13) 2023/03/14 12:43
[PATCH AUTOSEL 6.2 01/13] mmc: atmel-mci: fix race between stop command and start of next command 13 (13) 2023/03/14 12:43
[PATCH v2] ext4: fix task hung in ext4_xattr_delete_inode 3 (3) 2023/02/19 05:40
[PATCH] ext4: fix task hung in ext4_xattr_delete_inode 4 (4) 2023/01/10 11:49
[syzbot] [ext4?] INFO: task hung in find_inode_fast 0 (1) 2023/01/08 03:47
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream INFO: task hung in find_inode_fast (2) ext4 C unreliable done 10 126d 280d 26/26 fixed on 2024/01/30 15:47
linux-5.15 INFO: task hung in find_inode_fast 3 343d 362d 0/3 auto-obsoleted due to no activity on 2023/08/23 09:07

Sample crash report:
INFO: task syz-executor232:5073 blocked for more than 143 seconds.
      Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0
"echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
task:syz-executor232 state:D stack:21024 pid:5073  ppid:5072   flags:0x00004004
Call Trace:
 <TASK>
 context_switch kernel/sched/core.c:5244 [inline]
 __schedule+0x995/0xe20 kernel/sched/core.c:6555
 schedule+0xcb/0x190 kernel/sched/core.c:6631
 __wait_on_freeing_inode fs/inode.c:2196 [inline]
 find_inode_fast+0x35a/0x4c0 fs/inode.c:950
 iget_locked+0xb1/0x830 fs/inode.c:1273
 __ext4_iget+0x22e/0x3ed0 fs/ext4/inode.c:4861
 ext4_xattr_inode_iget+0x68/0x4e0 fs/ext4/xattr.c:389
 ext4_xattr_inode_dec_ref_all+0x1a7/0xe50 fs/ext4/xattr.c:1148
 ext4_xattr_delete_inode+0xb04/0xcd0 fs/ext4/xattr.c:2880
 ext4_evict_inode+0xd7c/0x10b0 fs/ext4/inode.c:296
 evict+0x2a4/0x620 fs/inode.c:664
 ext4_orphan_cleanup+0xb60/0x1340 fs/ext4/orphan.c:474
 __ext4_fill_super fs/ext4/super.c:5516 [inline]
 ext4_fill_super+0x81cd/0x8700 fs/ext4/super.c:5644
 get_tree_bdev+0x400/0x620 fs/super.c:1282
 vfs_get_tree+0x88/0x270 fs/super.c:1489
 do_new_mount+0x289/0xad0 fs/namespace.c:3145
 do_mount fs/namespace.c:3488 [inline]
 __do_sys_mount fs/namespace.c:3697 [inline]
 __se_sys_mount+0x2d3/0x3c0 fs/namespace.c:3674
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7fa5406fd5ea
RSP: 002b:00007ffc7232f968 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007fa5406fd5ea
RDX: 0000000020000440 RSI: 0000000020000000 RDI: 00007ffc7232f970
RBP: 00007ffc7232f970 R08: 00007ffc7232f9b0 R09: 0000000000000432
R10: 0000000000804a03 R11: 0000000000000202 R12: 0000000000000004
R13: 0000555556a7a2c0 R14: 00007ffc7232f9b0 R15: 0000000000000000
 </TASK>

Showing all locks held in the system:
1 lock held by rcu_tasks_kthre/12:
 #0: ffffffff8d326f50 (rcu_tasks.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by rcu_tasks_trace/13:
 #0: ffffffff8d327750 (rcu_tasks_trace.tasks_gp_mutex){+.+.}-{3:3}, at: rcu_tasks_one_gp+0x30/0xd00 kernel/rcu/tasks.h:507
1 lock held by khungtaskd/28:
 #0: ffffffff8d326d80 (rcu_read_lock){....}-{1:2}, at: rcu_lock_acquire+0x0/0x30
2 locks held by getty/4743:
 #0: ffff88814bdd0098 (&tty->ldisc_sem){++++}-{0:0}, at: tty_ldisc_ref_wait+0x21/0x70 drivers/tty/tty_ldisc.c:244
 #1: ffffc900015a02f0 (&ldata->atomic_read_lock){+.+.}-{3:3}, at: n_tty_read+0x53b/0x1650 drivers/tty/n_tty.c:2177
2 locks held by syz-executor232/5073:
 #0: ffff88802a5380e0 (&type->s_umount_key#28/1){+.+.}-{3:3}, at: alloc_super+0x212/0x920 fs/super.c:228
 #1: ffff88802a538650 (sb_internal){.+.+}-{0:0}, at: __sb_start_write include/linux/fs.h:1811 [inline]
 #1: ffff88802a538650 (sb_internal){.+.+}-{0:0}, at: sb_start_intwrite include/linux/fs.h:1933 [inline]
 #1: ffff88802a538650 (sb_internal){.+.+}-{0:0}, at: ext4_evict_inode+0x4cd/0x10b0 fs/ext4/inode.c:240

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

NMI backtrace for cpu 1
CPU: 1 PID: 28 Comm: khungtaskd Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 <TASK>
 __dump_stack lib/dump_stack.c:88 [inline]
 dump_stack_lvl+0x1b1/0x290 lib/dump_stack.c:106
 nmi_cpu_backtrace+0x46f/0x4f0 lib/nmi_backtrace.c:111
 nmi_trigger_cpumask_backtrace+0x1ba/0x420 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+0xcd5/0xd20 kernel/hung_task.c:377
 kthread+0x266/0x300 kernel/kthread.c:376
 ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:308
 </TASK>
Sending NMI from CPU 1 to CPUs 0:
NMI backtrace for cpu 0
CPU: 0 PID: 4421 Comm: klogd Not tainted 6.2.0-rc2-syzkaller-00024-g512dee0c00ad #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
RIP: 0010:vsnprintf+0x3cd/0x1cb0 lib/vsprintf.c:2829
Code: e8 08 92 e0 f6 48 83 fb 28 4c 8b 7c 24 08 0f 87 80 08 00 00 e8 d4 8d e0 f6 48 8b 7c 24 30 48 89 f8 48 c1 e8 03 42 80 3c 28 00 <74> 05 e8 ac 37 36 f7 89 d8 49 03 5e 10 44 8d 78 08 48 8b 44 24 10
RSP: 0018:ffffc90002f6f7a0 EFLAGS: 00000246
RAX: 1ffff920005edf22 RBX: 0000000000000010 RCX: ffff88807d8e1d40
RDX: 0000000000000000 RSI: 0000000000000010 RDI: ffffc90002f6f910
RBP: ffffc90002f6f890 R08: ffffffff8aab4d78 R09: ffffffff8aab4b6e
R10: 0000000000000012 R11: ffff88807d8e1d40 R12: ffff0a0000000509
R13: dffffc0000000000 R14: ffffc90002f6f900 R15: ffffc90082f6fae2
FS:  00007f99d0120800(0000) GS:ffff8880b9800000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005630c40b8a40 CR3: 000000002b714000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 sprintf+0xc7/0x110 lib/vsprintf.c:3000
 print_time kernel/printk/printk.c:1357 [inline]
 info_print_prefix+0x153/0x2e0 kernel/printk/printk.c:1383
 record_print_text+0x12e/0x430 kernel/printk/printk.c:1432
 syslog_print+0x3a0/0x5e0 kernel/printk/printk.c:1643
 do_syslog+0x815/0x8f0 kernel/printk/printk.c:1762
 __do_sys_syslog kernel/printk/printk.c:1854 [inline]
 __se_sys_syslog kernel/printk/printk.c:1852 [inline]
 __x64_sys_syslog+0x78/0x90 kernel/printk/printk.c:1852
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f99d02bb8b7
Code: 73 01 c3 48 8b 0d c1 05 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 b8 67 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 91 05 0c 00 f7 d8 64 89 01 48
RSP: 002b:00007ffec1edf228 EFLAGS: 00000206 ORIG_RAX: 0000000000000067
RAX: ffffffffffffffda RBX: 00007f99d0448490 RCX: 00007f99d02bb8b7
RDX: 00000000000003ff RSI: 00007f99d0448490 RDI: 0000000000000002
RBP: 0000000000000000 R08: 0000000000000007 R09: 000055d7b192cd50
R10: 0000000000004000 R11: 0000000000000206 R12: 00007f99d0448490
R13: 00007f99d044850e R14: 00007f99d044850e R15: 0000000000000000
 </TASK>

Crashes (28):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/05 14:20 upstream 512dee0c00ad 1dac8c7a .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-upstream-fs INFO: task hung in find_inode_fast
2023/05/07 03:38 linux-next 83e5775d7afd 90c93c40 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-linux-next-kasan-gce-root INFO: task hung in find_inode_fast
2023/01/04 03:27 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci a5541c0811a0 1dac8c7a .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-gce-arm64 INFO: task hung in find_inode_fast
2023/03/18 06:36 upstream 8d3c682a5e3d 7939252e .config console log report syz [disk image] [vmlinux] [kernel image] [mounted in repro] ci-upstream-kasan-gce-root INFO: task hung in find_inode_fast
2023/05/20 15:19 upstream d635f6cc934b 4bce1a3e .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in find_inode_fast
2023/05/04 09:42 upstream 1a5304fecee5 b5918830 .config console log report info ci-upstream-kasan-gce-root INFO: task hung in find_inode_fast
2023/05/03 17:42 upstream 348551ddaf31 b5918830 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in find_inode_fast
2023/02/11 04:53 upstream 420b2d431d18 93e26d60 .config console log report info ci-upstream-kasan-gce-smack-root INFO: task hung in find_inode_fast
2023/02/05 13:12 upstream 837c07cf68fe be607b78 .config console log report info ci2-upstream-fs INFO: task hung in find_inode_fast
2023/02/02 19:53 upstream 9f266ccaa2f5 16d19e30 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in find_inode_fast
2023/02/01 02:27 upstream 22b8077d0fce b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in find_inode_fast
2023/01/27 22:46 upstream 83abd4d4c4be 9dfcf09c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in find_inode_fast
2023/01/20 02:39 upstream 081edded9b38 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in find_inode_fast
2023/01/10 14:45 upstream 5a41237ad1d4 48bc529a .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in find_inode_fast
2023/01/09 20:55 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in find_inode_fast
2023/01/09 06:07 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root INFO: task hung in find_inode_fast
2023/01/09 05:36 upstream 1fe4fd6f5cad 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root INFO: task hung in find_inode_fast
2023/01/02 16:59 upstream 88603b6dc419 ab32d508 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in find_inode_fast
2022/12/29 07:47 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root INFO: task hung in find_inode_fast
2022/12/27 17:03 upstream 1b929c02afd3 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs INFO: task hung in find_inode_fast
2023/01/10 09:42 linux-next 435bf71af3a0 1dac8c7a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root INFO: task hung in find_inode_fast
2023/06/06 05:25 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 950b879b7f02 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 INFO: task hung in find_inode_fast
2023/06/04 21:11 git://git.kernel.org/pub/scm/linux/kernel/git/riscv/linux.git fixes 950b879b7f02 a4ae4f42 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu2-riscv64 INFO: task hung in find_inode_fast
2023/04/14 10:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 7920df21c1b7 3cfcaa1b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in find_inode_fast
2023/03/13 18:45 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci fe15c26ee26e 026e2200 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in find_inode_fast
2023/03/03 10:52 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 596b6b709632 f8902b57 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in find_inode_fast
2023/02/25 13:38 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 2ebd1fbb946d ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in find_inode_fast
2023/01/11 22:22 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci 358a161a6a9e 96166539 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 INFO: task hung in find_inode_fast
* Struck through repros no longer work on HEAD.