syzbot


kernel BUG in ext4_free_blocks

Status: auto-obsoleted due to no activity on 2023/04/30 03:35
Subsystems: ext4
[Documentation on labels]
Reported-by: syzbot+04d883bb7abf4e94ef4f@syzkaller.appspotmail.com
First crash: 669d, last: 669d
Similar bugs (5)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-5-10 kernel BUG in ext4_free_blocks 3 1074d 1106d 0/2 auto-closed as invalid on 2022/03/13 09:34
linux-4.14 kernel BUG in ext4_mb_load_buddy_gfp ext4 C 6 628d 1301d 0/1 upstream: reported C repro on 2021/04/29 16:39
android-5-10 kernel BUG in ext4_free_blocks (2) ext4 C error 25 569d 871d 2/2 fixed on 2023/05/04 14:51
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C error 13 648d 1467d 0/1 upstream: reported C repro on 2020/11/15 12:08
android-54 kernel BUG at fs/ext4/ext4.h:LINE! ext4 C 438 12d 1504d 0/2 upstream: reported C repro on 2020/10/08 13:59

Sample crash report:
EXT4-fs error (device loop1): ext4_xattr_block_get:551: inode #18: comm syz-executor.1: corrupted xattr block 176
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3354!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 30898 Comm: syz-executor.1 Not tainted 5.15.80-syzkaller-00318-g72d681a01da5 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/12/2023
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3354 [inline]
RIP: 0010:ext4_free_blocks+0x2bd4/0x2cb0 fs/ext4/mballoc.c:5996
Code: f6 48 0f a3 05 2d d4 11 05 0f 92 c3 40 0f 92 c6 31 ff e8 ff ad 7e ff 84 db 75 18 e8 e6 aa 7e ff e9 bb 00 00 00 e8 dc aa 7e ff <0f> 0b e8 d5 aa 7e ff 0f 0b 65 ff 05 e4 79 0f 7e 48 c7 c0 18 aa 02
RSP: 0018:ffffc90008dc76c0 EFLAGS: 00010283
RAX: ffffffff81f2f394 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc9000750a000 RSI: 0000000000000778 RDI: 0000000000000779
RBP: ffffc90008dc7940 R08: ffffffff81f2d366 R09: ffffc90008dc7880
R10: fffff520011b8f17 R11: 1ffff920011b8f10 R12: ffff88810e6b0000
R13: dffffc0000000000 R14: 000000006e617070 R15: 0000000000000dcc
FS:  00007f69575ca700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f00de0d6000 CR3: 0000000111da2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 ext4_clear_blocks+0x3b5/0x420 fs/ext4/indirect.c:880
 ext4_free_data fs/ext4/indirect.c:941 [inline]
 ext4_ind_truncate+0x45d/0xd70 fs/ext4/indirect.c:1146
 ext4_truncate+0x923/0xf50 fs/ext4/inode.c:4270
 ext4_setattr+0xfe4/0x1920 fs/ext4/inode.c:5529
 notify_change+0xd8f/0x1040 fs/attr.c:426
 do_truncate fs/open.c:66 [inline]
 do_sys_ftruncate+0x55d/0x7d0 fs/open.c:194
 __do_sys_ftruncate fs/open.c:205 [inline]
 __se_sys_ftruncate fs/open.c:203 [inline]
 __x64_sys_ftruncate+0x60/0x70 fs/open.c:203
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x44/0xd0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x61/0xcb
RIP: 0033:0x7f6960b780c9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 f1 19 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:00007f69575ca168 EFLAGS: 00000246 ORIG_RAX: 000000000000004d
RAX: ffffffffffffffda RBX: 00007f6960c98050 RCX: 00007f6960b780c9
RDX: 0000000000000000 RSI: 00000000000000fc RDI: 0000000000000004
RBP: 00007f6960bd3ae9 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff0785b48f R14: 00007f69575ca300 R15: 0000000000022000
 </TASK>
Modules linked in:
---[ end trace 284d167deada310f ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3354 [inline]
RIP: 0010:ext4_free_blocks+0x2bd4/0x2cb0 fs/ext4/mballoc.c:5996
Code: f6 48 0f a3 05 2d d4 11 05 0f 92 c3 40 0f 92 c6 31 ff e8 ff ad 7e ff 84 db 75 18 e8 e6 aa 7e ff e9 bb 00 00 00 e8 dc aa 7e ff <0f> 0b e8 d5 aa 7e ff 0f 0b 65 ff 05 e4 79 0f 7e 48 c7 c0 18 aa 02
RSP: 0018:ffffc90008dc76c0 EFLAGS: 00010283
RAX: ffffffff81f2f394 RBX: 0000000000000001 RCX: 0000000000040000
RDX: ffffc9000750a000 RSI: 0000000000000778 RDI: 0000000000000779
RBP: ffffc90008dc7940 R08: ffffffff81f2d366 R09: ffffc90008dc7880
R10: fffff520011b8f17 R11: 1ffff920011b8f10 R12: ffff88810e6b0000
R13: dffffc0000000000 R14: 000000006e617070 R15: 0000000000000dcc
FS:  00007f69575ca700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 0000000111da2000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (1):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/01/22 02:39 android13-5.15-lts 72d681a01da5 cc0f9968 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-15 kernel BUG in ext4_free_blocks
* Struck through repros no longer work on HEAD.