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: 614d, last: 1d05h
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
upstream WARNING in f2fs_is_valid_blkaddr C done 2507 10h06m 608d 1/22 upstream: reported C repro on 2020/09/21 09:51
linux-4.19 WARNING in f2fs_is_valid_blkaddr C 1499 4h30m 608d 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:1024
------------[ cut here ]------------
WARNING: CPU: 1 PID: 7964 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: 7964 Comm: syz-executor604 Not tainted 4.14.266-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
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:ffff8880937af820 EFLAGS: 00010286
RAX: dffffc0000000000 RBX: ffff888095884a40 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff878bbcc0 RDI: ffffed10126f5ede
RBP: 0000000000000005 R08: 000000000000002c R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000400
R13: 0000000000000001 R14: 0000000000001000 R15: 0000000000000200
 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/0x2a10 fs/namespace.c:2902
 SYSC_mount fs/namespace.c:3118 [inline]
 SyS_mount+0xa8/0x120 fs/namespace.c:3095
 do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
 entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x7f67fa609e1a
RSP: 002b:00007ffe95508088 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe955080e0 RCX: 00007f67fa609e1a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe955080a0
RBP: 00007ffe955080a0 R08: 00007ffe955080e0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 00000000200008f0
R13: 0000000000000003 R14: 0000000000000004 R15: 000000000000004a
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
Crashes (668):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
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/05/21 16:37 linux-4.14.y dffb5c6ff09c 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/05/19 09:48 linux-4.14.y dffb5c6ff09c 50c53f39 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/05/15 02:33 linux-4.14.y 569d1abf9402 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/05/13 07:38 linux-4.14.y 569d1abf9402 9ad6612a .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/05/11 13:35 linux-4.14.y e3a56aaade89 8d7b3b67 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/05/11 04:58 linux-4.14.y e3a56aaade89 8d7b3b67 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/05/03 22:58 linux-4.14.y e3a56aaade89 dc9e5259 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/29 08:53 linux-4.14.y e3a56aaade89 e9076525 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/28 09:28 linux-4.14.y e3a56aaade89 8a1f1f07 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/25 06:27 linux-4.14.y 15a1c6b6f516 131df97d .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/17 10:07 linux-4.14.y 74766a973637 8bcc32a6 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/15 23:33 linux-4.14.y 74766a973637 8bcc32a6 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/07 11:09 linux-4.14.y 74766a973637 53c67432 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/04 16:23 linux-4.14.y 74766a973637 5915c2cb .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/02 12:43 linux-4.14.y af1af6ebca0e 79a2a8fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/02 05:48 linux-4.14.y af1af6ebca0e 79a2a8fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/04/02 00:34 linux-4.14.y af1af6ebca0e 79a2a8fc .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/30 01:50 linux-4.14.y af1af6ebca0e 6bdac766 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/25 02:01 linux-4.14.y 004bfaafc45c 89bc8608 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/23 07:54 linux-4.14.y eb045674aab3 5ff41e94 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/21 21:02 linux-4.14.y eb045674aab3 e2d91b1d .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/20 17:54 linux-4.14.y eb045674aab3 e2d91b1d .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/16 23:26 linux-4.14.y eb045674aab3 46cc3b21 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/16 20:08 linux-4.14.y eb045674aab3 46cc3b21 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/15 13:34 linux-4.14.y af48f51cb593 9e8eaa75 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/15 12:29 linux-4.14.y af48f51cb593 9e8eaa75 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/14 06:05 linux-4.14.y af48f51cb593 9e8eaa75 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/13 22:27 linux-4.14.y af48f51cb593 9e8eaa75 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/11 17:50 linux-4.14.y af48f51cb593 9e8eaa75 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/09 20:22 linux-4.14.y c9fcc1545c3b 9e8eaa75 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/04 01:37 linux-4.14.y e853993d29aa 45a13a73 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/02 01:37 linux-4.14.y fa33f9094f36 45a13a73 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/03/01 00:23 linux-4.14.y fa33f9094f36 45a13a73 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/02/27 10:58 linux-4.14.y fa33f9094f36 45a13a73 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/02/25 17:03 linux-4.14.y fa33f9094f36 7c337266 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/02/21 22:38 linux-4.14.y a35d65bedfbc 6e821dbf .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/02/12 07:03 linux-4.14.y 8034e99d1a01 8b9ca619 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/02/09 08:34 linux-4.14.y 21ad423fe521 0b33604d .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/31 22:42 linux-4.14.y b86ee2b7ae42 6b7c57fe .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/31 02:34 linux-4.14.y b86ee2b7ae42 495e00c5 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/29 15:56 linux-4.14.y b86ee2b7ae42 495e00c5 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/27 22:06 linux-4.14.y bbb957e1bd4a 64a8e201 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/25 15:36 linux-4.14.y 4ba8e26127c3 2cbffd88 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/24 23:17 linux-4.14.y 4ba8e26127c3 2cbffd88 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/22 17:35 linux-4.14.y 4ba8e26127c3 214351e1 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/22 02:28 linux-4.14.y 4ba8e26127c3 214351e1 .config log report info WARNING in f2fs_is_valid_blkaddr
ci2-linux-4-14 2022/01/22 01:18 linux-4.14.y 4ba8e26127c3 214351e1 .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