kernel BUG at fs/ext4/inode.c:LINE!

38 views
Skip to first unread message

syzbot

unread,
Jan 14, 2020, 7:13:12 AM1/14/20
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following crash on:

HEAD commit: d32a4878 ANDROID: reset: hisi-reboot: adb reboot bootloader
git tree: android-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=127c81aee00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c023850fbc26c909
dashboard link: https://syzkaller.appspot.com/bug?extid=f4b1559572b9dba7bfbc
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+f4b155...@syzkaller.appspotmail.com

------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2715!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 25668 Comm: kworker/u4:6 Tainted: G W
5.4.11-syzkaller-00385-gd32a4878e299 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS
Google 01/01/2011
Workqueue: writeback wb_workfn (flush-8:0)
RIP: 0010:mpage_prepare_extent_to_map+0xb47/0xb60 fs/ext4/inode.c:2715
Code: e8 8e 8c ce ff e9 fb f6 ff ff 44 89 e1 80 e1 07 38 c1 0f 8c bc fe ff
ff 4c 89 e7 e8 73 8c ce ff e9 af fe ff ff e8 39 99 a0 ff <0f> 0b e8 32 99
a0 ff 0f 0b e8 5b af 77 ff 90 66 2e 0f 1f 84 00 00
RSP: 0000:ffff8881996c6e00 EFLAGS: 00010293
RAX: ffffffff81a1f907 RBX: 0000000000000000 RCX: ffff8881d40dc9c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881996c6fd0 R08: ffffffff81a1f5ad R09: fffff94000d88011
R10: fffff94000d88011 R11: 0000000000000000 R12: ffffea0006c40080
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881996c72b8
FS: 0000000000000000(0000) GS:ffff8881dba00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffe93214ba0 CR3: 00000001ce450001 CR4: 00000000001606f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000600
Call Trace:
ext4_writepages+0x140d/0x47a0 fs/ext4/inode.c:2844
do_writepages+0x12e/0x290 mm/page-writeback.c:2344
__writeback_single_inode+0x1f6/0xbe0 fs/fs-writeback.c:1452
writeback_sb_inodes+0xa88/0x19c0 fs/fs-writeback.c:1716
wb_writeback+0x5ed/0xc30 fs/fs-writeback.c:1892
wb_do_writeback fs/fs-writeback.c:2037 [inline]
wb_workfn+0x54c/0x13a0 fs/fs-writeback.c:2078
process_one_work+0x9d8/0x1030 kernel/workqueue.c:2269
worker_thread+0xbbc/0x1610 kernel/workqueue.c:2415
kthread+0x31a/0x340 kernel/kthread.c:255
ret_from_fork+0x1f/0x30 arch/x86/entry/entry_64.S:352
Modules linked in:
---[ end trace b642cb5ad6b768e3 ]---
RIP: 0010:mpage_prepare_extent_to_map+0xb47/0xb60 fs/ext4/inode.c:2715
Code: e8 8e 8c ce ff e9 fb f6 ff ff 44 89 e1 80 e1 07 38 c1 0f 8c bc fe ff
ff 4c 89 e7 e8 73 8c ce ff e9 af fe ff ff e8 39 99 a0 ff <0f> 0b e8 32 99
a0 ff 0f 0b e8 5b af 77 ff 90 66 2e 0f 1f 84 00 00
RSP: 0000:ffff8881996c6e00 EFLAGS: 00010293
RAX: ffffffff81a1f907 RBX: 0000000000000000 RCX: ffff8881d40dc9c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffff8881996c6fd0 R08: ffffffff81a1f5ad R09: fffff94000d88011
R10: fffff94000d88011 R11: 0000000000000000 R12: ffffea0006c40080
R13: dffffc0000000000 R14: 0000000000000000 R15: ffff8881996c72b8
FS: 0000000000000000(0000) GS:ffff8881dbb00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000000000 CR3: 00000001d565b002 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,
Dec 21, 2020, 12:26:13 PM12/21/20
to syzkaller-a...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 4aa7a7c9 Merge 5.4.85 into android12-5.4
git tree: android12-5.4
console output: https://syzkaller.appspot.com/x/log.txt?x=15c99287500000
kernel config: https://syzkaller.appspot.com/x/.config?x=69d30e012a9d7c2
dashboard link: https://syzkaller.appspot.com/bug?extid=f4b1559572b9dba7bfbc
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=14029937500000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=137392cb500000

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

EXT4-fs (loop0): mounted filesystem without journal. Opts: ,errors=continue
------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:2795!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 366 Comm: syz-executor067 Not tainted 5.4.85-syzkaller-00187-g4aa7a7c97391 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_writepages+0x3f1c/0x3f30 fs/ext4/inode.c:2794
Code: a0 ff 0f 0b e8 d5 cf a0 ff 0f 0b e8 ce cf a0 ff 0f 0b e8 97 82 78 ff e8 c2 cf a0 ff 0f 0b e8 bb cf a0 ff 0f 0b e8 b4 cf a0 ff <0f> 0b e8 ad cf a0 ff 0f 0b 90 66 2e 0f 1f 84 00 00 00 00 00 53 48
RSP: 0018:ffff8881e8437460 EFLAGS: 00010293
RAX: ffffffff81c3ef4c RBX: 0000010000000000 RCX: ffff8881e844dd00
RDX: 0000000000000000 RSI: 0000010000000000 RDI: 0000000000000000
RBP: ffff8881e8437830 R08: ffffffff81c3ba9f R09: ffffed103bea580b
R10: ffffed103bea580b R11: 0000000000000000 R12: ffff8881df52c100
R13: ffff8881e84379a0 R14: 0000018410000000 R15: dffffc0000000000
FS: 0000000001b8e880(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055800c177210 CR3: 00000001ded45000 CR4: 00000000001406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
do_writepages+0x13a/0x280 mm/page-writeback.c:2344
__filemap_fdatawrite_range mm/filemap.c:421 [inline]
file_write_and_wait_range+0x36c/0x470 mm/filemap.c:782
__generic_file_fsync+0x6e/0x190 fs/libfs.c:1006
ext4_sync_file+0x4b7/0xc80 fs/ext4/fsync.c:118
generic_write_sync include/linux/fs.h:2945 [inline]
ext4_file_write_iter+0x988/0x1070 fs/ext4/file.c:281
call_write_iter include/linux/fs.h:1962 [inline]
new_sync_write fs/read_write.c:483 [inline]
__vfs_write+0x59c/0x720 fs/read_write.c:496
vfs_write+0x217/0x4f0 fs/read_write.c:558
ksys_write+0x186/0x2b0 fs/read_write.c:611
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x444639
Code: 8d d7 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 5b d7 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffe07d113b8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00000000004002e0 RCX: 0000000000444639
RDX: 0000000000000082 RSI: 0000000020000180 RDI: 0000000000000004
RBP: 00000000006d0018 R08: 00000000004002e0 R09: 00000000004002e0
R10: 00000000004002e0 R11: 0000000000000246 R12: 0000000000402220
R13: 00000000004022b0 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace c2cdc7646cf89230 ]---
RIP: 0010:ext4_writepages+0x3f1c/0x3f30 fs/ext4/inode.c:2794
Code: a0 ff 0f 0b e8 d5 cf a0 ff 0f 0b e8 ce cf a0 ff 0f 0b e8 97 82 78 ff e8 c2 cf a0 ff 0f 0b e8 bb cf a0 ff 0f 0b e8 b4 cf a0 ff <0f> 0b e8 ad cf a0 ff 0f 0b 90 66 2e 0f 1f 84 00 00 00 00 00 53 48
RSP: 0018:ffff8881e8437460 EFLAGS: 00010293
RAX: ffffffff81c3ef4c RBX: 0000010000000000 RCX: ffff8881e844dd00
RDX: 0000000000000000 RSI: 0000010000000000 RDI: 0000000000000000
RBP: ffff8881e8437830 R08: ffffffff81c3ba9f R09: ffffed103bea580b
R10: ffffed103bea580b R11: 0000000000000000 R12: ffff8881df52c100
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Kernel Offset: disabled
Rebooting in 86400 seconds..

Reply all
Reply to author
Forward
0 new messages