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

11 views
Skip to first unread message

syzbot

unread,
Sep 15, 2020, 4:19:16 AM9/15/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: a87f9628 Linux 4.19.145
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=108646fd900000
kernel config: https://syzkaller.appspot.com/x/.config?x=6c1d3a90df2d2f09
dashboard link: https://syzkaller.appspot.com/bug?extid=12dd46421e9fd572ebf3
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+12dd46...@syzkaller.appspotmail.com

loop3: rw=12288, want=12296, limit=8287
XFS (loop4): Invalid superblock magic number
attempt to access beyond end of device
loop3: rw=12288, want=12296, limit=8287
------------[ cut here ]------------
kernel BUG at fs/f2fs/checkpoint.c:127!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 9807 Comm: syz-executor.3 Not tainted 4.19.145-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:f2fs_get_meta_page_nofail+0x12d/0x150 fs/f2fs/checkpoint.c:127
Code: e0 07 38 c2 0f 9e c1 84 d2 0f 95 c0 84 c1 75 23 83 8b 84 00 00 00 08 4c 89 e6 4c 89 ef e8 eb 2a 3f 04 48 89 ef e8 93 a2 02 00 <0f> 0b e8 1c 38 a0 fe eb 80 be 04 00 00 00 e8 00 3c a0 fe eb d1 0f
RSP: 0018:ffff88805ca37880 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff8880a78701c0 RCX: ffffc9001310c000
RDX: 0000000000040000 RSI: ffffffff82ffa2dd RDI: 0000000000000005
RBP: ffff8880a4cd0f40 R08: ffffffff8b42bc08 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000282
R13: ffff8880a4cd1438 R14: 0000000000000080 R15: dffffc0000000000
FS: 00007f178aadd700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fe540ac0000 CR3: 0000000091729000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
get_current_sit_page fs/f2fs/segment.c:3524 [inline]
build_sit_entries fs/f2fs/segment.c:3935 [inline]
f2fs_build_segment_manager+0x5ea5/0xac60 fs/f2fs/segment.c:4230
f2fs_fill_super+0x31d9/0x7050 fs/f2fs/super.c:3016
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x30c 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+0x113c/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/0x620 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:00007f178aadca88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f178aadcb20 RCX: 000000000046004a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f178aadcae0
RBP: 00007f178aadcae0 R08: 00007f178aadcb20 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020012400
Modules linked in:
---[ end trace 9400b6a175d5d41c ]---
RIP: 0010:f2fs_get_meta_page_nofail+0x12d/0x150 fs/f2fs/checkpoint.c:127
Code: e0 07 38 c2 0f 9e c1 84 d2 0f 95 c0 84 c1 75 23 83 8b 84 00 00 00 08 4c 89 e6 4c 89 ef e8 eb 2a 3f 04 48 89 ef e8 93 a2 02 00 <0f> 0b e8 1c 38 a0 fe eb 80 be 04 00 00 00 e8 00 3c a0 fe eb d1 0f
RSP: 0018:ffff88805ca37880 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff8880a78701c0 RCX: ffffc9001310c000
RDX: 0000000000040000 RSI: ffffffff82ffa2dd RDI: 0000000000000005
RBP: ffff8880a4cd0f40 R08: ffffffff8b42bc08 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000000 R12: 0000000000000282
R13: ffff8880a4cd1438 R14: 0000000000000080 R15: dffffc0000000000
FS: 00007f178aadd700(0000) GS:ffff8880ae600000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f5b73865000 CR3: 0000000091729000 CR4: 00000000001426f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600


---
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, 9:52:28 AM9/15/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: a87f9628 Linux 4.19.145
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=12c1b653900000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13228b43900000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=13025dfd900000

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

attempt to access beyond end of device
loop0: rw=12288, want=12296, limit=8287
attempt to access beyond end of device
loop0: rw=12288, want=12296, limit=8287
------------[ cut here ]------------
kernel BUG at fs/f2fs/checkpoint.c:127!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 6486 Comm: syz-executor305 Not tainted 4.19.145-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:f2fs_get_meta_page_nofail+0x12d/0x150 fs/f2fs/checkpoint.c:127
Code: e0 07 38 c2 0f 9e c1 84 d2 0f 95 c0 84 c1 75 23 83 8b 84 00 00 00 08 4c 89 e6 4c 89 ef e8 eb 2a 3f 04 48 89 ef e8 93 a2 02 00 <0f> 0b e8 1c 38 a0 fe eb 80 be 04 00 00 00 e8 00 3c a0 fe eb d1 0f
RSP: 0018:ffff888085f9f880 EFLAGS: 00010293
RAX: ffff888084a84380 RBX: ffff8880a4e6ca40 RCX: ffffffff83022501
RDX: 0000000000000000 RSI: ffffffff82ffa2dd RDI: 0000000000000005
RBP: ffff888084af9080 R08: ffffffff8b40f6d8 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000282
R13: ffff888084af9578 R14: 0000000000000080 R15: dffffc0000000000
FS: 0000000001ce7880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043ed10 CR3: 00000000905ef000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
get_current_sit_page fs/f2fs/segment.c:3524 [inline]
build_sit_entries fs/f2fs/segment.c:3935 [inline]
f2fs_build_segment_manager+0x5ea5/0xac60 fs/f2fs/segment.c:4230
f2fs_fill_super+0x31d9/0x7050 fs/f2fs/super.c:3016
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x30c 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+0x113c/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/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x446efa
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:00007ffc4120a498 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffc4120a4f0 RCX: 0000000000446efa
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffc4120a4b0
RBP: 00007ffc4120a4b0 R08: 00007ffc4120a4f0 R09: 00007ffc00000015
R10: 0000000000000000 R11: 0000000000000297 R12: 0000000000000005
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Modules linked in:
---[ end trace bbd012cd30816666 ]---
RIP: 0010:f2fs_get_meta_page_nofail+0x12d/0x150 fs/f2fs/checkpoint.c:127
Code: e0 07 38 c2 0f 9e c1 84 d2 0f 95 c0 84 c1 75 23 83 8b 84 00 00 00 08 4c 89 e6 4c 89 ef e8 eb 2a 3f 04 48 89 ef e8 93 a2 02 00 <0f> 0b e8 1c 38 a0 fe eb 80 be 04 00 00 00 e8 00 3c a0 fe eb d1 0f
RSP: 0018:ffff888085f9f880 EFLAGS: 00010293
RAX: ffff888084a84380 RBX: ffff8880a4e6ca40 RCX: ffffffff83022501
RDX: 0000000000000000 RSI: ffffffff82ffa2dd RDI: 0000000000000005
RBP: ffff888084af9080 R08: ffffffff8b40f6d8 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000282
R13: ffff888084af9578 R14: 0000000000000080 R15: dffffc0000000000
FS: 0000000001ce7880(0000) GS:ffff8880ae700000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043ed10 CR3: 00000000905ef000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Reply all
Reply to author
Forward
0 new messages