syzbot


WARNING in f2fs_is_valid_blkaddr

Status: upstream: reported C repro on 2020/09/21 09:51
Reported-by: syzbot+763ae12a2ede1d99d4dc@syzkaller.appspotmail.com
Fix commit: dc2f78e2d4cc f2fs: remove WARN_ON in f2fs_is_valid_blkaddr
Patched on: [ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-leak ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-kmsan-gce ci-upstream-kmsan-gce-386 ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-riscv64]
First crash: 652d, last: 33d

Cause bisection: the issue happens on the oldest tested release (bisect log)
Crash: WARNING in sysfs_warn_dup (log)
Repro: C syz .config
similar bugs (2):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.19 WARNING in f2fs_is_valid_blkaddr C 1564 16h24m 651d 0/1 upstream: reported C repro on 2020/09/21 17:33
linux-4.14 WARNING in f2fs_is_valid_blkaddr C 704 1h52m 657d 0/1 upstream: reported C repro on 2020/09/15 10:39
Patch testing requests:
Created Duration User Patch Repo Result
2022/04/15 13:21 8m mudongliangabcd@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git -- OK
2022/04/08 03:22 11m mudongliangabcd@gmail.com patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git -- OK
2021/03/11 19:33 9m mail@anirudhrb.com upstream report log

Sample crash report:
F2FS-fs (loop0): Can't find valid F2FS filesystem in 2th superblock
F2FS-fs (loop0): invalid crc_offset: 0
F2FS-fs (loop0): Disable nat_bits due to incorrect cp_ver (2180456663747935446, 0)
F2FS-fs (loop0): access invalid blkaddr:1
------------[ cut here ]------------
WARNING: CPU: 1 PID: 3605 at fs/f2fs/checkpoint.c:199 arch_set_bit include/linux/instrumented.h:86 [inline]
WARNING: CPU: 1 PID: 3605 at fs/f2fs/checkpoint.c:199 set_bit include/asm-generic/bitops/instrumented-atomic.h:29 [inline]
WARNING: CPU: 1 PID: 3605 at fs/f2fs/checkpoint.c:199 set_sbi_flag fs/f2fs/f2fs.h:2046 [inline]
WARNING: CPU: 1 PID: 3605 at fs/f2fs/checkpoint.c:199 f2fs_is_valid_blkaddr+0xc2c/0x11f0 fs/f2fs/checkpoint.c:198
Modules linked in:
CPU: 1 PID: 3605 Comm: syz-executor118 Not tainted 5.18.0-syzkaller-00161-g1e57930e9f40 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:f2fs_is_valid_blkaddr+0xc2c/0x11f0 fs/f2fs/checkpoint.c:199
Code: c6 20 34 dd 8a 8b 54 24 04 31 c0 e8 2e c4 fc ff 49 8d bd b8 00 00 00 be 08 00 00 00 e8 bd 52 12 fe f0 41 80 8d b8 00 00 00 04 <0f> 0b e9 b0 fc ff ff e8 e8 68 c1 fd 31 db e9 a4 fc ff ff e8 dc 68
RSP: 0018:ffffc90002fcf480 EFLAGS: 00010206
RAX: f962e36f077dbd01 RBX: 0000000000000000 RCX: ffffffff83c4ce23
RDX: 0000000000000001 RSI: 0000000000000008 RDI: ffff888076ebc0b8
RBP: 0000000000001400 R08: dffffc0000000000 R09: ffffed100edd7818
R10: ffffed100edd7818 R11: 1ffff1100edd7817 R12: 1ffff1100edd79a8
R13: ffff888076ebc000 R14: 0000000000000007 R15: ffff888079fbe0bf
FS:  000055555578b300(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000562192a01b98 CR3: 000000002102a000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 f2fs_get_node_info+0x8fc/0x1720 fs/f2fs/node.c:613
 read_node_page+0x29a/0xeb0 fs/f2fs/node.c:1356
 __get_node_page+0x417/0x11b0 fs/f2fs/node.c:1417
 do_read_inode fs/f2fs/inode.c:350 [inline]
 f2fs_iget+0x702/0x4940 fs/f2fs/inode.c:506
 f2fs_fill_super+0x6bd0/0x84c0 fs/f2fs/super.c:4245
 mount_bdev+0x26c/0x3a0 fs/super.c:1367
 legacy_get_tree+0xea/0x180 fs/fs_context.c:610
 vfs_get_tree+0x88/0x270 fs/super.c:1497
 do_new_mount+0x289/0xad0 fs/namespace.c:3040
 do_mount fs/namespace.c:3383 [inline]
 __do_sys_mount fs/namespace.c:3591 [inline]
 __se_sys_mount+0x2e3/0x3d0 fs/namespace.c:3568
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x2b/0x70 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x44/0xae
RIP: 0033:0x7ff4faece9fa
Code: 83 c4 08 5b 5d c3 66 2e 0f 1f 84 00 00 00 00 00 c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 49 89 ca b8 a5 00 00 00 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:00007fff47e75e78 EFLAGS: 00000286 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff47e75ed0 RCX: 00007ff4faece9fa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff47e75e90
RBP: 00007fff47e75e90 R08: 00007fff47e75ed0 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000286 R12: 0000000020000650
R13: 0000000000000003 R14: 0000000000000004 R15: 000000000000002e
 </TASK>

Crashes (2562):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci-upstream-kasan-gce-smack-root 2022/05/24 07:32 upstream 1e57930e9f40 e7f9308d .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/05/17 03:43 upstream 42226c989789 744a39e2 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/04/13 16:36 upstream a19944809fe9 faabdb86 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/03/27 15:55 upstream f022814633e1 89bc8608 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/03/14 23:05 upstream 09688c0166e7 9e8eaa75 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/02/21 07:09 upstream 7f25f0412c9e 3cd800e4 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/02/11 11:19 upstream f1baf68e1383 0b33604d .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-linux-next-kasan-gce-root 2022/03/03 14:04 linux-next 91265a6da44d 45a13a73 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-linux-next-kasan-gce-root 2022/02/19 10:57 linux-next ef6b35306dd8 3cd800e4 .config log report syz C WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2020/11/06 01:48 upstream 521b619acdc8 64069d48 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/10/09 15:37 upstream 583090b1b823 d81b165e .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/10/03 11:37 upstream d3d45f8220d6 2653fa43 .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/10/02 10:26 upstream fcadab740480 9602ddf4 .config log report syz C
ci-upstream-kasan-gce-root 2020/09/30 18:08 upstream 02de58b24d2e 8516f6d3 .config log report syz C
ci-upstream-kasan-gce-smack-root 2020/09/24 03:17 upstream 805c6d3c1921 287cd75a .config log report syz C
ci-upstream-kasan-gce-selinux-root 2020/09/20 17:33 upstream 325d0eab4f31 9564d2e9 .config log report syz C
ci-upstream-linux-next-kasan-gce-root 2020/11/01 04:26 linux-next 4e78c578cb98 8bc4594f .config log report syz C
ci-upstream-kasan-gce-root 2022/06/01 04:06 upstream 2a5699b0de4e 3666edfe .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/06/01 04:05 upstream 2a5699b0de4e 3666edfe .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/31 17:30 upstream 8ab2afa23bd1 af70c3a9 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/30 15:09 upstream b00ed48bb0a7 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/05/30 13:35 upstream b00ed48bb0a7 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/05/30 03:58 upstream b00ed48bb0a7 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/30 02:12 upstream b00ed48bb0a7 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/29 20:15 upstream 664a393a2663 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/29 13:14 upstream 664a393a2663 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream 2022/05/29 09:31 upstream 664a393a2663 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream 2022/05/28 18:54 upstream 9d004b2f4fea a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/28 16:23 upstream 9d004b2f4fea a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/27 01:10 upstream babf0bb978e3 3037caa9 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/25 04:58 upstream aa051d36ce4a 647c0e27 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/25 04:57 upstream aa051d36ce4a 647c0e27 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/05/24 06:32 upstream 1e57930e9f40 e7f9308d .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/23 17:19 upstream 4b0986a3613c 4c7657cb .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/05/23 11:32 upstream 4b0986a3613c 4c7657cb .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/23 08:54 upstream 4b0986a3613c 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/23 06:57 upstream 4b0986a3613c 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/23 00:53 upstream eaea45fc0e7b 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream 2022/05/22 12:25 upstream eaea45fc0e7b 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/21 14:51 upstream 3b5e1590a267 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/21 10:37 upstream 3b5e1590a267 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream 2022/05/20 05:16 upstream b015dcd62b86 cb1ac2e7 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/20 04:15 upstream b015dcd62b86 cb1ac2e7 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/19 17:18 upstream f993aed406ea 50c53f39 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream 2022/05/19 03:01 upstream ef1302160bfb 50c53f39 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/05/19 01:18 upstream ef1302160bfb 50c53f39 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2022/05/18 09:41 upstream 210e04ff7681 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/18 08:18 upstream 210e04ff7681 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/17 22:25 upstream 42226c989789 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream 2022/05/17 09:31 upstream 42226c989789 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/17 09:31 upstream 42226c989789 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream 2022/05/17 06:13 upstream 42226c989789 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/17 01:11 upstream 42226c989789 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-selinux-root 2022/05/16 10:07 upstream 42226c989789 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/15 22:07 upstream bc403203d65a 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-smack-root 2022/05/15 17:08 upstream bc403203d65a 744a39e2 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream-386 2022/05/30 00:24 upstream c3a9a3c5f559 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream-386 2022/05/29 23:19 upstream c3a9a3c5f559 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream-386 2022/05/29 03:29 upstream 664a393a2663 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream-386 2022/05/28 08:10 upstream 8291eaafed36 a46af346 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream-386 2022/05/26 01:19 upstream fdaf9a5840ac 3037caa9 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream-386 2022/05/21 16:36 upstream 3b5e1590a267 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu-upstream-386 2022/05/21 16:36 upstream 3b5e1590a267 7268fa62 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu2-arm32 2021/03/10 02:24 upstream 05a59d79793d 26967e35 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu2-arm64-mte 2021/03/07 09:41 upstream a38fd8748464 c599ed12 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu2-arm64 2021/02/23 21:25 upstream 3b9cdafb5358 fcc6d71b .config log report info WARNING in f2fs_is_valid_blkaddr
ci-qemu2-arm64-compat 2021/02/06 02:08 upstream 17fbcdf9f163 23a562df .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-linux-next-kasan-gce-root 2022/04/18 18:52 linux-next 40354149f4d7 8bcc32a6 .config log report info WARNING in f2fs_is_valid_blkaddr
ci-upstream-kasan-gce-root 2021/01/16 18:24 upstream 1d94330a437a 65a7a854 .config log report info
ci-qemu-upstream 2020/09/20 03:09 upstream 325d0eab4f31 53ce8104 .config log report info