[Android 6.1] kernel BUG in __ext4_journal_stop

0 views
Skip to first unread message

syzbot

unread,
Jun 3, 2023, 6:54:57 AM6/3/23
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 7b1489746079 ANDROID: Update ABI as part of crash fix
git tree: android14-6.1
console+strace: https://syzkaller.appspot.com/x/log.txt?x=12a310e9280000
kernel config: https://syzkaller.appspot.com/x/.config?x=772a621c45fe488b
dashboard link: https://syzkaller.appspot.com/bug?extid=62ea9cb4a5d3e75b7ae2
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=1408ad7d280000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=1721e21d280000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/5979b21694bb/disk-7b148974.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/7368094e0c18/vmlinux-7b148974.xz
kernel image: https://storage.googleapis.com/syzbot-assets/be14fedf5fff/bzImage-7b148974.xz
mounted in repro: https://storage.googleapis.com/syzbot-assets/9cb72aec3ae1/mount_0.gz

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

------------[ cut here ]------------
kernel BUG at fs/ext4/ext4_jbd2.c:53!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 754 Comm: syz-executor400 Not tainted 6.1.25-syzkaller-00339-g7b1489746079 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 05/25/2023
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x1b3/0x1c0 fs/ext4/ext4_jbd2.c:116
Code: c3 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f8 fe ff ff e8 21 e6 d0 ff 48 ba 00 00 00 00 00 fc ff df e9 e4 fe ff ff e8 bd 78 8b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56 41
RSP: 0018:ffffc90001d57138 EFLAGS: 00010293
RAX: ffffffff81e836d3 RBX: ffffffff863a17ae RCX: ffff8881227e9300
RDX: 0000000000000000 RSI: 0000000000000322 RDI: ffffffff863a17ae
RBP: ffffc90001d57170 R08: ffffffff81edcc9b R09: ffffed102411615d
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 0000000000000000 R14: ffff888120bc9bf0 R15: 0000000000000322
FS: 00007fb6c55a7700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000efb068 CR3: 0000000122b36000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
<TASK>
ext4_write_inline_data_end+0x7c3/0xa90 fs/ext4/inline.c:802
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:0x7fb6cd91d069
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 a1 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:00007fb6c55a72f8 EFLAGS: 00000246 ORIG_RAX: 0000000000000028
RAX: ffffffffffffffda RBX: 00007fb6cd9a17b0 RCX: 00007fb6cd91d069
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000004
RBP: 00007fb6cd96e840 R08: 00007fb6c55a7700 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 00007fb6cd96e0c0
R13: 0000000020000f40 R14: 0030656c69662f2e R15: 00007fb6cd9a17b8
</TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_put_nojournal fs/ext4/ext4_jbd2.c:53 [inline]
RIP: 0010:__ext4_journal_stop+0x1b3/0x1c0 fs/ext4/ext4_jbd2.c:116
Code: c3 89 f9 80 e1 07 80 c1 03 38 c1 0f 8c f8 fe ff ff e8 21 e6 d0 ff 48 ba 00 00 00 00 00 fc ff df e9 e4 fe ff ff e8 bd 78 8b ff <0f> 0b 66 2e 0f 1f 84 00 00 00 00 00 90 55 48 89 e5 41 57 41 56 41
RSP: 0018:ffffc90001d57138 EFLAGS: 00010293
RAX: ffffffff81e836d3 RBX: ffffffff863a17ae RCX: ffff8881227e9300
RDX: 0000000000000000 RSI: 0000000000000322 RDI: ffffffff863a17ae
RBP: ffffc90001d57170 R08: ffffffff81edcc9b R09: ffffed102411615d
R10: 0000000000000000 R11: dffffc0000000001 R12: 0000000000000008
R13: 0000000000000000 R14: ffff888120bc9bf0 R15: 0000000000000322
FS: 00007fb6c55a7700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffc24cdcfa8 CR3: 0000000122b36000 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