kernel BUG at fs/buffer.c:LINE!

17 views
Skip to first unread message

syzbot

unread,
Jan 21, 2020, 8:12:12 AM1/21/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: b0b02162 Merge 5.4.13 into android-5.4
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=12cb3ec9e00000
kernel config: https://syzkaller.appspot.com/x/.config?x=f6f472a6fc2c3095
dashboard link: https://syzkaller.appspot.com/bug?extid=bf9c89ab867a402aa9bb
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)

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

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

------------[ cut here ]------------
kernel BUG at fs/buffer.c:555!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 27184 Comm: syz-executor.0 Not tainted 5.4.13-syzkaller-00760-gb0b02162a4b8 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:mark_buffer_dirty_inode+0x2fb/0x300 fs/buffer.c:555
Code: ef e8 e9 77 ed ff 48 8b 45 b8 49 89 45 00 48 89 df e8 19 28 03 02 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 55 75 bf ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 49 89 fe 49
RSP: 0018:ffff8881d0f36fe8 EFLAGS: 00010287
RAX: ffffffff81834b6b RBX: 1ffff11032637677 RCX: 0000000000040000
RDX: ffffc90001f7b000 RSI: 000000000001c205 RDI: 000000000001c206
RBP: ffff8881d0f37038 R08: ffffffff81647cb3 R09: fffff94000d9a409
R10: fffff94000d9a409 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8881931bb320 R14: ffff88818ecf8e70 R15: ffff8881931bb3b8
FS: 00007f42c1ba2700(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000001e57978 CR3: 00000001d7af7002 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
fat_mirror_bhs+0x31e/0x470 fs/fat/fatent.c:396
fat_alloc_clusters+0x10e9/0x13e0 fs/fat/fatent.c:541
fat_add_cluster fs/fat/inode.c:107 [inline]
__fat_get_block fs/fat/inode.c:154 [inline]
fat_get_block+0x39c/0xac0 fs/fat/inode.c:189
__block_write_begin_int+0x68b/0x1770 fs/buffer.c:1969
__block_write_begin fs/buffer.c:2019 [inline]
block_write_begin+0x5e/0x150 fs/buffer.c:2078
cont_write_begin+0x603/0x8a0 fs/buffer.c:2427
fat_write_begin+0xa6/0x180 fs/fat/inode.c:235
pagecache_write_begin+0x98/0xb0 mm/filemap.c:3128
cont_expand_zero fs/buffer.c:2354 [inline]
cont_write_begin+0x217/0x8a0 fs/buffer.c:2417
fat_write_begin+0xa6/0x180 fs/fat/inode.c:235
pagecache_write_begin+0x98/0xb0 mm/filemap.c:3128
generic_cont_expand_simple+0xd8/0x1b0 fs/buffer.c:2318
fat_cont_expand+0x6b/0x1f0 fs/fat/file.c:233
fat_setattr+0x305/0xd50 fs/fat/file.c:512
notify_change2+0xaf3/0xf20 fs/attr.c:339
do_truncate2 fs/open.c:64 [inline]
do_sys_ftruncate+0x5c3/0x740 fs/open.c:204
__do_sys_ftruncate fs/open.c:214 [inline]
__se_sys_ftruncate fs/open.c:212 [inline]
__x64_sys_ftruncate+0x60/0x70 fs/open.c:212
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45b349
Code: ad b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 0f 83 7b b6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007f42c1ba1c78 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f42c1ba26d4 RCX: 000000000045b349
RDX: 0000000000000000 RSI: 0000000000200004 RDI: 0000000000000005
RBP: 000000000075bf20 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 00000000000000e3 R14: 00000000004c21a7 R15: 000000000075bf2c
Modules linked in:
---[ end trace f363f60a3fd4c870 ]---
RIP: 0010:mark_buffer_dirty_inode+0x2fb/0x300 fs/buffer.c:555
Code: ef e8 e9 77 ed ff 48 8b 45 b8 49 89 45 00 48 89 df e8 19 28 03 02 48 83 c4 28 5b 41 5c 41 5d 41 5e 41 5f 5d c3 e8 55 75 bf ff <0f> 0b 0f 1f 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 49 89 fe 49
RSP: 0018:ffff8881d0f36fe8 EFLAGS: 00010287
RAX: ffffffff81834b6b RBX: 1ffff11032637677 RCX: 0000000000040000
RDX: ffffc90001f7b000 RSI: 000000000001c205 RDI: 000000000001c206
RBP: ffff8881d0f37038 R08: ffffffff81647cb3 R09: fffff94000d9a409
R10: fffff94000d9a409 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8881931bb320 R14: ffff88818ecf8e70 R15: ffff8881931bb3b8
FS: 00007f42c1ba2700(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000000c42ab6d000 CR3: 00000001d7af7005 CR4: 00000000001606e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400


---
This bug 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 bug report. See:
https://goo.gl/tpsmEJ#status for how to communicate with syzbot.

syzbot

unread,
Feb 11, 2020, 10:48:12 AM2/11/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following crash on:

HEAD commit: 0dba8e72 ANDROID: dm: prevent default-key from being enabl..
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=13d8bfcde00000
kernel config: https://syzkaller.appspot.com/x/.config?x=7e0c0ec90b0eccbb
dashboard link: https://syzkaller.appspot.com/bug?extid=bf9c89ab867a402aa9bb
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=134e496ee00000

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

------------[ cut here ]------------
kernel BUG at fs/buffer.c:3032!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 25692 Comm: syz-executor.0 Not tainted 5.4.18-syzkaller-00147-g0dba8e724663 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:submit_bh_wbc+0x776/0x7a0 fs/buffer.c:3032
Code: 4d c8 80 e1 07 80 c1 03 38 c1 0f 8c cb fe ff ff 48 8b 7d c8 e8 3b 1f ed ff e9 bd fe ff ff e8 51 1b bf ff 0f 0b e8 4a 1b bf ff <0f> 0b e8 43 1b bf ff 0f 0b e8 3c 1b bf ff 0f 0b e8 35 1b bf ff 0f
RSP: 0018:ffff8881c185f828 EFLAGS: 00010293
RAX: ffffffff8183bc36 RBX: 0000000000000000 RCX: ffff8881d395e740
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881c185f8b8 R08: ffffffff8183b561 R09: ffffed103ad53127
R10: ffffed103ad53127 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8881d6a98930 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007f73ff561700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00000000019719b8 CR3: 00000001cb42b005 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
submit_bh fs/buffer.c:3081 [inline]
__bread_slow fs/buffer.c:1178 [inline]
__bread_gfp+0x187/0x320 fs/buffer.c:1360
sb_bread include/linux/buffer_head.h:307 [inline]
fat_fill_super+0x1b93/0x5340 fs/fat/inode.c:1647
vfat_fill_super+0x31/0x40 fs/fat/namei_vfat.c:1050
mount_bdev+0x285/0x3a0 fs/super.c:1417
vfat_mount+0x34/0x40 fs/fat/namei_vfat.c:1057
legacy_get_tree+0xed/0x190 fs/fs_context.c:647
vfs_get_tree+0x88/0x290 fs/super.c:1547
do_new_mount fs/namespace.c:2852 [inline]
do_mount+0x1882/0x2850 fs/namespace.c:3172
ksys_mount+0xcc/0x100 fs/namespace.c:3381
__do_sys_mount fs/namespace.c:3395 [inline]
__se_sys_mount fs/namespace.c:3392 [inline]
__x64_sys_mount+0xbf/0xd0 fs/namespace.c:3392
do_syscall_64+0xc0/0x100 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x45de0a
Code: b8 a6 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 4d 8c 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 2a 8c fb ff c3 66 0f 1f 84 00 00 00 00 00
RSP: 002b:00007f73ff560a68 EFLAGS: 00000246 ORIG_RAX: 00000000000000a5
RAX: ffffffffffffffda RBX: 00007f73ff5616d4 RCX: 000000000045de0a
RDX: 00007f73ff560ae0 RSI: 00000000200002c0 RDI: 00007f73ff560b00
RBP: 000000000075bf20 R08: 00007f73ff560b40 R09: 00007f73ff560ae0
R10: 0000000000000000 R11: 0000000000000246 R12: 00000000ffffffff
R13: 0000000000000bb4 R14: 00000000004cc92b R15: 000000000075bf2c
Modules linked in:
---[ end trace 599d91be85239817 ]---
RIP: 0010:submit_bh_wbc+0x776/0x7a0 fs/buffer.c:3032
Code: 4d c8 80 e1 07 80 c1 03 38 c1 0f 8c cb fe ff ff 48 8b 7d c8 e8 3b 1f ed ff e9 bd fe ff ff e8 51 1b bf ff 0f 0b e8 4a 1b bf ff <0f> 0b e8 43 1b bf ff 0f 0b e8 3c 1b bf ff 0f 0b e8 35 1b bf ff 0f
RSP: 0018:ffff8881c185f828 EFLAGS: 00010293
RAX: ffffffff8183bc36 RBX: 0000000000000000 RCX: ffff8881d395e740
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881c185f8b8 R08: ffffffff8183b561 R09: ffffed103ad53127
R10: ffffed103ad53127 R11: 0000000000000000 R12: 0000000000000000
R13: ffff8881d6a98930 R14: 0000000000000000 R15: dffffc0000000000
FS: 00007f73ff561700(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f0c9fe5ba20 CR3: 00000001cb42b003 CR4: 00000000001606f0

syzbot

unread,
Nov 29, 2020, 4:15:22 AM11/29/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: e37aca80 ANDROID: modpost: Forbid double exports
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=162853b3500000
kernel config: https://syzkaller.appspot.com/x/.config?x=ad643f8e0f1f7aa8
dashboard link: https://syzkaller.appspot.com/bug?extid=bf9c89ab867a402aa9bb
compiler: Android (6032204 based on r370808) clang version 10.0.1 (https://android.googlesource.com/toolchain/llvm-project 6e765c10313d15c02ab29977a82938f66742c3a9)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=1081cab5500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1329598b500000

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

------------[ cut here ]------------
kernel BUG at fs/buffer.c:3027!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1362 Comm: kmmpd-loop4 Not tainted 5.4.80-syzkaller-00759-ge37aca80313f #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:submit_bh_wbc+0x764/0x790 fs/buffer.c:3027
Code: 08 80 e1 07 80 c1 03 38 c1 0f 8c c8 fe ff ff 48 8b 7c 24 08 e8 7d fb ed ff e9 b9 fe ff ff e8 23 41 bf ff 0f 0b e8 1c 41 bf ff <0f> 0b e8 15 41 bf ff 0f 0b e8 0e 41 bf ff 0f 0b e8 07 41 bf ff 0f
RSP: 0018:ffff8881ea89fc08 EFLAGS: 00010293
RAX: ffffffff81a3a3b4 RBX: 0000000000000000 RCX: ffff8881e0ac6c80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 1ffff1103bf4af7a R08: ffffffff81a39ce9 R09: ffffed103bf4af7b
R10: ffffed103bf4af7b R11: 0000000000000000 R12: 0000000000000001
R13: ffff8881dfa57bd0 R14: dffffc0000000000 R15: 0000000000003800
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f81a13691c0 CR3: 00000001e28da000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
submit_bh+0x21/0x30 fs/buffer.c:3076
write_mmp_block+0x413/0x5d0 fs/ext4/mmp.c:55
kmmpd+0x807/0xa40 fs/ext4/mmp.c:246
kthread+0x31c/0x340 kernel/kthread.c:268
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace 3c88c95294b1e397 ]---
RIP: 0010:submit_bh_wbc+0x764/0x790 fs/buffer.c:3027
Code: 08 80 e1 07 80 c1 03 38 c1 0f 8c c8 fe ff ff 48 8b 7c 24 08 e8 7d fb ed ff e9 b9 fe ff ff e8 23 41 bf ff 0f 0b e8 1c 41 bf ff <0f> 0b e8 15 41 bf ff 0f 0b e8 0e 41 bf ff 0f 0b e8 07 41 bf ff 0f
RSP: 0018:ffff8881ea89fc08 EFLAGS: 00010293
RAX: ffffffff81a3a3b4 RBX: 0000000000000000 RCX: ffff8881e0ac6c80
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: 1ffff1103bf4af7a R08: ffffffff81a39ce9 R09: ffffed103bf4af7b
R10: ffffed103bf4af7b R11: 0000000000000000 R12: 0000000000000001
R13: ffff8881dfa57bd0 R14: dffffc0000000000 R15: 0000000000003800
FS: 0000000000000000(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f81a13691c0 CR3: 00000001e28da000 CR4: 00000000001406e0
Reply all
Reply to author
Forward
0 new messages