kernel BUG at fs/f2fs/node.c:LINE!

16 views
Skip to first unread message

syzbot

unread,
Sep 23, 2020, 5:54:22 AM9/23/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=117c4b07900000
kernel config: https://syzkaller.appspot.com/x/.config?x=3990958d85b55e59
dashboard link: https://syzkaller.appspot.com/bug?extid=255273ac0964bf0423f2
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+255273...@syzkaller.appspotmail.com

F2FS-fs (loop4): Magic Mismatch, valid(0xf2f52010) - read(0x0)
F2FS-fs (loop4): Can't find valid F2FS filesystem in 2th superblock
F2FS-fs (loop4): invalid crc value
F2FS-fs (loop4): Found nat_bits in checkpoint
------------[ cut here ]------------
kernel BUG at fs/f2fs/node.c:1031!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 19835 Comm: syz-executor.4 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff8880a982c140 task.stack: ffff88808ec20000
RIP: 0010:remove_inode_page+0x578/0x610 fs/f2fs/node.c:1031
RSP: 0018:ffff88808ec27918 EFLAGS: 00010246
RAX: 0000000000040000 RBX: 1ffff11011d84f23 RCX: ffffc90009909000
RDX: 0000000000040000 RSI: ffffffff82b6da58 RDI: ffff88805449f8c0
RBP: ffff88805449f7f0 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000000000 R11: ffff8880a982c140 R12: 0000000000000000
R13: ffff88808ec27948 R14: 0000000000006000 R15: dffffc0000000000
FS: 00007fa4a380c700(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000768000 CR3: 00000000a7f07000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
f2fs_evict_inode+0xc2e/0x1070 fs/f2fs/inode.c:576
evict+0x2c8/0x700 fs/inode.c:555
iput_final fs/inode.c:1524 [inline]
iput+0x458/0x7e0 fs/inode.c:1551
f2fs_fill_super+0x4084/0x56a0 fs/f2fs/super.c:2629
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:0x460bca
RSP: 002b:00007fa4a380ba88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007fa4a380bb20 RCX: 0000000000460bca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007fa4a380bae0
RBP: 00007fa4a380bae0 R08: 00007fa4a380bb20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020000040
Code: 0f 0b e8 dc bc a4 fe 49 8d 6d ff e9 0f fd ff ff e8 ce bc a4 fe 48 c7 c6 60 f6 db 86 48 89 ef e8 5f 0b c3 fe 0f 0b e8 b8 bc a4 fe <0f> 0b e8 f1 8f ce fe e9 f2 fa ff ff e8 e7 8f ce fe e9 d0 fc ff
RIP: remove_inode_page+0x578/0x610 fs/f2fs/node.c:1031 RSP: ffff88808ec27918
---[ end trace 780d76f7b09ae826 ]---
print_req_error: I/O error, dev loop2, sector 0


---
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 23, 2020, 6:18:16 AM9/23/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=12209e73900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=12034173900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=106b8009900000

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

audit: type=1400 audit(1600856169.820:8): avc: denied { execmem } for pid=6354 comm="syz-executor404" scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=process permissive=1
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
------------[ cut here ]------------
kernel BUG at fs/f2fs/node.c:1031!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
Modules linked in:
CPU: 1 PID: 6354 Comm: syz-executor404 Not tainted 4.14.198-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
task: ffff888085db6480 task.stack: ffff888097f08000
RIP: 0010:remove_inode_page+0x578/0x610 fs/f2fs/node.c:1031
RSP: 0018:ffff888097f0f918 EFLAGS: 00010297
RAX: ffff888085db6480 RBX: 1ffff11012fe1f23 RCX: 0000000000000000
RDX: 0000000000000000 RSI: ffffea0002a31080 RDI: ffff888082a9c8c0
RBP: ffff888082a9c7f0 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000000000 R11: ffff888085db6480 R12: 0000000000000000
R13: ffff888097f0f948 R14: 0000000000006000 R15: dffffc0000000000
FS: 0000000002492880(0000) GS:ffff8880aeb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f7e7872e000 CR3: 00000000a57b9000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
f2fs_evict_inode+0xc2e/0x1070 fs/f2fs/inode.c:576
evict+0x2c8/0x700 fs/inode.c:555
iput_final fs/inode.c:1524 [inline]
iput+0x458/0x7e0 fs/inode.c:1551
f2fs_fill_super+0x4084/0x56a0 fs/f2fs/super.c:2629
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:0x4471fa
RSP: 002b:00007ffdf44a2a38 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffdf44a2a90 RCX: 00000000004471fa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffdf44a2a50
RBP: 00007ffdf44a2a50 R08: 00007ffdf44a2a90 R09: 00007ffd00000015
R10: 0000000000000000 R11: 0000000000000297 R12: 000000000000000f
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Code: 0f 0b e8 dc bc a4 fe 49 8d 6d ff e9 0f fd ff ff e8 ce bc a4 fe 48 c7 c6 60 f6 db 86 48 89 ef e8 5f 0b c3 fe 0f 0b e8 b8 bc a4 fe <0f> 0b e8 f1 8f ce fe e9 f2 fa ff ff e8 e7 8f ce fe e9 d0 fc ff
RIP: remove_inode_page+0x578/0x610 fs/f2fs/node.c:1031 RSP: ffff888097f0f918
---[ end trace 94b6df8d860872dc ]---

Reply all
Reply to author
Forward
0 new messages