syzbot


kernel BUG in ext4_ind_remove_space

Status: fixed on 2022/05/13 02:56
Reported-by: syzbot+7a806094edd5d07ba029@syzkaller.appspotmail.com
Fix commit: 22c450d39f89 ext4: limit length to bitmap_maxbytes - blocksize in punch_hole
First crash: 1037d, last: 926d
Cause bisection: failed (error log, bisect log)
  
Duplicate bugs (1)
duplicates (1):
Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
kernel BUG in ext4_write_inline_data_end C error 3 927d 994d 0/2 closed as dup on 2022/03/04 15:25
Discussions (10)
Title Replies (including bot) Last reply
[PATCH 4.19 00/53] 4.19.240-rc1 review 65 (65) 2022/04/30 07:56
[PATCH 5.10 00/86] 5.10.113-rc1 review 96 (96) 2022/04/27 20:32
[PATCH 5.15 000/124] 5.15.36-rc1 review 137 (137) 2022/04/27 11:11
[PATCH 5.4 00/62] 5.4.191-rc1 review 68 (68) 2022/04/27 11:06
[PATCH 5.17 000/146] 5.17.5-rc1 review 156 (156) 2022/04/27 10:01
[PATCH 4.14 00/43] 4.14.277-rc1 review 46 (46) 2022/04/27 08:52
[PATCH 4.9 00/24] 4.9.312-rc1 review 30 (30) 2022/04/27 08:44
[PATCH v3] ext4: limit length to bitmap_maxbytes - blocksize in punch_hole 2 (2) 2022/04/03 14:53
[PATCH v2] ext4: check if offset+length is valid in fallocate 6 (6) 2022/03/31 18:03
[PATCH] ext4: check if offset+length is within a valid range in fallocate 5 (5) 2022/03/16 02:14
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 836d 1017d 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 962d 1012d 22/28 fixed on 2023/02/24 13:50
linux-4.19 kernel BUG in ext4_ind_remove_space C error 3 847d 1034d 0/1 upstream: reported C repro on 2022/01/23 01:21
android-54 kernel BUG in ext4_ind_remove_space C 1 1037d 1037d 2/2 fixed on 2022/06/08 16:26
Last patch testing requests (5)
Created Duration User Patch Repo Result
2022/03/31 20:10 11m tadeusz.struk@linaro.org patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK
2022/03/17 00:39 8m tadeusz.struk@linaro.org patch https://android.googlesource.com/kernel/common android12-5.10 OK
2022/03/17 00:25 8m tadeusz.struk@linaro.org patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master OK
2022/03/15 19:31 8m tadeusz.struk@linaro.org patch https://android.googlesource.com/kernel/common android12-5.10 error
2022/03/15 19:29 4m tadeusz.struk@linaro.org patch git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master error

Sample crash report:
EXT4-fs warning (device sda1): ext4_block_to_path:107: block 1074791436 > max in inode 1137
------------[ cut here ]------------
kernel BUG at fs/ext4/indirect.c:1239!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 0 PID: 365 Comm: syz-executor340 Not tainted 5.10.104-syzkaller-00370-gd221da1d6fcb #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:ext4_ind_remove_space+0x2309/0x2310 fs/ext4/indirect.c:1239
Code: f2 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 84 f3 ff ff 48 89 df e8 86 26 cd ff e9 77 f3 ff ff e8 2c 16 bc 02 e8 67 24 93 ff <0f> 0b 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83
RSP: 0018:ffffc90000a1fb00 EFLAGS: 00010293
RAX: ffffffff81d9c919 RBX: 0000000000000001 RCX: ffff8881071e62c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000a1fd60 R08: ffffffff81d9adf9 R09: ffffed103ee2a5d8
R10: ffffed103ee2a5d8 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffc90000a1fcf0 R14: ffffc90000a1fbe0 R15: 0000000000000000
FS:  00007fe260aa8700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020400681 CR3: 00000001071f1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_punch_hole+0x8cc/0xf70 fs/ext4/inode.c:4160
 ext4_fallocate+0x125/0x760 fs/ext4/extents.c:4692
 vfs_fallocate+0x5e7/0xa90 fs/open.c:310
 ksys_fallocate fs/open.c:333 [inline]
 __do_sys_fallocate fs/open.c:341 [inline]
 __se_sys_fallocate fs/open.c:339 [inline]
 __x64_sys_fallocate+0xc0/0x110 fs/open.c:339
 do_syscall_64+0x31/0x70 arch/x86/entry/common.c:46
 entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x7fe260af5df9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 81 14 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:00007fe260aa8308 EFLAGS: 00000246 ORIG_RAX: 000000000000011d
RAX: ffffffffffffffda RBX: 000000000000003f RCX: 00007fe260af5df9
RDX: 0000000000000000 RSI: 0000000000000003 RDI: 0000000000000005
RBP: 00007fe260b7e408 R08: 0000000000000000 R09: 0000000000000000
R10: 00000ffeffeff000 R11: 0000000000000246 R12: 00000ffeffeff000
R13: 00007fe260b7e400 R14: 00007fe260b4c004 R15: 0000000000022000
Modules linked in:
---[ end trace 4c06e7c215a474ec ]---
RIP: 0010:ext4_ind_remove_space+0x2309/0x2310 fs/ext4/indirect.c:1239
Code: f2 ff ff 89 d9 80 e1 07 80 c1 03 38 c1 0f 8c 84 f3 ff ff 48 89 df e8 86 26 cd ff e9 77 f3 ff ff e8 2c 16 bc 02 e8 67 24 93 ff <0f> 0b 0f 1f 44 00 00 55 48 89 e5 41 57 41 56 41 55 41 54 53 48 83
RSP: 0018:ffffc90000a1fb00 EFLAGS: 00010293
RAX: ffffffff81d9c919 RBX: 0000000000000001 RCX: ffff8881071e62c0
RDX: 0000000000000000 RSI: 0000000000000000 RDI: 0000000000000000
RBP: ffffc90000a1fd60 R08: ffffffff81d9adf9 R09: ffffed103ee2a5d8
R10: ffffed103ee2a5d8 R11: 0000000000000000 R12: dffffc0000000000
R13: ffffc90000a1fcf0 R14: ffffc90000a1fbe0 R15: 0000000000000000
FS:  00007fe260aa8700(0000) GS:ffff8881f7000000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020400681 CR3: 00000001071f1000 CR4: 00000000003506b0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (55):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2022/03/15 15:35 android12-5.10-lts d221da1d6fcb 9e8eaa75 .config console log report syz C ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/01/20 12:02 android12-5.10-lts f45f895af546 5da9499f .config console log report syz C ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/05/11 08:18 android12-5.10-lts de64d941a71a 8d7b3b67 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/05/10 18:37 android12-5.10-lts de64d941a71a 8b277b8e .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/05/03 10:51 android12-5.10-lts de64d941a71a 2df221f6 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/05/02 08:13 android12-5.10-lts de64d941a71a 2df221f6 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/05/01 09:32 android12-5.10-lts de64d941a71a 2df221f6 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/29 05:21 android12-5.10-lts 904c5c08bb41 e9076525 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/25 01:02 android12-5.10-lts e08dd85cc95e 131df97d .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/23 17:19 android12-5.10-lts e08dd85cc95e 131df97d .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/19 06:24 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/18 18:10 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/18 10:50 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/15 21:01 android12-5.10-lts 414e6c8e941c 8bcc32a6 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/10 06:25 android12-5.10-lts 414e6c8e941c e22c3da3 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/04/04 04:59 android12-5.10-lts 414e6c8e941c 79a2a8fc .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/27 06:03 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/27 02:18 android12-5.10-lts ab2d1d40a128 89bc8608 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/24 05:04 android12-5.10-lts ab2d1d40a128 5ff41e94 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/21 07:02 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/21 00:14 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/19 11:03 android12-5.10-lts 5287773dba0d e2d91b1d .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/14 09:35 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/14 07:28 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/14 06:04 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/12 19:58 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/12 17:54 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/12 12:07 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/12 00:52 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/11 08:00 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/11 06:16 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/10 04:19 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/10 03:42 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/09 19:49 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/09 06:32 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/08 23:47 android12-5.10-lts e1b86e7f5cbb 9e8eaa75 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/05 16:53 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/05 08:47 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/04 19:31 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/04 10:29 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/04 00:30 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/03 00:06 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/02 12:19 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/02 11:57 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/01 22:32 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/01 01:16 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/03/01 00:14 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/02/28 19:33 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/02/28 12:01 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/02/27 23:09 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/02/27 11:49 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/02/27 01:37 android12-5.10-lts e1b86e7f5cbb 45a13a73 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/02/21 18:49 android12-5.10-lts c194212a0332 3cd800e4 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/02/12 06:45 android12-5.10-lts 86e6176a4240 8b9ca619 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
2022/01/28 12:38 android12-5.10-lts 0347b1658399 495e00c5 .config console log report info ci2-android-5-10 kernel BUG in ext4_ind_remove_space
* Struck through repros no longer work on HEAD.