[Android 5.15] kernel BUG in ext4_write_inline_data_end (2)

1 view
Skip to first unread message

syzbot

unread,
Sep 24, 2023, 8:05:10 AM9/24/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ea586874d2f9 Merge 5.15.131 into android13-5.15-lts
git tree: android13-5.15-lts
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1756cf22680000
kernel config: https://syzkaller.appspot.com/x/.config?x=8c01766ad16ac177
dashboard link: https://syzkaller.appspot.com/bug?extid=2087f3e0c87c7a3f4247
compiler: Debian clang version 15.0.6, GNU ld (GNU Binutils for Debian) 2.40
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=16f63fa6680000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1684fba6680000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/e84dfa4dc7ef/disk-ea586874.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/b16cac25a266/vmlinux-ea586874.xz
kernel image: https://storage.googleapis.com/syzbot-assets/8aee32c39a67/bzImage-ea586874.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/b1ca3e52e6f6/mount_0.gz

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

------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:781!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 1066 Comm: syz-executor254 Not tainted 5.15.131-syzkaller-00653-gea586874d2f9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/04/2023
RIP: 0010:ext4_write_inline_data_end+0xe13/0xe30 fs/ext4/inline.c:781
Code: f8 ff ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 28 fa ff ff 4c 89 ff e8 4c d3 cc ff e9 1b fa ff ff e8 02 97 db 02 e8 dd e7 8a ff <0f> 0b e8 d6 e7 8a ff 0f 0b e8 cf e7 8a ff 0f 0b e8 c8 e7 8a ff 0f
RSP: 0018:ffffc900018a7040 EFLAGS: 00010293
RAX: ffffffff81e50da3 RBX: 0000000000000000 RCX: ffff88811eb64f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900018a7198 R08: ffffffff81e50210 R09: ffffed10240bfdec
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000001 R14: 0000001c00000000 R15: 1ffff110240bfdeb
FS: 00007f347fd126c0(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000000 CR3: 0000000111a54000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_write_end+0x374/0xa00 fs/ext4/inode.c:1311
ext4_da_write_end+0x88/0xab0 fs/ext4/inode.c:3071
generic_perform_write+0x3b4/0x5a0 mm/filemap.c:3844
ext4_buffered_write_iter+0x48a/0x610 fs/ext4/file.c:270
ext4_file_write_iter+0x443/0x1c80
do_iter_readv_writev+0x58e/0x790
do_iter_write+0x1f5/0x760 fs/read_write.c:855
vfs_iter_write+0x7c/0xa0 fs/read_write.c:896
iter_file_splice_write+0x7f8/0xf90 fs/splice.c:689
do_splice_from fs/splice.c:767 [inline]
direct_splice_actor+0xff/0x130 fs/splice.c:936
splice_direct_to_actor+0x4f1/0xbe0 fs/splice.c:891
do_splice_direct+0x27f/0x3c0 fs/splice.c:979
do_sendfile+0x616/0xfe0 fs/read_write.c:1249
__do_sys_sendfile64 fs/read_write.c:1317 [inline]
__se_sys_sendfile64 fs/read_write.c:1303 [inline]
__x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1303
do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f347fd55c19
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 b1 18 00 00 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 73 01 c3 48 c7 c1 b0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f347fd12218 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007f347fddd6c8 RCX: 00007f347fd55c19
RDX: 0000000000000000 RSI: 0000000000000007 RDI: 0000000000000006
RBP: 00007f347fddd6c0 R08: 0000000000000000 R09: 0000000000000000
R10: 000080001d00c0d0 R11: 0000000000000246 R12: 00007f347fdaa4f8
R13: 00007f347fdaa0c0 R14: 0000000020000ac0 R15: 0030656c69662f2e
</TASK>
Modules linked in:
---[ end trace 111dab05d51143fc ]---
RIP: 0010:ext4_write_inline_data_end+0xe13/0xe30 fs/ext4/inline.c:781
Code: f8 ff ff 44 89 f9 80 e1 07 fe c1 38 c1 0f 8c 28 fa ff ff 4c 89 ff e8 4c d3 cc ff e9 1b fa ff ff e8 02 97 db 02 e8 dd e7 8a ff <0f> 0b e8 d6 e7 8a ff 0f 0b e8 cf e7 8a ff 0f 0b e8 c8 e7 8a ff 0f
RSP: 0018:ffffc900018a7040 EFLAGS: 00010293
RAX: ffffffff81e50da3 RBX: 0000000000000000 RCX: ffff88811eb64f00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc900018a7198 R08: ffffffff81e50210 R09: ffffed10240bfdec
R10: 0000000000000000 R11: dffffc0000000001 R12: dffffc0000000000
R13: 0000000000000001 R14: 0000001c00000000 R15: 1ffff110240bfdeb
FS: 00007f347fd126c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f347fd13000 CR3: 0000000111a54000 CR4: 00000000003506b0
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.

If the bug is already fixed, let syzbot know by replying with:
#syz fix: exact-commit-title

If you want syzbot to run the reproducer, reply with:
#syz test: git://repo/address.git branch-or-commit-hash
If you attach or paste a git patch, syzbot will apply it before testing.

If you want to overwrite bug's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the bug is a duplicate of another bug, reply with:
#syz dup: exact-subject-of-another-report

If you want to undo deduplication, reply with:
#syz undup
Reply all
Reply to author
Forward
0 new messages