[Android 6.1] kernel BUG in ext4_write_inline_data

1 view
Skip to first unread message

syzbot

unread,
Jul 2, 2023, 5:31:00 PM7/2/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: ed2a228522b9 ANDROID: fix build error when use cpu_cgroup_..
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1775e510a80000
kernel config: https://syzkaller.appspot.com/x/.config?x=c25288e8257ec4da
dashboard link: https://syzkaller.appspot.com/bug?extid=2d1829aea6073b10c7e6
compiler: Debian clang version 15.0.7, GNU ld (GNU Binutils for Debian) 2.35.2
syz repro: https://syzkaller.appspot.com/x/repro.syz?x=102c384f280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=11adc01ca80000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/faee87725138/disk-ed2a2285.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/11133ca2cd73/vmlinux-ed2a2285.xz
kernel image: https://storage.googleapis.com/syzbot-assets/1b78d440d6e6/bzImage-ed2a2285.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/f7dcf1b87b74/mount_0.gz

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

------------[ cut here ]------------
kernel BUG at fs/ext4/inline.c:226!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 319 Comm: syz-executor147 Not tainted 6.1.25-syzkaller-00155-ged2a228522b9 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/27/2023
RIP: 0010:ext4_write_inline_data+0x3a4/0x3b0 fs/ext4/inline.c:226
Code: 07 fe c1 38 c1 0f 8c 42 ff ff ff 4c 89 e7 49 89 d6 e8 60 15 cb ff 4c 89 f2 e9 2f ff ff ff e8 53 f9 84 ff 0f 0b e8 4c f9 84 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55
RSP: 0018:ffffc90000ea7108 EFLAGS: 00010293
RAX: ffffffff81efeb34 RBX: 000000000000003c RCX: ffff88811d7f9440
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000002000
RBP: ffffc90000ea7170 R08: ffffffff81efe8bd R09: ffffed1021a1bc4b
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000001000
R13: ffffc90000ea7200 R14: 0000000000002000 R15: 0000000000001000
FS: 00007fc41b79d700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 000000011e099000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_write_inline_data_end+0x328/0xa90 fs/ext4/inline.c:767
ext4_da_write_end+0x1ed/0x970 fs/ext4/inode.c:3079
generic_perform_write+0x3e6/0x5c0 mm/filemap.c:3776
ext4_buffered_write_iter+0x360/0x640 fs/ext4/file.c:285
ext4_file_write_iter+0x194/0x1cf0
do_iter_write+0x6e6/0xc50 fs/read_write.c:861
vfs_iter_write+0x7c/0xa0 fs/read_write.c:902
iter_file_splice_write+0x7f8/0xf90 fs/splice.c:686
do_splice_from fs/splice.c:764 [inline]
direct_splice_actor+0xff/0x130 fs/splice.c:931
splice_direct_to_actor+0x4b4/0xbb0 fs/splice.c:886
do_splice_direct+0x27f/0x3c0 fs/splice.c:974
do_sendfile+0x616/0xfe0 fs/read_write.c:1255
__do_sys_sendfile64 fs/read_write.c:1323 [inline]
__se_sys_sendfile64 fs/read_write.c:1309 [inline]
__x64_sys_sendfile64+0x1ce/0x230 fs/read_write.c:1309
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+0x63/0xcd
RIP: 0033:0x7fc41b7f15d9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 71 15 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fc41b79d2f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fc41b8767a0 RCX: 00007fc41b7f15d9
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007fc41b843840 R08: 0000000000000000 R09: 0000000000000000
R10: 0001000000201005 R11: 0000000000000246 R12: 00007fc41b8430c0
R13: 0000000020000f40 R14: 0030656c69662f2e R15: 00007fc41b8767a8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_write_inline_data+0x3a4/0x3b0 fs/ext4/inline.c:226
Code: 07 fe c1 38 c1 0f 8c 42 ff ff ff 4c 89 e7 49 89 d6 e8 60 15 cb ff 4c 89 f2 e9 2f ff ff ff e8 53 f9 84 ff 0f 0b e8 4c f9 84 ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 55 48 89 e5 41 57 41 56 41 55
RSP: 0018:ffffc90000ea7108 EFLAGS: 00010293
RAX: ffffffff81efeb34 RBX: 000000000000003c RCX: ffff88811d7f9440
RDX: 0000000000000000 RSI: 000000000000003c RDI: 0000000000002000
RBP: ffffc90000ea7170 R08: ffffffff81efe8bd R09: ffffed1021a1bc4b
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000001000
R13: ffffc90000ea7200 R14: 0000000000002000 R15: 0000000000001000
FS: 00007fc41b79d700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020000080 CR3: 000000011e099000 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 change 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