syzbot


WARNING in f2fs_is_valid_blkaddr

Status: upstream: reported C repro on 2020/09/21 17:33
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+b259e679db0095a9fa0c@syzkaller.appspotmail.com
First crash: 1535d, last: 642d
Similar bugs (2)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in f2fs_is_valid_blkaddr f2fs C done 2562 918d 1535d 22/28 fixed on 2023/02/24 13:50
linux-4.14 WARNING in f2fs_is_valid_blkaddr f2fs C 858 644d 1541d 0/1 upstream: reported C repro on 2020/09/15 10:39

Sample crash report:
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): Found nat_bits in checkpoint
F2FS-fs (loop0): Mounted with checkpoint version = 48b305e4
F2FS-fs (loop0): access invalid blkaddr:1803188595
------------[ cut here ]------------
WARNING: CPU: 0 PID: 8079 at fs/f2fs/checkpoint.c:166 f2fs_is_valid_blkaddr+0x35d/0xa20 fs/f2fs/checkpoint.c:166
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 8079 Comm: syz-executor306 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:77 [inline]
 dump_stack+0x1fc/0x2ef lib/dump_stack.c:118
 panic+0x26a/0x50e kernel/panic.c:186
 __warn.cold+0x20/0x5a kernel/panic.c:541
 report_bug+0x262/0x2b0 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:178 [inline]
 fixup_bug arch/x86/kernel/traps.c:173 [inline]
 do_error_trap+0x1d7/0x310 arch/x86/kernel/traps.c:296
 invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:f2fs_is_valid_blkaddr+0x35d/0xa20 fs/f2fs/checkpoint.c:166
Code: 7a 06 00 00 48 8b 7d 00 44 89 e1 48 c7 c2 40 1a a8 88 48 c7 c6 e0 18 a8 88 e8 bf fa fd ff 48 c7 c7 80 1a a8 88 e8 fe 34 de 04 <0f> 0b 45 31 ed e9 3f fe ff ff e8 84 03 4d fe 48 8d bd 40 01 00 00
RSP: 0018:ffff888096937a38 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000005 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff814dff01 RDI: ffffed1012d26f39
RBP: ffff8880b1570140 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 000000006b7a7973
R13: ffff8880a4b1c780 R14: 0000000000004000 R15: 0000000000000200
 f2fs_truncate_data_blocks_range+0x2e4/0xf30 fs/f2fs/file.c:529
 f2fs_truncate_blocks+0xf5a/0x1610 fs/f2fs/file.c:641
 f2fs_truncate+0x3e7/0x870 fs/f2fs/file.c:689
 f2fs_setattr+0xf74/0x12b0 fs/f2fs/file.c:812
 notify_change+0x70b/0xfc0 fs/attr.c:334
 do_truncate+0x134/0x1f0 fs/open.c:63
 vfs_truncate+0x54b/0x6d0 fs/open.c:109
 do_sys_truncate fs/open.c:132 [inline]
 do_sys_truncate+0x145/0x170 fs/open.c:120
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7eff6b56f779
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 51 14 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffdc77cf388 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007eff6b56f779
RDX: 00007eff6b52ddf3 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007eff6b52f010 R08: 00000000000105c3 R09: 0000000000000000
R10: 00007ffdc77cf250 R11: 0000000000000246 R12: 00007eff6b52f0a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (2169):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/12/31 22:49 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/12/17 18:20 linux-4.19.y 3f8a27f9e27b 05494336 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/12/07 19:05 linux-4.19.y 3f8a27f9e27b d88f3abb .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/11/04 23:57 linux-4.19.y 3f8a27f9e27b 6d752409 .config console log report syz C [disk image] [vmlinux] [mounted in repro] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/09/01 09:29 linux-4.19.y 3f8a27f9e27b b01ec571 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/05/24 06:50 linux-4.19.y 3f8a27f9e27b e7f9308d .config console log report syz C ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/02/12 11:18 linux-4.19.y 3f8a27f9e27b 8b9ca619 .config console log report syz C ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2021/12/23 22:43 linux-4.19.y 3f8a27f9e27b 6caa12e4 .config console log report syz C ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2021/06/25 04:59 linux-4.19.y eb575cd5d7f6 0edbbe31 .config console log report syz C ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2021/06/09 19:13 linux-4.19.y 1722257b8ece 84fe5d96 .config console log report syz C ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2021/06/08 11:54 linux-4.19.y 1722257b8ece 5c2fe346 .config console log report syz C ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2021/05/09 16:48 linux-4.19.y 3c8c23092588 bc5434be .config console log report syz C ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2020/10/13 06:46 linux-4.19.y a1b977b49b66 d32b0bbf .config console log report syz C ci2-linux-4-19
2020/10/08 08:45 linux-4.19.y a1b977b49b66 1880b4a9 .config console log report syz C ci2-linux-4-19
2020/10/04 14:34 linux-4.19.y b09c34517e1a 5ef9c291 .config console log report syz C ci2-linux-4-19
2020/09/23 02:01 linux-4.19.y 015e94d0e37b 3e8f6c27 .config console log report syz C ci2-linux-4-19
2020/09/21 18:11 linux-4.19.y 015e94d0e37b c81d99c8 .config console log report syz C ci2-linux-4-19
2023/03/04 03:07 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/03/03 02:19 linux-4.19.y 3f8a27f9e27b f8902b57 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/03/01 02:30 linux-4.19.y 3f8a27f9e27b 95aee97a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/25 16:44 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/25 12:49 linux-4.19.y 3f8a27f9e27b ee50e71c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/19 14:52 linux-4.19.y 3f8a27f9e27b bcdf85f8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/17 12:45 linux-4.19.y 3f8a27f9e27b 3e7039f4 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/15 09:15 linux-4.19.y 3f8a27f9e27b e62ba3c1 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/15 05:52 linux-4.19.y 3f8a27f9e27b e62ba3c1 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/11 21:57 linux-4.19.y 3f8a27f9e27b 93e26d60 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/10 20:17 linux-4.19.y 3f8a27f9e27b e29a17f5 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/09 05:46 linux-4.19.y 3f8a27f9e27b 14a312c8 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/07 02:11 linux-4.19.y 3f8a27f9e27b 0a9c11b6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/06 11:57 linux-4.19.y 3f8a27f9e27b be607b78 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/03 08:24 linux-4.19.y 3f8a27f9e27b 33fc5c09 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/02 07:27 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/02/02 01:28 linux-4.19.y 3f8a27f9e27b 9a6f477c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/31 09:44 linux-4.19.y 3f8a27f9e27b b68fb8d6 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/30 04:20 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/29 20:03 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/28 14:06 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/27 12:12 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/26 03:45 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/24 14:39 linux-4.19.y 3f8a27f9e27b 9dfcf09c .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/22 10:25 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/21 17:54 linux-4.19.y 3f8a27f9e27b cc0f9968 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/19 22:35 linux-4.19.y 3f8a27f9e27b 71197f3a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/18 22:41 linux-4.19.y 3f8a27f9e27b 4620c2d9 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/18 03:46 linux-4.19.y 3f8a27f9e27b 42660d9e .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/17 00:54 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/16 23:10 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/15 21:01 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/14 23:15 linux-4.19.y 3f8a27f9e27b a63719e7 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/14 08:41 linux-4.19.y 3f8a27f9e27b 529798b0 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/10 08:34 linux-4.19.y 3f8a27f9e27b 48bc529a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/09 10:24 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/09 07:46 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/08 23:40 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/07 21:24 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/06 18:51 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/06 05:04 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/05 18:15 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/05 06:33 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/05 03:20 linux-4.19.y 3f8a27f9e27b 1dac8c7a .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2023/01/01 15:46 linux-4.19.y 3f8a27f9e27b ab32d508 .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/12/30 10:54 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/12/29 18:48 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/12/29 10:42 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/12/29 09:15 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2022/12/29 00:15 linux-4.19.y 3f8a27f9e27b 44712fbc .config console log report info [disk image] [vmlinux] ci2-linux-4-19 WARNING in f2fs_is_valid_blkaddr
2021/01/17 10:38 linux-4.19.y 675cc038067f 813be542 .config console log report info ci2-linux-4-19
2020/09/21 17:33 linux-4.19.y 015e94d0e37b c81d99c8 .config console log report info ci2-linux-4-19
* Struck through repros no longer work on HEAD.