kernel BUG at fs/buffer.c:LINE! (2)

11 views
Skip to first unread message

syzbot

unread,
Nov 21, 2020, 2:48:24 AM11/21/20
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2c746135 Linux 4.19.158
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=16ebd22e500000
kernel config: https://syzkaller.appspot.com/x/.config?x=c19abec6250dfe36
dashboard link: https://syzkaller.appspot.com/bug?extid=6b91ee7179cc5a01018d
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+6b91ee...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at fs/buffer.c:3049!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 31471 Comm: syz-executor.0 Not tainted 4.19.158-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:submit_bh_wbc+0x5e5/0x760 fs/buffer.c:3049
Code: 10 4c 8d 7b 20 48 89 44 24 08 e9 3e fc ff ff e8 01 21 b1 ff f0 80 63 01 f7 e9 4d fb ff ff e8 f2 20 b1 ff 0f 0b e8 eb 20 b1 ff <0f> 0b e8 e4 20 b1 ff 0f 0b e8 dd 20 b1 ff 0f 0b e8 d6 20 b1 ff 0f
RSP: 0018:ffff8880519d77c0 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff88804ac59e70 RCX: ffffc90005b2f000
overlayfs: './file0' not a directory
RDX: 00000000000350da RSI: ffffffff81b3af15 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f0e14845700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000118c000 CR3: 00000000a1a8d000 CR4: 00000000001426e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
submit_bh fs/buffer.c:3096 [inline]
__bread_slow fs/buffer.c:1176 [inline]
__bread_gfp+0x14e/0x300 fs/buffer.c:1369
sb_bread include/linux/buffer_head.h:309 [inline]
fat__get_entry+0x4f9/0x8e0 fs/fat/dir.c:101
fat_get_entry fs/fat/dir.c:129 [inline]
fat_get_short_entry+0x13f/0x2f0 fs/fat/dir.c:876
fat_subdirs+0xa5/0x180 fs/fat/dir.c:942
fat_read_root fs/fat/inode.c:1413 [inline]
fat_fill_super+0x1cc0/0x35a0 fs/fat/inode.c:1847
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:0x46090a
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:00007f0e14844a88 EFLAGS: 00000202 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f0e14844b20 RCX: 000000000046090a
RDX: 0000000020000040 RSI: 00000000200003c0 RDI: 00007f0e14844ae0
RBP: 00007f0e14844ae0 R08: 00007f0e14844b20 R09: 0000000020000040
R10: 0000000000000000 R11: 0000000000000202 R12: 0000000020000040
R13: 00000000200003c0 R14: 0000000020000080 R15: 00000000200004c0
Modules linked in:
---[ end trace ca4d30ed17fa0a5f ]---
RIP: 0010:submit_bh_wbc+0x5e5/0x760 fs/buffer.c:3049
Code: 10 4c 8d 7b 20 48 89 44 24 08 e9 3e fc ff ff e8 01 21 b1 ff f0 80 63 01 f7 e9 4d fb ff ff e8 f2 20 b1 ff 0f 0b e8 eb 20 b1 ff <0f> 0b e8 e4 20 b1 ff 0f 0b e8 dd 20 b1 ff 0f 0b e8 d6 20 b1 ff 0f
RSP: 0018:ffff8880519d77c0 EFLAGS: 00010212
RAX: 0000000000040000 RBX: ffff88804ac59e70 RCX: ffffc90005b2f000
RDX: 00000000000350da RSI: ffffffff81b3af15 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000008
FS: 00007f0e14845700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
overlayfs: './file0' not a directory
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000052dbcc CR3: 00000000a1a8d000 CR4: 00000000001426f0
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,
Nov 25, 2020, 7:36:18 AM11/25/20
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 0c88e405 Linux 4.19.160
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1026a88d500000
kernel config: https://syzkaller.appspot.com/x/.config?x=baf69366a17513f7
dashboard link: https://syzkaller.appspot.com/bug?extid=6b91ee7179cc5a01018d
compiler: gcc (GCC) 10.1.0-syz 20200507
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=126111f1500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=12f23f49500000

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

EXT4-fs (loop3): get root inode failed
EXT4-fs (loop5): get root inode failed
EXT4-fs (loop5): mount failed
EXT4-fs (loop3): mount failed
------------[ cut here ]------------
kernel BUG at fs/buffer.c:3049!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 9318 Comm: kmmpd-loop4 Not tainted 4.19.160-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:submit_bh_wbc+0x5e5/0x760 fs/buffer.c:3049
Code: 10 4c 8d 7b 20 48 89 44 24 08 e9 3e fc ff ff e8 e1 1e b1 ff f0 80 63 01 f7 e9 4d fb ff ff e8 d2 1e b1 ff 0f 0b e8 cb 1e b1 ff <0f> 0b e8 c4 1e b1 ff 0f 0b e8 bd 1e b1 ff 0f 0b e8 b6 1e b1 ff 0f
RSP: 0018:ffff8880abb6fd78 EFLAGS: 00010293
RAX: ffff8880a9a74480 RBX: ffff88808dfbabd0 RCX: ffffffff81b3abb1
RDX: 0000000000000000 RSI: ffffffff81b3b125 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000003800
R13: 0000000000000000 R14: 0000000000000001 R15: 00000000ffffa727
FS: 0000000000000000(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007fff2ac9f000 CR3: 000000009c210000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
write_mmp_block+0x1e4/0x310 fs/ext4/mmp.c:55
kmmpd+0x71f/0xa80 fs/ext4/mmp.c:246
kthread+0x33f/0x460 kernel/kthread.c:259
ret_from_fork+0x24/0x30 arch/x86/entry/entry_64.S:415
Modules linked in:
EXT4-fs error (device loop0): ext4_fill_super:4448: inode #2: comm syz-executor448: iget: root inode unallocated
EXT4-fs (loop0): get root inode failed
---[ end trace 687e2cdd0d360207 ]---
EXT4-fs (loop0): mount failed
RIP: 0010:submit_bh_wbc+0x5e5/0x760 fs/buffer.c:3049
Code: 10 4c 8d 7b 20 48 89 44 24 08 e9 3e fc ff ff e8 e1 1e b1 ff f0 80 63 01 f7 e9 4d fb ff ff e8 d2 1e b1 ff 0f 0b e8 cb 1e b1 ff <0f> 0b e8 c4 1e b1 ff 0f 0b e8 bd 1e b1 ff 0f 0b e8 b6 1e b1 ff 0f
RSP: 0018:ffff8880abb6fd78 EFLAGS: 00010293
RAX: ffff8880a9a74480 RBX: ffff88808dfbabd0 RCX: ffffffff81b3abb1
RDX: 0000000000000000 RSI: ffffffff81b3b125 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: 0000000000003800
R13: 0000000000000000 R14: 0000000000000001 R15: 00000000ffffa727
FS: 0000000000000000(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000000043f480 CR3: 00000000a0cf1000 CR4: 00000000001406f0
Reply all
Reply to author
Forward
0 new messages