Hello,
syzbot found the following issue on:
HEAD commit: 7e2543346ff7 ANDROID: GKI: Add bpf_redirect_info to virtua..
git tree: android13-5.10-lts
console+strace:
https://syzkaller.appspot.com/x/log.txt?x=10c04cd4580000
kernel config:
https://syzkaller.appspot.com/x/.config?x=d791cdbfdcf1f103
dashboard link:
https://syzkaller.appspot.com/bug?extid=fbce9d1fb2a8d5af8fa7
compiler: Debian clang version 20.1.2 (++20250402124445+58df0ef89dd6-1~exp1~20250402004600.97), Debian LLD 20.1.2
syz repro:
https://syzkaller.appspot.com/x/repro.syz?x=14a8a2f4580000
C reproducer:
https://syzkaller.appspot.com/x/repro.c?x=14c04cd4580000
Downloadable assets:
disk image:
https://storage.googleapis.com/syzbot-assets/b4f76cbd81b5/disk-7e254334.raw.xz
vmlinux:
https://storage.googleapis.com/syzbot-assets/b7d92a95a0b1/vmlinux-7e254334.xz
kernel image:
https://storage.googleapis.com/syzbot-assets/523b2675ce5f/bzImage-7e254334.xz
mounted in repro:
https://storage.googleapis.com/syzbot-assets/9839e6112ffc/mount_0.gz
fsck result: failed (log:
https://syzkaller.appspot.com/x/fsck.log?x=17404cd4580000)
IMPORTANT: if you fix the issue, please add the following tag to the commit:
Reported-by:
syzbot+fbce9d...@syzkaller.appspotmail.com
------------[ cut here ]------------
kernel BUG at fs/ext4/extents.c:1014!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 479 Comm: syz-executor345 Not tainted 5.10.237-syzkaller-00309-g7e2543346ff7 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 02/12/2025
RIP: 0010:ext4_ext_insert_index+0x52d/0x530 fs/ext4/extents.c:1014
Code: 4c 89 fa e9 ca fd ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c dd fd ff ff 4c 89 f7 e8 6d a2 d3 ff e9 d0 fd ff ff e8 e3 b2 99 ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec c0 00 00
RSP: 0018:ffffc900013a6b20 EFLAGS: 00010293
RAX: ffffffff81c9e01d RBX: ffff888120de0424 RCX: ffff888114d0e2c0
RDX: 0000000000000000 RSI: 00000000fffffffe RDI: 0000000000000000
RBP: ffffc900013a6b90 R08: dffffc0000000000 R09: ffffed10242c0990
R10: ffffed10242c0990 R11: 1ffff110242c098f R12: 0000000000000000
R13: 00000000000000cb R14: 00000000fffffffe R15: 0000000000000054
FS: 00007fe6cadc46c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000002000 CR3: 0000000114035000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
ext4_ext_split fs/ext4/extents.c:1272 [inline]
ext4_ext_create_new_leaf fs/ext4/extents.c:1414 [inline]
ext4_ext_insert_extent+0x38c3/0x4530 fs/ext4/extents.c:2097
ext4_ext_map_blocks+0x148c/0x5d40 fs/ext4/extents.c:4354
ext4_map_blocks+0x978/0x1bc0 fs/ext4/inode.c:674
_ext4_get_block+0x1bb/0x4b0 fs/ext4/inode.c:817
ext4_get_block_unwritten+0x2a/0x40 fs/ext4/inode.c:848
ext4_block_write_begin+0x567/0x1330 fs/ext4/inode.c:1101
ext4_write_begin+0x651/0x1550 fs/ext4/ext4_jbd2.h:-1
ext4_da_write_begin+0x455/0xe80 fs/ext4/inode.c:3033
generic_perform_write+0x2be/0x510 mm/filemap.c:3509
ext4_buffered_write_iter+0x4b8/0x640 fs/ext4/file.c:271
ext4_file_write_iter+0x536/0x1980 fs/ext4/file.c:-1
call_write_iter include/linux/fs.h:2058 [inline]
new_sync_write fs/read_write.c:518 [inline]
vfs_write+0x725/0xd60 fs/read_write.c:605
ksys_pwrite64 fs/read_write.c:712 [inline]
__do_sys_pwrite64 fs/read_write.c:722 [inline]
__se_sys_pwrite64 fs/read_write.c:719 [inline]
__x64_sys_pwrite64+0x191/0x220 fs/read_write.c:719
do_syscall_64+0x31/0x40 arch/x86/entry/common.c:46
entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7fe6cae28e89
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:00007fe6cadc4218 EFLAGS: 00000246 ORIG_RAX: 0000000000000012
RAX: ffffffffffffffda RBX: 00007fe6caeb06d8 RCX: 00007fe6cae28e89
RDX: 00000000200000c1 RSI: 00002000000000c0 RDI: 0000000000000005
RBP: 00007fe6caeb06d0 R08: 00007ffe3428a097 R09: 0000000000000000
R10: 0000000000009000 R11: 0000000000000246 R12: 00007fe6cae7d614
R13: 0031656c69662f2e R14: 00007ffe34289fb0 R15: 00007ffe3428a098
Modules linked in:
---[ end trace 8582299b87a171af ]---
RIP: 0010:ext4_ext_insert_index+0x52d/0x530 fs/ext4/extents.c:1014
Code: 4c 89 fa e9 ca fd ff ff 44 89 f1 80 e1 07 fe c1 38 c1 0f 8c dd fd ff ff 4c 89 f7 e8 6d a2 d3 ff e9 d0 fd ff ff e8 e3 b2 99 ff <0f> 0b 90 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 81 ec c0 00 00
RSP: 0018:ffffc900013a6b20 EFLAGS: 00010293
RAX: ffffffff81c9e01d RBX: ffff888120de0424 RCX: ffff888114d0e2c0
RDX: 0000000000000000 RSI: 00000000fffffffe RDI: 0000000000000000
RBP: ffffc900013a6b90 R08: dffffc0000000000 R09: ffffed10242c0990
R10: ffffed10242c0990 R11: 1ffff110242c098f R12: 0000000000000000
R13: 00000000000000cb R14: 00000000fffffffe R15: 0000000000000054
FS: 00007fe6cadc46c0(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000200000002000 CR3: 0000000114035000 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 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