syzbot


kernel BUG in f2fs_evict_inode

Status: upstream: reported C repro on 2022/12/26 05:49
Subsystems: f2fs tmpfs
[Documentation on labels]
Reported-by: syzbot+a0d4ec347cb46afbc0ef@syzkaller.appspotmail.com
First crash: 698d, last: 631d
Similar bugs (8)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in f2fs_evict_inode f2fs C error 135 423d 702d 23/28 fixed on 2023/10/12 12:47
upstream kernel BUG in f2fs_evict_inode (4) f2fs 3 4d01h 7d14h 0/28 upstream: reported on 2024/11/16 12:19
linux-4.19 kernel BUG at fs/f2fs/inode.c:LINE! f2fs tmpfs C error 3 700d 1502d 0/1 upstream: reported C repro on 2020/10/13 04:23
linux-6.1 kernel BUG in f2fs_evict_inode origin:upstream C 93 30d 592d 0/3 upstream: reported C repro on 2023/04/11 09:45
upstream kernel BUG in f2fs_evict_inode (2) f2fs C error 575 102d 381d 27/28 fixed on 2024/08/14 03:44
linux-5.15 kernel BUG in f2fs_evict_inode (2) missing-backport origin:upstream C done 207 45d 383d 0/3 upstream: reported C repro on 2023/11/06 18:33
upstream kernel BUG in f2fs_evict_inode (3) f2fs C error 33 50d 97d 28/28 fixed on 2024/10/22 11:57
linux-5.15 kernel BUG in f2fs_evict_inode 3 589d 610d 0/3 auto-obsoleted due to no activity on 2023/08/12 09:15
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/03/04 00:24 23m bisect fix linux-4.14.y OK (0) job log log
2023/02/01 19:30 33m bisect fix linux-4.14.y OK (0) job log log

Sample crash report:
F2FS-fs (loop0): Try to recover 2th superblock, ret: -30
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
F2FS-fs (loop0): Corrupted max_depth of 3: 2049
syz-executor289[7985]: segfault at 0 ip 00007f14a3e7aac0 sp 00007ffc57154f18 error 4 in syz-executor2894277320[7f14a3e14000+88000]
------------[ cut here ]------------
kernel BUG at fs/f2fs/inode.c:600!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 0 PID: 7985 Comm: syz-executor289 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
task: ffff8880b4410540 task.stack: ffff8880b3008000
RIP: 0010:f2fs_evict_inode+0xd97/0x1070 fs/f2fs/inode.c:600
RSP: 0018:ffff8880b300f858 EFLAGS: 00010297
RAX: ffff8880b4410540 RBX: ffff8880b3788340 RCX: 0000000000000001
RDX: 0000000000000000 RSI: 0000000000000001 RDI: ffff8880b37883c4
RBP: ffff88808e3a2000 R08: 0000000000000003 R09: 0000000000000001
R10: 0000000000000000 R11: ffff8880b4410540 R12: ffff888096e78ac0
R13: ffff88808e3a2028 R14: ffff88808e3a23d0 R15: ffff88808e3a21b8
FS:  0000555555746300(0000) GS:ffff8880ba400000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ff373823000 CR3: 00000000a1249000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 evict+0x2c8/0x700 fs/inode.c:554
 dispose_list+0x109/0x1e0 fs/inode.c:589
 evict_inodes+0x2cd/0x3a0 fs/inode.c:639
 generic_shutdown_super+0xb3/0x370 fs/super.c:438
 kill_block_super+0x95/0xe0 fs/super.c:1161
 deactivate_locked_super+0x6c/0xd0 fs/super.c:319
 deactivate_super+0x7f/0xa0 fs/super.c:350
 cleanup_mnt+0x186/0x2c0 fs/namespace.c:1183
 task_work_run+0x11f/0x190 kernel/task_work.c:113
 exit_task_work include/linux/task_work.h:22 [inline]
 do_exit+0xa44/0x2850 kernel/exit.c:868
 do_group_exit+0x100/0x2e0 kernel/exit.c:965
 get_signal+0x38d/0x1ca0 kernel/signal.c:2412
 do_signal+0x7c/0x1550 arch/x86/kernel/signal.c:792
 exit_to_usermode_loop+0x160/0x200 arch/x86/entry/common.c:160
 prepare_exit_to_usermode+0x1af/0x210 arch/x86/entry/common.c:199
 retint_user+0x8/0x18
RIP: 0033:0x7f14a3e7aac0
RSP: 002b:00007ffc57154f18 EFLAGS: 00010246
RAX: 0000000000000000 RBX: 00000000000000e0 RCX: 0000000000000000
RDX: 00000000000000e0 RSI: 00000000000000e0 RDI: 0000000000000000
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 00000000000000c0 R11: 00000000000000e0 R12: 0000000020000100
R13: 00007ffc57154fe0 R14: 0000000000000000 R15: 00007ffc57154fe0
Code: 92 fe 48 c7 c2 e0 be c1 87 be 18 01 00 00 48 c7 c7 40 bf c1 87 c6 05 b1 02 30 07 01 e8 4c 68 3f 04 e9 35 fc ff ff e8 e9 0c 92 fe <0f> 0b 48 8b 7c 24 28 e8 6d cd bb fe e9 ec f2 ff ff e8 63 cd bb 
RIP: f2fs_evict_inode+0xd97/0x1070 fs/f2fs/inode.c:600 RSP: ffff8880b300f858
---[ end trace dc0d59a735f28234 ]---

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/26 05:49 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 kernel BUG in f2fs_evict_inode
* Struck through repros no longer work on HEAD.