[Android 5.4] kernel BUG in ext4_mark_iloc_dirty

0 views
Skip to first unread message

syzbot

unread,
Apr 30, 2024, 6:27:29 AMApr 30
to syzkaller-a...@googlegroups.com
Hello,

syzbot found the following issue on:

HEAD commit: 2d5d8240a7cb UPSTREAM: netfilter: nf_tables: release mutex..
git tree: android12-5.4
console+strace: https://syzkaller.appspot.com/x/log.txt?x=1649556b180000
kernel config: https://syzkaller.appspot.com/x/.config?x=60c0e8be982a03fd
dashboard link: https://syzkaller.appspot.com/bug?extid=77f2cc7c61d748548b0a
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=16f0b2ef180000
C reproducer: https://syzkaller.appspot.com/x/repro.c?x=14d857bb180000

Downloadable assets:
disk image: https://storage.googleapis.com/syzbot-assets/490caba28d3d/disk-2d5d8240.raw.xz
vmlinux: https://storage.googleapis.com/syzbot-assets/e94aa9169464/vmlinux-2d5d8240.xz
kernel image: https://storage.googleapis.com/syzbot-assets/698a9017bfdc/bzImage-2d5d8240.xz
mounted in repro #1: https://storage.googleapis.com/syzbot-assets/3a7977d3a638/mount_0.gz
mounted in repro #2: https://storage.googleapis.com/syzbot-assets/c7d88707f163/mount_5.gz

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

------------[ cut here ]------------
kernel BUG at fs/ext4/inode.c:5505!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 358 Comm: syz-executor361 Not tainted 5.4.268-syzkaller-00003-g2d5d8240a7cb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 03/27/2024
RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5504 [inline]
RIP: 0010:ext4_mark_iloc_dirty+0x3556/0x3560 fs/ext4/inode.c:6071
Code: f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 2b f1 ff ff 48 89 df e8 b9 27 cc ff e9 1e f1 ff ff e8 8f 0b 73 ff e8 5a 53 9c ff <0f> 0b 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 55 41 54 53 50 49
RSP: 0018:ffff8881dcb67060 EFLAGS: 00010293
RAX: ffffffff81c7f3c6 RBX: 0000000000000000 RCX: ffff8881dcb56e40
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000
RBP: ffff8881dcb671b0 R08: ffffffff81c7da79 R09: ffffed103d0e58f0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881dd579c00
R13: dffffc0000000000 R14: ffff8881dc72b000 R15: 0000000000000000
FS: 00007f8ce548a6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005584699c6fd8 CR3: 00000001dcc33000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_mark_inode_dirty+0x4e7/0x7a0 fs/ext4/inode.c:6273
ext4_ext_rm_leaf fs/ext4/extents.c:2915 [inline]
ext4_ext_remove_space+0x205d/0x4ba0 fs/ext4/extents.c:3124
ext4_truncate+0xb23/0x1290 fs/ext4/inode.c:4641
ext4_setattr+0xeb5/0x1500 fs/ext4/inode.c:5857
notify_change+0xc00/0xeb0 fs/attr.c:354
do_truncate+0x1ed/0x2d0 fs/open.c:64
handle_truncate fs/namei.c:3103 [inline]
do_last fs/namei.c:3521 [inline]
path_openat+0x2de2/0x3480 fs/namei.c:3634
do_filp_open+0x20b/0x450 fs/namei.c:3664
do_sys_open+0x39c/0x810 fs/open.c:1113
do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 6cefbd4a4426b61e ]---
RIP: 0010:ext4_do_update_inode fs/ext4/inode.c:5504 [inline]
RIP: 0010:ext4_mark_iloc_dirty+0x3556/0x3560 fs/ext4/inode.c:6071
Code: f1 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 2b f1 ff ff 48 89 df e8 b9 27 cc ff e9 1e f1 ff ff e8 8f 0b 73 ff e8 5a 53 9c ff <0f> 0b 0f 1f 84 00 00 00 00 00 55 41 57 41 56 41 55 41 54 53 50 49
RSP: 0018:ffff8881dcb67060 EFLAGS: 00010293
RAX: ffffffff81c7f3c6 RBX: 0000000000000000 RCX: ffff8881dcb56e40
RDX: 0000000000000000 RSI: 0000000000000005 RDI: 0000000000000000
RBP: ffff8881dcb671b0 R08: ffffffff81c7da79 R09: ffffed103d0e58f0
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff8881dd579c00
R13: dffffc0000000000 R14: ffff8881dc72b000 R15: 0000000000000000
FS: 00007f8ce548a6c0(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00005584699c6fd8 CR3: 00000001dcc33000 CR4: 00000000003406a0
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 report is already addressed, 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 report's subsystems, reply with:
#syz set subsystems: new-subsystem
(See the list of subsystem names on the web dashboard)

If the report is a duplicate of another one, 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