kernel BUG in f2fs_get_meta_page_nofail

6 views
Skip to first unread message

syzbot

unread,
Jan 17, 2021, 5:43:26 PM1/17/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: c110fed0 Linux 4.19.168
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1566e410d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=ab04f4c73d0ab4a8
dashboard link: https://syzkaller.appspot.com/bug?extid=0d5378ee766889ee3cb6
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+0d5378...@syzkaller.appspotmail.com

attempt to access beyond end of device
loop3: rw=12288, want=20488, limit=16479
attempt to access beyond end of device
loop3: rw=12288, want=20488, limit=16479
------------[ cut here ]------------
kernel BUG at fs/f2fs/checkpoint.c:127!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 16851 Comm: syz-executor.3 Not tainted 4.19.168-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 0b 13 02 05 48 89 ef e8 83 a7 02 00 <0f> 0b e8 0c 16 84 fe eb 80 be 04 00 00 00 e8 f0 19 84 fe eb d1 0f
RSP: 0018:ffff8880473df8d0 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff8880a1b5ad80 RCX: ffffc9000c180000
RDX: 0000000000040000 RSI: ffffffff8313fa2d RDI: 0000000000000005
RBP: ffff8880b3659bc0 R08: ffffffff8cd1fbc0 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000286
R13: ffff8880b365a0b8 R14: 0000000000000000 R15: ffff8880b3659bc0
FS: 00007f2250072700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000560670449160 CR3: 00000000ab2f7000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__f2fs_build_free_nids+0x338/0x1020 fs/f2fs/node.c:2287
f2fs_build_free_nids fs/f2fs/node.c:2328 [inline]
f2fs_build_node_manager+0x24c5/0x31d0 fs/f2fs/node.c:3052
f2fs_fill_super+0x31fd/0x7050 fs/f2fs/super.c:3022
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x310 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:0x460c6a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 ad 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 8a 89 fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f2250071a78 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f2250071b10 RCX: 0000000000460c6a
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007f2250071ad0
RBP: 00007f2250071ad0 R08: 00007f2250071b10 R09: 0000000020000000
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000000
R13: 0000000020000100 R14: 0000000020000200 R15: 0000000020014b00
Modules linked in:
Bluetooth: hci1: command 0x0406 tx timeout
Bluetooth: hci2: command 0x0406 tx timeout
---[ end trace d9a25a0e27b7df82 ]---
RIP: 0010:f2fs_get_meta_page_nofail+0x12d/0x150 fs/f2fs/checkpoint.c:127
Bluetooth: hci3: command 0x0406 tx timeout
Bluetooth: hci5: command 0x0406 tx timeout
Bluetooth: hci4: command 0x0406 tx timeout
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 0b 13 02 05 48 89 ef e8 83 a7 02 00 <0f> 0b e8 0c 16 84 fe eb 80 be 04 00 00 00 e8 f0 19 84 fe eb d1 0f
RSP: 0018:ffff8880473df8d0 EFLAGS: 00010246
RAX: 0000000000040000 RBX: ffff8880a1b5ad80 RCX: ffffc9000c180000
RDX: 0000000000040000 RSI: ffffffff8313fa2d RDI: 0000000000000005
RBP: ffff8880b3659bc0 R08: ffffffff8cd1fbc0 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000286
R13: ffff8880b365a0b8 R14: 0000000000000000 R15: ffff8880b3659bc0
FS: 00007f2250072700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000119c020 CR3: 00000000ab2f7000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
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,
Jan 17, 2021, 6:07:25 PM1/17/21
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: c110fed0 Linux 4.19.168
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1237be20d00000
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=13bd75d0d00000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=125f0f14d00000

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

attempt to access beyond end of device
loop0: rw=12288, want=20488, limit=16479
attempt to access beyond end of device
loop0: rw=12288, want=20488, limit=16479
------------[ cut here ]------------
kernel BUG at fs/f2fs/checkpoint.c:127!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8120 Comm: syz-executor481 Not tainted 4.19.168-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 0b 13 02 05 48 89 ef e8 83 a7 02 00 <0f> 0b e8 0c 16 84 fe eb 80 be 04 00 00 00 e8 f0 19 84 fe eb d1 0f
RSP: 0018:ffff8880b0c3f8d0 EFLAGS: 00010293
RAX: ffff8880911fe440 RBX: ffff888094caa4c0 RCX: ffffffff83168141
RDX: 0000000000000000 RSI: ffffffff8313fa2d RDI: 0000000000000005
RBP: ffff888095f89140 R08: ffffffff8cd40820 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000286
R13: ffff888095f89638 R14: 0000000000000000 R15: ffff888095f89140
FS: 0000000002308880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f27ae9d5020 CR3: 000000009c24e000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
__f2fs_build_free_nids+0x338/0x1020 fs/f2fs/node.c:2287
f2fs_build_free_nids fs/f2fs/node.c:2328 [inline]
f2fs_build_node_manager+0x24c5/0x31d0 fs/f2fs/node.c:3052
f2fs_fill_super+0x31fd/0x7050 fs/f2fs/super.c:3022
mount_bdev+0x2fc/0x3b0 fs/super.c:1158
mount_fs+0xa3/0x310 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:0x4470ca
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:00007ffeb4c35d38 EFLAGS: 00000297 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007ffeb4c35d90 RCX: 00000000004470ca
RDX: 0000000020000000 RSI: 0000000020000100 RDI: 00007ffeb4c35d50
RBP: 00007ffeb4c35d50 R08: 00007ffeb4c35d90 R09: 00007ffe00000015
R10: 0000000000000000 R11: 0000000000000297 R12: 000000000000000e
R13: 0000000000000004 R14: 0000000000000003 R15: 0000000000000003
Modules linked in:
---[ end trace 504b76a3de45e2ca ]---
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 0b 13 02 05 48 89 ef e8 83 a7 02 00 <0f> 0b e8 0c 16 84 fe eb 80 be 04 00 00 00 e8 f0 19 84 fe eb d1 0f
RSP: 0018:ffff8880b0c3f8d0 EFLAGS: 00010293
RAX: ffff8880911fe440 RBX: ffff888094caa4c0 RCX: ffffffff83168141
RDX: 0000000000000000 RSI: ffffffff8313fa2d RDI: 0000000000000005
RBP: ffff888095f89140 R08: ffffffff8cd40820 R09: 0000000000000001
R10: 0000000000000005 R11: 0000000000000001 R12: 0000000000000286
R13: ffff888095f89638 R14: 0000000000000000 R15: ffff888095f89140
FS: 0000000002308880(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f27ae9d5020 CR3: 000000009c24e000 CR4: 00000000001406e0
Reply all
Reply to author
Forward
0 new messages