syzbot


WARNING in f2fs_is_valid_blkaddr

Status: upstream: reported C repro on 2020/09/15 10:39
Subsystems: f2fs
[Documentation on labels]
Reported-by: syzbot+f60430d3b59b96ca59fb@syzkaller.appspotmail.com
First crash: 1558d, last: 661d
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 934d 1552d 22/28 fixed on 2023/02/24 13:50
linux-4.19 WARNING in f2fs_is_valid_blkaddr f2fs C 2169 658d 1552d 0/1 upstream: reported C repro on 2020/09/21 17:33
Fix bisection attempts (3)
Created Duration User Patch Repo Result
2021/10/03 03:08 25m bisect fix linux-4.14.y OK (0) job log log
2021/09/03 02:40 22m bisect fix linux-4.14.y OK (0) job log log
2021/07/21 16:24 23m bisect fix linux-4.14.y OK (0) job log log

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: 1 PID: 7973 at fs/f2fs/checkpoint.c:150 f2fs_is_valid_blkaddr+0x2d9/0x920 fs/f2fs/checkpoint.c:148
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 7973 Comm: syz-executor387 Not tainted 4.14.302-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/26/2022
Call Trace:
 __dump_stack lib/dump_stack.c:17 [inline]
 dump_stack+0x1b2/0x281 lib/dump_stack.c:58
 panic+0x1f9/0x42d kernel/panic.c:183
 __warn.cold+0x20/0x44 kernel/panic.c:547
 report_bug+0x208/0x250 lib/bug.c:183
 fixup_bug arch/x86/kernel/traps.c:177 [inline]
 fixup_bug arch/x86/kernel/traps.c:172 [inline]
 do_error_trap+0x195/0x2d0 arch/x86/kernel/traps.c:295
 invalid_op+0x1b/0x40 arch/x86/entry/entry_64.S:967
RIP: 0010:f2fs_is_valid_blkaddr+0x2d9/0x920 fs/f2fs/checkpoint.c:150
RSP: 0018:ffff8880b3e4fae8 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: ffff8880b30a0680 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bd020 RDI: ffffed10167c9f37
RBP: 0000000000000005 R08: 0000000000000032 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 000000006b7a7973
R13: ffff8880b4130f00 R14: 0000000000000009 R15: 0000000000000200
 truncate_data_blocks_range+0x29f/0xd80 fs/f2fs/file.c:511
 truncate_blocks+0xaae/0x1180 fs/f2fs/file.c:625
 f2fs_truncate+0x257/0x620 fs/f2fs/file.c:667
 f2fs_setattr+0x260/0xf70 fs/f2fs/file.c:778
 notify_change+0x56b/0xd10 fs/attr.c:315
 do_truncate+0xff/0x1a0 fs/open.c:63
 vfs_truncate+0x456/0x680 fs/open.c:120
 do_sys_truncate.part.0+0xdc/0xf0 fs/open.c:143
 do_sys_truncate fs/open.c:137 [inline]
 SYSC_truncate fs/open.c:155 [inline]
 SyS_truncate+0x23/0x40 fs/open.c:153
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x5e/0xd3
RIP: 0033:0x7f7ce2593779
RSP: 002b:00007ffc45a0b4f8 EFLAGS: 00000246 ORIG_RAX: 000000000000004c
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f7ce2593779
RDX: 00007f7ce2551df3 RSI: 0000000000000000 RDI: 0000000020000100
RBP: 00007f7ce2553010 R08: 00000000000105c3 R09: 0000000000000000
R10: 00007ffc45a0b3c0 R11: 0000000000000246 R12: 00007f7ce25530a0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Kernel Offset: disabled
Rebooting in 86400 seconds..

Crashes (858):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/01 01:19 linux-4.14.y c4215ee4771b ab32d508 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/12/29 13:55 linux-4.14.y c4215ee4771b 44712fbc .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/12/23 12:20 linux-4.14.y c4215ee4771b 9da18ae8 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/12/14 09:41 linux-4.14.y 65afe34ac33d f6511626 .config console log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/09/01 10:30 linux-4.14.y e548869f356f b01ec571 .config console log report syz C [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/05/24 18:19 linux-4.14.y dffb5c6ff09c fcfad4ff .config console log report syz C ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/02/12 00:36 linux-4.14.y 8034e99d1a01 8b9ca619 .config console log report syz C ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2021/08/04 02:39 linux-4.14.y ce4d1565392b 6c236867 .config console log report syz C ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2021/06/21 16:23 linux-4.14.y cfb41ef9deb1 aba2b2fb .config console log report syz C ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2020/09/30 13:49 linux-4.14.y cbfa1702aaf6 8516f6d3 .config console log report syz C ci2-linux-4-14
2020/09/27 14:18 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config console log report syz C ci2-linux-4-14
2020/09/23 14:04 linux-4.14.y cbfa1702aaf6 287cd75a .config console log report syz C ci2-linux-4-14
2020/09/20 14:53 linux-4.14.y cbfa1702aaf6 9564d2e9 .config console log report syz C ci2-linux-4-14
2020/09/15 19:00 linux-4.14.y cbfa1702aaf6 9e681632 .config console log report syz C ci2-linux-4-14
2023/03/01 19:16 linux-4.14.y 7878a41b6cc1 ef65e6cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/03/01 17:24 linux-4.14.y 7878a41b6cc1 ef65e6cb .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/03/01 02:47 linux-4.14.y 7878a41b6cc1 95aee97a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/02/26 18:51 linux-4.14.y 7878a41b6cc1 ee50e71c .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/02/11 14:04 linux-4.14.y a8ad60f2af58 93e26d60 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/02/08 04:48 linux-4.14.y a8ad60f2af58 15c3d445 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/01/30 21:00 linux-4.14.y 3949d1610004 b68fb8d6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/01/20 05:23 linux-4.14.y 97205fccccdc 71197f3a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2023/01/14 23:16 linux-4.14.y c4215ee4771b a63719e7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/12/28 04:21 linux-4.14.y c4215ee4771b 44712fbc .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/12/16 22:30 linux-4.14.y c4215ee4771b 05494336 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/12/14 08:59 linux-4.14.y 65afe34ac33d f6511626 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/31 15:31 linux-4.14.y 41f36d7859a7 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/30 09:37 linux-4.14.y 41f36d7859a7 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/30 05:15 linux-4.14.y 41f36d7859a7 2a71366b .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/29 07:47 linux-4.14.y 41f36d7859a7 899d812a .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/28 10:17 linux-4.14.y 41f36d7859a7 5c716ff6 .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/27 05:53 linux-4.14.y 41f36d7859a7 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/27 04:41 linux-4.14.y 41f36d7859a7 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/27 01:13 linux-4.14.y 41f36d7859a7 86777b7f .config console log report info [disk image] [vmlinux] [kernel image] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/25 12:50 linux-4.14.y 9d5c0b3a8e1a 45645420 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/24 18:57 linux-4.14.y 9d5c0b3a8e1a faae2fda .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/24 16:38 linux-4.14.y 9d5c0b3a8e1a faae2fda .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/24 09:40 linux-4.14.y 9d5c0b3a8e1a faae2fda .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/23 05:18 linux-4.14.y 9d5c0b3a8e1a c0b80a55 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/22 05:18 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/22 03:52 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/21 17:17 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/21 15:24 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/20 18:33 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/20 11:38 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/20 01:56 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/19 12:00 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/19 09:20 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/19 08:08 linux-4.14.y 9d5c0b3a8e1a b31320fc .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/18 04:10 linux-4.14.y 9d5c0b3a8e1a 94744d21 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/16 16:55 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/16 08:02 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/16 01:10 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/15 15:13 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/15 10:58 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/15 02:24 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/14 17:02 linux-4.14.y 9d5c0b3a8e1a 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/14 05:37 linux-4.14.y 9d5c0b3a8e1a 4954e4b2 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/12 01:53 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/11 21:51 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/11 19:50 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2022/10/10 21:19 linux-4.14.y 9d5c0b3a8e1a 5bcf0c31 .config console log report info [disk image] [vmlinux] ci2-linux-4-14 WARNING in f2fs_is_valid_blkaddr
2021/01/17 11:11 linux-4.14.y f79dc86058bc 813be542 .config console log report info ci2-linux-4-14
2020/09/15 10:38 linux-4.14.y cbfa1702aaf6 9e681632 .config console log report info ci2-linux-4-14
* Struck through repros no longer work on HEAD.