syzbot


kernel BUG in ext4_ind_remove_space

Status: upstream: reported C repro on 2022/01/23 01:21
Reported-by: syzbot+1d61b6979dfd0eee586c@syzkaller.appspotmail.com
First crash: 822d, last: 635d
Fix bisection: failed (error log, bisect log)
  
Similar bugs (4)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-4.14 kernel BUG in ext4_ind_remove_space C inconclusive 1 623d 804d 0/1 upstream: reported C repro on 2022/02/09 11:57
upstream kernel BUG in ext4_ind_remove_space ext4 C error done 10 750d 800d 22/26 fixed on 2023/02/24 13:50
android-5-10 kernel BUG in ext4_ind_remove_space C error 55 714d 824d 2/2 fixed on 2022/05/13 02:56
android-54 kernel BUG in ext4_ind_remove_space C 1 825d 825d 2/2 fixed on 2022/06/08 16:26

Sample crash report:
EXT4-fs warning (device sda1): ext4_block_to_path:105: block 1074791436 > max in inode 13860
------------[ cut here ]------------
kernel BUG at fs/ext4/indirect.c:1236!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 8112 Comm: syz-executor490 Not tainted 4.19.211-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 06/29/2022
RIP: 0010:ext4_ind_remove_space+0xfab/0x13a0 fs/ext4/indirect.c:1236
Code: 00 0f 85 9d 03 00 00 48 8b 0b 4c 89 fe 44 8b 4c 24 20 48 8b 7c 24 10 48 83 c1 04 e8 ef b6 ff ff e9 16 f6 ff ff e8 f5 e5 84 ff <0f> 0b 4c 8b 7c 24 50 e9 8e f9 ff ff e8 e4 e5 84 ff 48 8b 7c 24 10
RSP: 0018:ffff8880b148fb10 EFLAGS: 00010293
RAX: ffff8880b1506540 RBX: 0000000000000004 RCX: ffffffff81dd920b
RDX: 0000000000000000 RSI: ffffffff81dd9f7b RDI: 0000000000000004
RBP: 0000000000000000 R08: 000000000000005c R09: 0000000000000004
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000001000
R13: ffff8880b148fbc0 R14: ffff8880b148fbe0 R15: ffff88808dfff730
FS:  00005555570b9300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f32fb5bc6c0 CR3: 00000000b4cf3000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_punch_hole+0xfd3/0x11f0 fs/ext4/inode.c:4412
 ext4_fallocate+0x3f8/0x2150 fs/ext4/extents.c:4960
 vfs_fallocate+0x487/0x9a0 fs/open.c:308
 ksys_fallocate fs/open.c:331 [inline]
 __do_sys_fallocate fs/open.c:339 [inline]
 __se_sys_fallocate fs/open.c:337 [inline]
 __x64_sys_fallocate+0xcf/0x140 fs/open.c:337
 do_syscall_64+0xf9/0x620 arch/x86/entry/common.c:293
 entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x7fa6a000b0d9
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 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 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffde80bb548 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007fa6a000b0d9
RDX: 0000000fffffffff RSI: 0000000000000003 RDI: 0000000000000005
RBP: 00007fa69ffcf0c0 R08: 0000000000000000 R09: 0000000000000000
R10: 000004010000bffe R11: 0000000000000246 R12: 00007fa69ffcf150
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
Modules linked in:
---[ end trace 2280b5ae0a9ddc98 ]---
RIP: 0010:ext4_ind_remove_space+0xfab/0x13a0 fs/ext4/indirect.c:1236
Code: 00 0f 85 9d 03 00 00 48 8b 0b 4c 89 fe 44 8b 4c 24 20 48 8b 7c 24 10 48 83 c1 04 e8 ef b6 ff ff e9 16 f6 ff ff e8 f5 e5 84 ff <0f> 0b 4c 8b 7c 24 50 e9 8e f9 ff ff e8 e4 e5 84 ff 48 8b 7c 24 10
RSP: 0018:ffff8880b148fb10 EFLAGS: 00010293
RAX: ffff8880b1506540 RBX: 0000000000000004 RCX: ffffffff81dd920b
RDX: 0000000000000000 RSI: ffffffff81dd9f7b RDI: 0000000000000004
RBP: 0000000000000000 R08: 000000000000005c R09: 0000000000000004
R10: 0000000000000004 R11: 0000000000000000 R12: 0000000000001000
R13: ffff8880b148fbc0 R14: ffff8880b148fbe0 R15: ffff88808dfff730
FS:  00005555570b9300(0000) GS:ffff8880ba000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f32fb5bc6c0 CR3: 00000000b4cf3000 CR4: 00000000003406f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (3):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/07/29 04:49 linux-4.19.y 3f8a27f9e27b fb95c74d .config console log report syz C ci2-linux-4-19 kernel BUG in ext4_ind_remove_space
2022/01/23 01:20 linux-4.19.y 3f8a27f9e27b 214351e1 .config console log report syz C ci2-linux-4-19 kernel BUG in ext4_ind_remove_space
2022/07/29 04:27 linux-4.19.y 3f8a27f9e27b fb95c74d .config console log report info ci2-linux-4-19 kernel BUG in ext4_ind_remove_space
* Struck through repros no longer work on HEAD.