kernel BUG in ext4_write_inline_data_end

14 views
Skip to first unread message

syzbot

unread,
Feb 14, 2021, 8:39:18 AM2/14/21
to syzkaller...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 811218ec Linux 4.19.172
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=1589f338d00000
kernel config: https://syzkaller.appspot.com/x/.config?x=c1cb1d27398c8808
dashboard link: https://syzkaller.appspot.com/bug?extid=ef030bd2767d6d562429
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=138913e2d00000

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

EXT4-fs: failed to create workqueue
EXT4-fs (loop2): mount failed
EXT4-fs: failed to create workqueue
EXT4-fs (loop0): mount failed
------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:751!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 2709 Comm: syz-executor.3 Not tainted 4.19.172-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_write_inline_data_end+0x47b/0x640 syzkaller/managers/linux-4-19/kernel/fs/ext4/inline.c:751
Code: 02 00 0f 85 c2 01 00 00 48 8b 7d 28 ba e9 02 00 00 48 c7 c6 60 48 7a 88 45 31 e4 e8 2f b0 0e 00 e9 6f ff ff ff e8 05 a8 84 ff <0f> 0b e8 fe a7 84 ff 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c
RSP: 0018:ffff88807cd8f8a0 EFLAGS: 00010293
RAX: ffff888097882680 RBX: 0000000000000082 RCX: ffffffff81ddae82
RDX: 0000000000000000 RSI: ffffffff81ddb1bb RDI: 0000000000000001
RBP: ffff888080da4730 R08: ffffffff8cd33280 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0001f73780
R13: 0000000000000082 R14: 1ffff1100f9b1f18 R15: ffff88807cd8f8e0
FS: 00007f27aa7af700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f41a03d0718 CR3: 0000000091fd1000 CR4: 00000000001406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_write_end+0x1de/0xec0 syzkaller/managers/linux-4-19/kernel/fs/ext4/inode.c:1424
ext4_da_write_end+0x860/0xa70 syzkaller/managers/linux-4-19/kernel/fs/ext4/inode.c:3171
generic_perform_write+0x2ae/0x4d0 syzkaller/managers/linux-4-19/kernel/mm/filemap.c:3181
__generic_file_write_iter+0x24b/0x610 syzkaller/managers/linux-4-19/kernel/mm/filemap.c:3295
ext4_file_write_iter+0x2fe/0xf20 syzkaller/managers/linux-4-19/kernel/fs/ext4/file.c:272
call_write_iter syzkaller/managers/linux-4-19/kernel/./include/linux/fs.h:1821 [inline]
new_sync_write syzkaller/managers/linux-4-19/kernel/fs/read_write.c:474 [inline]
__vfs_write+0x51b/0x770 syzkaller/managers/linux-4-19/kernel/fs/read_write.c:487
vfs_write+0x1f3/0x540 syzkaller/managers/linux-4-19/kernel/fs/read_write.c:549
ksys_write+0x12b/0x2a0 syzkaller/managers/linux-4-19/kernel/fs/read_write.c:599
do_syscall_64+0xf9/0x620 syzkaller/managers/linux-4-19/kernel/arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x465d99
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f27aa7af188 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 000000000056bf60 RCX: 0000000000465d99
RDX: 0000000000000082 RSI: 0000000020000180 RDI: 0000000000000004
RBP: 00000000004bcf27 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 000000000056bf60
R13: 00007ffcfde0deef R14: 00007f27aa7af300 R15: 0000000000022000
Modules linked in:
---[ end trace edf95648755f0d2e ]---
RIP: 0010:ext4_write_inline_data_end+0x47b/0x640 syzkaller/managers/linux-4-19/kernel/fs/ext4/inline.c:751
Code: 02 00 0f 85 c2 01 00 00 48 8b 7d 28 ba e9 02 00 00 48 c7 c6 60 48 7a 88 45 31 e4 e8 2f b0 0e 00 e9 6f ff ff ff e8 05 a8 84 ff <0f> 0b e8 fe a7 84 ff 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c
RSP: 0018:ffff88807cd8f8a0 EFLAGS: 00010293
RAX: ffff888097882680 RBX: 0000000000000082 RCX: ffffffff81ddae82
RDX: 0000000000000000 RSI: ffffffff81ddb1bb RDI: 0000000000000001
RBP: ffff888080da4730 R08: ffffffff8cd33280 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0001f73780
R13: 0000000000000082 R14: 1ffff1100f9b1f18 R15: ffff88807cd8f8e0
FS: 00007f27aa7af700(0000) GS:ffff8880ba100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f37528a5a60 CR3: 0000000091fd1000 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 can test patches for this issue, for details see:
https://goo.gl/tpsmEJ#testing-patches

syzbot

unread,
Mar 4, 2022, 1:39:17 AM3/4/22
to syzkaller...@googlegroups.com
syzbot has found a reproducer for the following issue on:

HEAD commit: 3f8a27f9e27b Linux 4.19.211
git tree: linux-4.19.y
console output: https://syzkaller.appspot.com/x/log.txt?x=155dca59700000
kernel config: https://syzkaller.appspot.com/x/.config?x=9b9277b418617afe
dashboard link: https://syzkaller.appspot.com/bug?extid=ef030bd2767d6d562429
compiler: gcc version 10.2.1 20210110 (Debian 10.2.1-6)
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=10c63dd1700000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1303b521700000

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

------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:751!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 14113 Comm: syz-executor113 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_write_inline_data_end+0x483/0x650 fs/ext4/inline.c:751
Code: 02 00 0f 85 c2 01 00 00 48 8b 7d 28 ba e9 02 00 00 48 c7 c6 60 51 7a 88 45 31 e4 e8 27 b2 0e 00 e9 6f ff ff ff e8 4d 84 84 ff <0f> 0b e8 46 84 84 ff 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c
RSP: 0018:ffff8880aee678a0 EFLAGS: 00010293
RAX: ffff8880b00b4540 RBX: 00000000000000a0 RCX: ffffffff81ddfde2
RDX: 0000000000000000 RSI: ffffffff81de0123 RDI: 0000000000000001
RBP: ffff88808c7632b0 R08: ffffffff8cd29c38 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0002329080
R13: 00000000000000a0 R14: 1ffff11015dccf18 R15: ffff8880aee678e0
FS: 00007f08b7bcb700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f08b7baa718 CR3: 00000000946d3000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_write_end+0x1de/0xec0 fs/ext4/inode.c:1423
ext4_da_write_end+0x860/0xa70 fs/ext4/inode.c:3170
generic_perform_write+0x2ae/0x4d0 mm/filemap.c:3181
__generic_file_write_iter+0x24b/0x610 mm/filemap.c:3295
ext4_file_write_iter+0x2fe/0xf20 fs/ext4/file.c:272
call_write_iter include/linux/fs.h:1821 [inline]
new_sync_write fs/read_write.c:474 [inline]
__vfs_write+0x51b/0x770 fs/read_write.c:487
vfs_write+0x1f3/0x540 fs/read_write.c:549
ksys_write+0x12b/0x2a0 fs/read_write.c:599
do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7f08b7c1f8b9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 73 01 c3 48 c7 c1 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f08b7bcb208 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
RAX: ffffffffffffffda RBX: 00007f08b7ca54c8 RCX: 00007f08b7c1f8b9
RDX: 00000000000000a0 RSI: 0000000020000040 RDI: 0000000000000004
RBP: 00007f08b7ca54c0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 00007f08b7ca54cc
R13: 00007ffdaef27a3f R14: 00007f08b7bcb300 R15: 0000000000022000
Modules linked in:
---[ end trace 0fd3d93332ae28c1 ]---
RIP: 0010:ext4_write_inline_data_end+0x483/0x650 fs/ext4/inline.c:751
Code: 02 00 0f 85 c2 01 00 00 48 8b 7d 28 ba e9 02 00 00 48 c7 c6 60 51 7a 88 45 31 e4 e8 27 b2 0e 00 e9 6f ff ff ff e8 4d 84 84 ff <0f> 0b e8 46 84 84 ff 49 8d 7c 24 08 48 89 f8 48 c1 e8 03 42 80 3c
RSP: 0018:ffff8880aee678a0 EFLAGS: 00010293
RAX: ffff8880b00b4540 RBX: 00000000000000a0 RCX: ffffffff81ddfde2
RDX: 0000000000000000 RSI: ffffffff81de0123 RDI: 0000000000000001
RBP: ffff88808c7632b0 R08: ffffffff8cd29c38 R09: 0000000000000000
R10: 0000000000000001 R11: 0000000000000000 R12: ffffea0002329080
R13: 00000000000000a0 R14: 1ffff11015dccf18 R15: ffff8880aee678e0
FS: 00007f08b7bcb700(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f08b7c60f90 CR3: 00000000946d3000 CR4: 00000000003406f0
Reply all
Reply to author
Forward
0 new messages