syzbot


kernel BUG in f2fs_evict_inode (2)

Status: upstream: reported C repro on 2023/11/06 18:33
Bug presence: origin:upstream
Labels: missing-backport
[Documentation on labels]
Reported-by: syzbot+1cfe9a7ec4b1ea62e2da@syzkaller.appspotmail.com
First crash: 312d, last: 26d
Fix commit to backport (bisect log) :
tree: upstream
commit 192b8fb8d1c8ca3c87366ebbef599fa80bb626b8
Author: Chao Yu <chao@kernel.org>
Date: Tue Jun 4 07:56:36 2024 +0000

  f2fs: fix to don't dirty inode for readonly filesystem

  
Fix bisection: the issue occurs on the latest tested release (bisect log)
Crash: kernel BUG in f2fs_evict_inode (log)
Repro: C syz .config
  
Bug presence (3)
Date Name Commit Repro Result
2024/08/07 linux-5.15.y (ToT) 7e89efd3ae1c C [report] kernel BUG in f2fs_evict_inode
2023/11/17 upstream (ToT) 791c8ab095f7 C [report] kernel BUG in f2fs_evict_inode
2024/08/07 upstream (ToT) d4560686726f C Didn't crash
Similar bugs (7)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream kernel BUG in f2fs_evict_inode f2fs C error 135 352d 631d 23/28 fixed on 2023/10/12 12:47
linux-4.19 kernel BUG at fs/f2fs/inode.c:LINE! f2fs tmpfs C error 3 629d 1431d 0/1 upstream: reported C repro on 2020/10/13 04:23
linux-6.1 kernel BUG in f2fs_evict_inode origin:upstream C 92 28d 521d 0/3 upstream: reported C repro on 2023/04/11 09:45
upstream kernel BUG in f2fs_evict_inode (2) f2fs C error 575 30d 310d 27/28 fixed on 2024/08/14 03:44
linux-4.14 kernel BUG in f2fs_evict_inode f2fs tmpfs C 1 559d 627d 0/1 upstream: reported C repro on 2022/12/26 05:49
upstream kernel BUG in f2fs_evict_inode (3) f2fs C error 9 7d16h 26d 0/28 upstream: reported C repro on 2024/08/18 10:41
linux-5.15 kernel BUG in f2fs_evict_inode 3 518d 539d 0/3 auto-obsoleted due to no activity on 2023/08/12 09:15
Fix bisection attempts (5)
Created Duration User Patch Repo Result
2024/09/04 07:09 9h47m fix candidate upstream OK (1) job log
2024/04/11 05:19 2h25m bisect fix linux-5.15.y OK (0) job log log
2024/03/02 13:28 50m bisect fix linux-5.15.y OK (0) job log log
2024/01/18 10:09 1h14m bisect fix linux-5.15.y OK (0) job log log
2023/12/18 01:33 1h08m bisect fix linux-5.15.y OK (0) job log log

Sample crash report:
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): recover fsync data on readonly fs
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
F2FS-fs (loop0): Corrupted max_depth of 3: 16777217
------------[ cut here ]------------
kernel BUG at fs/f2fs/inode.c:833!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 3499 Comm: syz-executor595 Not tainted 5.15.138-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:f2fs_evict_inode+0x14ec/0x1510 fs/f2fs/inode.c:833
Code: de e8 58 14 eb fd 31 ff 89 de e8 4f 14 eb fd 40 84 ed 75 24 e8 e5 11 eb fd e9 25 ec ff ff e8 db 11 eb fd 0f 0b e8 d4 11 eb fd <0f> 0b e8 cd 11 eb fd 0f 0b e9 02 ff ff ff e8 c1 11 eb fd e8 e4 76
RSP: 0018:ffffc90002bff930 EFLAGS: 00010293
RAX: ffffffff8395107c RBX: 0000000000000002 RCX: ffff888013385940
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff839503b5 R09: ffffed100e9132f7
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807a134000
R13: ffff888074899300 R14: 1ffff1100e9132f6 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005645e8c57218 CR3: 000000007f5c4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 evict+0x2a4/0x620 fs/inode.c:587
 dispose_list fs/inode.c:620 [inline]
 evict_inodes+0x601/0x6a0 fs/inode.c:670
 generic_shutdown_super+0x99/0x2c0 fs/super.c:454
 kill_block_super+0x7a/0xe0 fs/super.c:1414
 kill_f2fs_super+0x2ff/0x3c0 fs/f2fs/super.c:4501
 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
 exit_task_work include/linux/task_work.h:32 [inline]
 do_exit+0x6a3/0x2480 kernel/exit.c:872
 do_group_exit+0x144/0x310 kernel/exit.c:994
 __do_sys_exit_group kernel/exit.c:1005 [inline]
 __se_sys_exit_group kernel/exit.c:1003 [inline]
 __x64_sys_exit_group+0x3b/0x40 kernel/exit.c:1003
 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+0x61/0xcb
RIP: 0033:0x7fb7ed43e749
Code: Unable to access opcode bytes at RIP 0x7fb7ed43e71f.
RSP: 002b:00007fff7f2b3058 EFLAGS: 00000246 ORIG_RAX: 00000000000000e7
RAX: ffffffffffffffda RBX: 0000000000000001 RCX: 00007fb7ed43e749
RDX: 000000000000003c RSI: 00000000000000e7 RDI: 0000000000000001
RBP: 00007fb7ed4bf2b0 R08: ffffffffffffffb8 R09: 00007fff7f2b3130
R10: 00007fff7f2b2f80 R11: 0000000000000246 R12: 00007fb7ed4bf2b0
R13: 0000000000000000 R14: 00007fb7ed4c0020 R15: 00007fb7ed40cc90
 </TASK>
Modules linked in:
---[ end trace 258a1d28484a3cc0 ]---
RIP: 0010:f2fs_evict_inode+0x14ec/0x1510 fs/f2fs/inode.c:833
Code: de e8 58 14 eb fd 31 ff 89 de e8 4f 14 eb fd 40 84 ed 75 24 e8 e5 11 eb fd e9 25 ec ff ff e8 db 11 eb fd 0f 0b e8 d4 11 eb fd <0f> 0b e8 cd 11 eb fd 0f 0b e9 02 ff ff ff e8 c1 11 eb fd e8 e4 76
RSP: 0018:ffffc90002bff930 EFLAGS: 00010293
RAX: ffffffff8395107c RBX: 0000000000000002 RCX: ffff888013385940
RDX: 0000000000000000 RSI: 0000000000000002 RDI: 0000000000000000
RBP: 0000000000000000 R08: ffffffff839503b5 R09: ffffed100e9132f7
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88807a134000
R13: ffff888074899300 R14: 1ffff1100e9132f6 R15: dffffc0000000000
FS:  0000000000000000(0000) GS:ffff8880b9a00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005645e8c57218 CR3: 000000007f5c4000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (206):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/11/17 22:43 linux-5.15.y 80529b4968a8 cb976f63 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan kernel BUG in f2fs_evict_inode
2024/05/12 05:33 linux-5.15.y 284087d4f7d5 9026e142 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/03/09 23:18 linux-5.15.y 574362648507 6ee49f2e .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/04 05:51 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan kernel BUG in f2fs_evict_inode
2024/08/18 03:11 linux-5.15.y 7e89efd3ae1c dbc93b08 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/13 20:15 linux-5.15.y 7e89efd3ae1c f21a18ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/13 12:31 linux-5.15.y 7e89efd3ae1c 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/13 00:57 linux-5.15.y 7e89efd3ae1c 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/13 00:55 linux-5.15.y 7e89efd3ae1c 7b0f4b46 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/12 12:50 linux-5.15.y 7e89efd3ae1c 842184b3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/10 07:18 linux-5.15.y 7e89efd3ae1c 6f4edef4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/09 17:37 linux-5.15.y 7e89efd3ae1c a83d9288 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/08 22:12 linux-5.15.y 7e89efd3ae1c 61405512 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/08 02:55 linux-5.15.y 7e89efd3ae1c de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/08 02:51 linux-5.15.y 7e89efd3ae1c de12cf65 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/07 18:24 linux-5.15.y 7e89efd3ae1c 109d2082 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/07 08:25 linux-5.15.y 7e89efd3ae1c 1ef9fe42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/06 17:12 linux-5.15.y 7e89efd3ae1c 1ef9fe42 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/06 04:38 linux-5.15.y 7e89efd3ae1c e1bdb00a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/05 23:29 linux-5.15.y 7e89efd3ae1c e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/05 11:50 linux-5.15.y 7e89efd3ae1c e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/05 11:48 linux-5.15.y 7e89efd3ae1c e35c337f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/04 23:25 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/03 21:07 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/03 18:11 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/03 09:48 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/03 07:58 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/03 01:38 linux-5.15.y 7e89efd3ae1c 1786a2a8 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/01 22:09 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/08/01 02:55 linux-5.15.y 7e89efd3ae1c 1e9c4cf3 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/31 11:50 linux-5.15.y 7e89efd3ae1c 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/31 06:49 linux-5.15.y 7e89efd3ae1c 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/30 20:42 linux-5.15.y 7e89efd3ae1c 6fde257d .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/30 05:16 linux-5.15.y 7e89efd3ae1c 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/29 13:58 linux-5.15.y 7e89efd3ae1c 5187fc86 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/29 05:40 linux-5.15.y 7e89efd3ae1c 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/28 15:06 linux-5.15.y 7e89efd3ae1c 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/28 01:50 linux-5.15.y 7e89efd3ae1c 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/27 12:58 linux-5.15.y 7e89efd3ae1c 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/26 20:09 linux-5.15.y 7c6d66f0266f 46eb10b7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/26 02:06 linux-5.15.y 7c6d66f0266f 3f86dfed .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/25 14:04 linux-5.15.y 7c6d66f0266f 466a14e5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/24 17:45 linux-5.15.y 7c6d66f0266f d1a1b0ca .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/24 04:14 linux-5.15.y 7c6d66f0266f 57b2edb1 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/23 17:37 linux-5.15.y 7c6d66f0266f e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/23 17:37 linux-5.15.y 7c6d66f0266f e50e8da5 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/23 03:36 linux-5.15.y 7c6d66f0266f 708c10c4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/22 23:33 linux-5.15.y 7c6d66f0266f df655b64 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2024/07/22 08:48 linux-5.15.y 7c6d66f0266f b88348e9 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
2023/11/06 18:33 linux-5.15.y 12952a23a5da 78fae24e .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-5-15-kasan-arm64 kernel BUG in f2fs_evict_inode
* Struck through repros no longer work on HEAD.