syzbot


kernel BUG in ext4_free_blocks

Status: auto-closed as invalid on 2022/03/13 09:34
Reported-by: syzbot+c39719d3b39f896329e8@syzkaller.appspotmail.com
First crash: 394d, last: 361d
similar bugs (7):
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in ext4_mb_load_buddy_gfp C 5 35d 589d 0/1 upstream: reported C repro on 2021/04/29 16:39
android-5-10 kernel BUG in ext4_free_blocks (2) C error 4 13d 159d 0/2 upstream: reported C repro on 2022/07/04 02:04
linux-4.19 kernel BUG at fs/ext4/ext4.h:LINE! C error 9 68d 754d 0/1 upstream: reported C repro on 2020/11/15 12:08
android-54 kernel BUG at fs/ext4/ext4.h:LINE! C 8 68d 792d 0/2 upstream: reported C repro on 2020/10/08 13:59
upstream kernel BUG at fs/ext4/ext4.h:LINE! 1 708d 704d 0/24 auto-closed as invalid on 2021/05/01 06:31
upstream kernel BUG in ext4_get_group_info C error 17 6h26m 478d 0/24 upstream: reported C repro on 2021/08/19 08:21
android-5-15 kernel BUG in ext4_mb_load_buddy_gfp C error 1 13d 13d 0/2 upstream: reported C repro on 2022/11/27 06:38

Sample crash report:
EXT4-fs error (device loop1): ext4_dirty_inode:5995: inode #17: comm syz-executor.1: mark_inode_dirty error
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3246!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 8156 Comm: syz-executor.1 Not tainted 5.10.82-syzkaller-00155-g8d21bcc704ea #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3246 [inline]
RIP: 0010:ext4_free_blocks+0x297a/0x2a60 fs/ext4/mballoc.c:5370
Code: f6 48 0f a3 1d 77 5f da 04 0f 92 c3 40 0f 92 c6 31 ff e8 29 6d 87 ff 84 db 75 18 e8 40 6a 87 ff e9 ba 00 00 00 e8 36 6a 87 ff <0f> 0b e8 2f 6a 87 ff 0f 0b 65 83 05 31 fc 1c 7e 01 48 c7 c0 98 b3
RSP: 0018:ffffc9001046efa0 EFLAGS: 00010283
RAX: ffffffff81e5714a RBX: 0000000000000055 RCX: 0000000000040000
RDX: ffffc9000311b000 RSI: 0000000000004ee5 RDI: 0000000000004ee6
RBP: ffffc9001046f1f0 R08: ffffffff81e5533f R09: ffffc9001046f140
R10: fffff5200208de2f R11: 0000000000000000 R12: ffffc9001046f100
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888154cea000
FS:  00007f467e479700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000010d448000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_clear_blocks+0x3b3/0x420 fs/ext4/indirect.c:877
 ext4_free_data+0x12d/0x330 fs/ext4/indirect.c:937
 ext4_free_branches+0x6f/0x640 fs/ext4/indirect.c:1095
 ext4_free_branches+0x2df/0x640 fs/ext4/indirect.c:1030
 ext4_ind_truncate+0xb68/0x1080 fs/ext4/indirect.c:1181
 ext4_truncate+0xae0/0x1270 fs/ext4/inode.c:4307
 ext4_setattr+0x1097/0x1930 fs/ext4/inode.c:5546
 notify_change+0xb78/0x1020 fs/attr.c:336
 do_truncate+0x1ea/0x2d0 fs/open.c:65
 handle_truncate fs/namei.c:2989 [inline]
 do_open fs/namei.c:3331 [inline]
 path_openat+0x294e/0x3500 fs/namei.c:3444
 do_filp_open+0x200/0x440 fs/namei.c:3471
 do_sys_openat2+0x13b/0x470 fs/open.c:1211
 do_sys_open fs/open.c:1227 [inline]
 __do_sys_open fs/open.c:1235 [inline]
 __se_sys_open fs/open.c:1231 [inline]
 __x64_sys_open+0x221/0x270 fs/open.c:1231
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7f4680744ae9
Code: ff ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 40 00 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 bc ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007f467e479188 EFLAGS: 00000246 ORIG_RAX: 0000000000000002
RAX: ffffffffffffffda RBX: 00007f46808580e0 RCX: 00007f4680744ae9
RDX: 0000000000000000 RSI: 00000000001c5b42 RDI: 0000000020000080
RBP: 00007f468079ef6d R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fff8fb49e6f R14: 00007f467e479300 R15: 0000000000022000
Modules linked in:
---[ end trace f1d80feb65d50e53 ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3246 [inline]
RIP: 0010:ext4_free_blocks+0x297a/0x2a60 fs/ext4/mballoc.c:5370
Code: f6 48 0f a3 1d 77 5f da 04 0f 92 c3 40 0f 92 c6 31 ff e8 29 6d 87 ff 84 db 75 18 e8 40 6a 87 ff e9 ba 00 00 00 e8 36 6a 87 ff <0f> 0b e8 2f 6a 87 ff 0f 0b 65 83 05 31 fc 1c 7e 01 48 c7 c0 98 b3
RSP: 0018:ffffc9001046efa0 EFLAGS: 00010283
RAX: ffffffff81e5714a RBX: 0000000000000055 RCX: 0000000000040000
RDX: ffffc9000311b000 RSI: 0000000000004ee5 RDI: 0000000000004ee6
RBP: ffffc9001046f1f0 R08: ffffffff81e5533f R09: ffffc9001046f140
R10: fffff5200208de2f R11: 0000000000000000 R12: ffffc9001046f100
R13: dffffc0000000000 R14: 0000000000000001 R15: ffff888154cea000
FS:  00007f467e479700(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020001000 CR3: 000000010d448000 CR4: 00000000003526a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Manager Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Title
ci2-android-5-10 2021/12/02 03:24 android12-5.10-lts 8d21bcc704ea 61f86278 .config log report info kernel BUG in ext4_free_blocks
ci2-android-5-10 2021/11/10 20:53 android12-5.10-lts 76698ea35fd3 75b04091 .config log report info kernel BUG in ext4_free_blocks
ci2-android-5-10 2021/12/13 09:29 android12-5.10-lts e2aed161fc26 49ca1f59 .config log report info kernel BUG in ext4_mb_load_buddy_gfp
* Struck through repros no longer work on HEAD.