WARNING in f2fs_is_valid_blkaddr

28 views
Skip to first unread message

syzbot

unread,
Sep 15, 2020, 6:39:22 AM9/15/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=11336501900000
kernel config: https://syzkaller.appspot.com/x/.config?x=3990958d85b55e59
dashboard link: https://syzkaller.appspot.com/bug?extid=f60430d3b59b96ca59fb
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f60430...@syzkaller.appspotmail.com

BTRFS info (device loop4): disk space caching is enabled
BTRFS info (device loop4): has skinny extents
BTRFS info (device loop4): flagging fs with big metadata feature
------------[ cut here ]------------
WARNING: CPU: 0 PID: 2044 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: 0 PID: 2044 Comm: syz-executor.1 Not tainted 4.14.198-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/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x4b kernel/panic.c:547
report_bug+0x208/0x249 lib/bug.c:186
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:ffff888085ecfa00 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: ffff88808473a300 RCX: ffffc90005abe000
RDX: 0000000000040000 RSI: ffffffff82b0e1ee RDI: 0000000000000001
RBP: 0000000000000005 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000069003800
R13: ffff88809cc866c0 R14: 0000000000000009 R15: 0000000000000200
__written_first_block fs/f2fs/inode.c:72 [inline]
do_read_inode fs/f2fs/inode.c:313 [inline]
f2fs_iget+0x11b0/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:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x46004a
RSP: 002b:00007f544dca4a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f544dca4b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f544dca4ae0
RBP: 00007f544dca4ae0 R08: 00007f544dca4b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020012400
Kernel Offset: disabled
Rebooting in 86400 seconds..


---
This report is generated by a bot. It may contain errors.
See https://goo.gl/tpsmEJ for more information about syzbot.
syzbot engineers can be reached at syzk...@googlegroups.com.

syzbot will keep track of this issue. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Sep 15, 2020, 3:01:19 PM9/15/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: cbfa1702 Linux 4.14.198
git tree: linux-4.14.y
console output: https://syzkaller.appspot.com/x/log.txt?x=13236555900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1735341d900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=106d2511900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+f60430...@syzkaller.appspotmail.com

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:16401
------------[ cut here ]------------
WARNING: CPU: 0 PID: 6345 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: 0 PID: 6345 Comm: syz-executor129 Not tainted 4.14.198-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/0x283 lib/dump_stack.c:58
panic+0x1f9/0x42d kernel/panic.c:183
__warn.cold+0x20/0x4b kernel/panic.c:547
report_bug+0x208/0x249 lib/bug.c:186
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:ffff888086c07a00 EFLAGS: 00010282
RAX: dffffc0000000000 RBX: ffff88809797a900 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff86ac12c0 RDI: ffffed1010d80f1a
RBP: 0000000000000005 R08: 000000000000002d R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000004011
R13: ffff8880a8f173c0 R14: 0000000000000009 R15: 0000000000000200
__written_first_block fs/f2fs/inode.c:72 [inline]
do_read_inode fs/f2fs/inode.c:313 [inline]
f2fs_iget+0x11b0/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:2549 [inline]
do_mount+0xe53/0x2a00 fs/namespace.c:2879
SYSC_mount fs/namespace.c:3095 [inline]
SyS_mount+0xa8/0x120 fs/namespace.c:3072
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x46/0xbb
RIP: 0033:0x44765a
RSP: 002b:00007fff8155fbb8 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fff8155fc10 RCX: 000000000044765a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fff8155fbd0
RBP: 00007fff8155fbd0 R08: 00007fff8155fc10 R09: 00007fff00000015
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000024
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003

syzbot

unread,
Sep 21, 2020, 1:33:20 PM9/21/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 015e94d0 Linux 4.19.146
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1723c8d3900000
kernel config: https://syzkaller.appspot.com/x/.config?x=243dd74ad58a8a57
dashboard link: https://syzkaller.appspot.com/bug?extid=b259e679db0095a9fa0c
compiler: gcc (GCC) 10.1.0-syz 20200507

Unfortunately, I don't have any reproducer for this issue yet.

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b259e6...@syzkaller.appspotmail.com

------------[ cut here ]------------
WARNING: CPU: 0 PID: 22463 at fs/f2fs/checkpoint.c:166 f2fs_is_valid_blkaddr+0x5bd/0xa90 fs/f2fs/checkpoint.c:166
Kernel panic - not syncing: panic_on_warn set ...

CPU: 0 PID: 22463 Comm: syz-executor.3 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
panic+0x2ac/0x565 kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1e1/0x330 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:f2fs_is_valid_blkaddr+0x5bd/0xa90 fs/f2fs/checkpoint.c:166
Code: 90 04 00 00 48 8b 7d 00 44 89 e1 48 c7 c2 80 ce 47 88 48 c7 c6 a0 cb 47 88 e8 0f d8 fd ff 48 c7 c7 c0 ce 47 88 e8 82 f0 23 fe <0f> 0b 45 31 e4 e9 e3 fb ff ff e8 44 75 3a fe 48 8d bd 5c 0d 00 00
RSP: 0018:ffff8880491cf720 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000005 RCX: 0000000000000000
RDX: 0000000000040000 RSI: ffffffff815b523f RDI: ffffed1009239ed6
RBP: ffff88804f21d240 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000001400 R14: 0000000000004000 R15: ffff88804f21d380
f2fs_submit_page_bio+0x19a/0x15e0 fs/f2fs/data.c:450
read_node_page+0x496/0x660 fs/f2fs/node.c:1303
__get_node_page.part.0+0x9b/0x1540 fs/f2fs/node.c:1348
__get_node_page fs/f2fs/node.c:38 [inline]
f2fs_get_node_page+0x109/0x1a0 fs/f2fs/node.c:1394
do_read_inode fs/f2fs/inode.c:306 [inline]
f2fs_iget+0x22a/0x4e90 fs/f2fs/inode.c:439
f2fs_fill_super+0x243d/0x7920 fs/f2fs/super.c:3056
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x46004a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd 89 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007fccd3ce0a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fccd3ce0b20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fccd3ce0ae0
RBP: 00007fccd3ce0ae0 R08: 00007fccd3ce0b20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020014b00
Kernel Offset: disabled
Rebooting in 86400 seconds..


syzbot

unread,
Sep 21, 2020, 2:12:22 PM9/21/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 015e94d0 Linux 4.19.146
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=14f9f8ad900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=15a546c5900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=147797b5900000

IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by: syzbot+b259e6...@syzkaller.appspotmail.com

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: 6494 at fs/f2fs/checkpoint.c:166 f2fs_is_valid_blkaddr+0x5bd/0xa90 fs/f2fs/checkpoint.c:166
Kernel panic - not syncing: panic_on_warn set ...

CPU: 1 PID: 6494 Comm: syz-executor159 Not tainted 4.19.146-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x22c/0x33e lib/dump_stack.c:118
panic+0x2ac/0x565 kernel/panic.c:186
__warn.cold+0x20/0x5a kernel/panic.c:541
report_bug+0x262/0x2b0 lib/bug.c:186
fixup_bug arch/x86/kernel/traps.c:178 [inline]
fixup_bug arch/x86/kernel/traps.c:173 [inline]
do_error_trap+0x1e1/0x330 arch/x86/kernel/traps.c:296
invalid_op+0x14/0x20 arch/x86/entry/entry_64.S:1038
RIP: 0010:f2fs_is_valid_blkaddr+0x5bd/0xa90 fs/f2fs/checkpoint.c:166
Code: 90 04 00 00 48 8b 7d 00 44 89 e1 48 c7 c2 80 ce 47 88 48 c7 c6 a0 cb 47 88 e8 0f d8 fd ff 48 c7 c7 c0 ce 47 88 e8 82 f0 23 fe <0f> 0b 45 31 e4 e9 e3 fb ff ff e8 44 75 3a fe 48 8d bd 5c 0d 00 00
RSP: 0018:ffff888089687720 EFLAGS: 00010286
RAX: 0000000000000024 RBX: 0000000000000005 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffffff815b523f RDI: ffffed10112d0ed6
RBP: ffff88808d194d00 R08: 0000000000000024 R09: 0000000000000000
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000001
R13: 0000000000001400 R14: 0000000000004000 R15: ffff88808d194e40
f2fs_submit_page_bio+0x19a/0x15e0 fs/f2fs/data.c:450
read_node_page+0x496/0x660 fs/f2fs/node.c:1303
__get_node_page.part.0+0x9b/0x1540 fs/f2fs/node.c:1348
__get_node_page fs/f2fs/node.c:38 [inline]
f2fs_get_node_page+0x109/0x1a0 fs/f2fs/node.c:1394
do_read_inode fs/f2fs/inode.c:306 [inline]
f2fs_iget+0x22a/0x4e90 fs/f2fs/inode.c:439
f2fs_fill_super+0x243d/0x7920 fs/f2fs/super.c:3056
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x318 fs/super.c:1261
vfs_kern_mount.part.0+0x68/0x470 fs/namespace.c:961
vfs_kern_mount fs/namespace.c:951 [inline]
do_new_mount fs/namespace.c:2469 [inline]
do_mount+0x51c/0x2f10 fs/namespace.c:2799
ksys_mount+0xcf/0x130 fs/namespace.c:3015
__do_sys_mount fs/namespace.c:3029 [inline]
__se_sys_mount fs/namespace.c:3026 [inline]
__x64_sys_mount+0xba/0x150 fs/namespace.c:3026
do_syscall_64+0xf9/0x670 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44714a
Code: b8 08 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 fd ad fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 49 89 ca b8 a5 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 da ad fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007ffe54fcaf38 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffe54fcaf90 RCX: 000000000044714a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffe54fcaf50
RBP: 00007ffe54fcaf50 R08: 00007ffe54fcaf90 R09: 00007ffe00000015
R10: 0000000000000000 R11: 0000000000000297 R12: 000000000000000f
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Reply all
Reply to author
Forward
0 new messages