syzbot


WARNING in f2fs_is_valid_blkaddr

Status: upstream: reported C repro on 2020/09/15 10:39
Reported-by: syzbot+f60430d3b59b96ca59fb@syzkaller.appspotmail.com
First crash: 804d, last: 28d
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in f2fs_is_valid_blkaddr C done 2562 180d 798d 23/24 upstream: reported C repro on 2020/09/21 09:51
linux-4.19 WARNING in f2fs_is_valid_blkaddr C 2075 1d03h 798d 0/1 upstream: reported C repro on 2020/09/21 17:33

Sample crash report:
F2FS-fs (loop0): Magic Mismatch, valid(0xf2f52010) - read(0x0)
F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock
F2FS-fs (loop0): invalid crc value
F2FS-fs (loop0): access invalid blkaddr:1
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7972 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: 7972 Comm: syz-executor175 Not tainted 4.14.291-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/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:964
RIP: 0010:f2fs_is_valid_blkaddr+0x2d9/0x920 fs/f2fs/checkpoint.c:150
RSP: 0018:ffff88808fd4f820 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: ffff8880b3b88640 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bc8e0 RDI: ffffed1011fa9ede
RBP: 0000000000000005 R08: 0000000000000029 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000000001 R14: 0000000000001400 R15: 0000000000000400
 f2fs_submit_page_bio+0x10a/0x1380 fs/f2fs/data.c:377
 read_node_page+0x209/0x2f0 fs/f2fs/node.c:1128
 __get_node_page.part.0+0x97/0xea0 fs/f2fs/node.c:1173
 __get_node_page fs/f2fs/node.c:37 [inline]
 get_node_page+0xdd/0x170 fs/f2fs/node.c:1219
 do_read_inode fs/f2fs/inode.c:264 [inline]
 f2fs_iget+0x1e8/0x3760 fs/f2fs/inode.c:360
 f2fs_fill_super+0x30ac/0x56a0 fs/f2fs/super.c:2622
 mount_bdev+0x2b3/0x360 fs/super.c:1134
 mount_fs+0x92/0x2a0 fs/super.c:1237
 vfs_kern_mount.part.0+0x5b/0x470 fs/namespace.c:1046
 vfs_kern_mount fs/namespace.c:1036 [inline]
 do_new_mount fs/namespace.c:2572 [inline]
 do_mount+0xe65/0x2a30 fs/namespace.c:2905
 SYSC_mount fs/namespace.c:3121 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3098
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7fbb2b3f6a7a
RSP: 002b:00007ffceacc49c8 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffceacc4a20 RCX: 00007fbb2b3f6a7a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffceacc49e0
RBP: 00007ffceacc49e0 R08: 00007ffceacc4a20 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200006b0
R13: 0000000000000003 R14: 0000000000000004 R15: 0000000000000032
Kernel Offset: disabled
Rebooting in 86400 seconds..

Fix bisection attempts:
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2021/10/03 03:34 linux-4.14.y f11944f1aa1c 6c236867 .config log report syz C
ci2-linux-4-14 2021/09/03 03:02 linux-4.14.y 35c4ba160ab6 6c236867 .config log report syz C
ci2-linux-4-14 2021/07/21 16:47 linux-4.14.y 964f3712e6a7 aba2b2fb .config log report syz C
* Struck through repros no longer work on HEAD.
Crashes (841):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-linux-4-14 2022/09/01 10:30 linux-4.14.y e548869f356f b01ec571 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/05/24 18:19 linux-4.14.y dffb5c6ff09c fcfad4ff .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/02/12 00:36 linux-4.14.y 8034e99d1a01 8b9ca619 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2021/08/04 02:39 linux-4.14.y ce4d1565392b 6c236867 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2021/06/21 16:23 linux-4.14.y cfb41ef9deb1 aba2b2fb .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2020/09/30 13:49 linux-4.14.y cbfa1702aaf6 8516f6d3 .config log report syz C
ci2-linux-4-14 2020/09/27 14:18 linux-4.14.y cbfa1702aaf6 5dd8aee8 .config log report syz C
ci2-linux-4-14 2020/09/23 14:04 linux-4.14.y cbfa1702aaf6 287cd75a .config log report syz C
ci2-linux-4-14 2020/09/20 14:53 linux-4.14.y cbfa1702aaf6 9564d2e9 .config log report syz C
ci2-linux-4-14 2020/09/15 19:00 linux-4.14.y cbfa1702aaf6 9e681632 .config log report syz C
ci2-linux-4-14 2022/10/31 15:31 linux-4.14.y 41f36d7859a7 2a71366b .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/30 09:37 linux-4.14.y 41f36d7859a7 2a71366b .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/30 05:15 linux-4.14.y 41f36d7859a7 2a71366b .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/29 07:47 linux-4.14.y 41f36d7859a7 899d812a .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/28 10:17 linux-4.14.y 41f36d7859a7 5c716ff6 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/27 05:53 linux-4.14.y 41f36d7859a7 86777b7f .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/27 04:41 linux-4.14.y 41f36d7859a7 86777b7f .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/27 01:13 linux-4.14.y 41f36d7859a7 86777b7f .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/25 12:50 linux-4.14.y 9d5c0b3a8e1a 45645420 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/24 18:57 linux-4.14.y 9d5c0b3a8e1a faae2fda .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/24 16:38 linux-4.14.y 9d5c0b3a8e1a faae2fda .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/24 09:40 linux-4.14.y 9d5c0b3a8e1a faae2fda .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/23 05:18 linux-4.14.y 9d5c0b3a8e1a c0b80a55 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/22 05:18 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/22 03:52 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/21 17:17 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/21 15:24 linux-4.14.y 9d5c0b3a8e1a 63e790dd .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/20 18:33 linux-4.14.y 9d5c0b3a8e1a b31320fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/20 11:38 linux-4.14.y 9d5c0b3a8e1a b31320fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/20 01:56 linux-4.14.y 9d5c0b3a8e1a b31320fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/19 12:00 linux-4.14.y 9d5c0b3a8e1a b31320fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/19 09:20 linux-4.14.y 9d5c0b3a8e1a b31320fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/19 08:08 linux-4.14.y 9d5c0b3a8e1a b31320fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/18 04:10 linux-4.14.y 9d5c0b3a8e1a 94744d21 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/16 16:55 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/16 08:02 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/16 01:10 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/15 15:13 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/15 10:58 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/15 02:24 linux-4.14.y 9d5c0b3a8e1a 67cb024c .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/14 17:02 linux-4.14.y 9d5c0b3a8e1a 4954e4b2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/14 05:37 linux-4.14.y 9d5c0b3a8e1a 4954e4b2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/12 01:53 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/11 21:51 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/11 19:50 linux-4.14.y 9d5c0b3a8e1a 02b6492e .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/10 21:19 linux-4.14.y 9d5c0b3a8e1a 5bcf0c31 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/10 15:53 linux-4.14.y 9d5c0b3a8e1a 5bcf0c31 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/08 07:49 linux-4.14.y 9d5c0b3a8e1a aea5da89 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/07 09:57 linux-4.14.y 9d5c0b3a8e1a 79a59635 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/06 05:19 linux-4.14.y 9d5c0b3a8e1a 2c6543ad .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/05 11:30 linux-4.14.y 9d5c0b3a8e1a 267e3bb1 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/10/02 11:50 linux-4.14.y 9d5c0b3a8e1a feb56351 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2021/01/17 11:11 linux-4.14.y f79dc86058bc 813be542 .config log report info
ci2-linux-4-14 2020/09/15 10:38 linux-4.14.y cbfa1702aaf6 9e681632 .config log report info
* Struck through repros no longer work on HEAD.