syzbot


kernel BUG in ext4_trim_fs

Status: auto-obsoleted due to no activity on 2024/01/11 20:47
Bug presence: origin:lts
[Documentation on labels]
Reported-by: syzbot+a9ecc95b9d734bd4b6e6@syzkaller.appspotmail.com
First crash: 484d, last: 415d
Cause bisection: failed (error log, bisect log)
  
Fix bisection: fixed by (bisect log) :
commit b4319e457d6e3fb33e443efeaf4634fc36e8a9ed
Author: Theodore Ts'o <tytso@mit.edu>
Date: Sat Apr 29 04:06:28 2023 +0000

  ext4: allow ext4_get_group_info() to fail

  
Bug presence (2)
Date Name Commit Repro Result
2023/07/26 lts (merge base) b1644a0031cf C [report] kernel BUG in ext4_trim_fs
2023/07/26 upstream (ToT) 0a8db05b571a C Didn't crash
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-54 kernel BUG in ext4_trim_fs C 32 6d02h 499d 0/2 upstream: reported C repro on 2023/07/11 04:17
Last patch testing requests (1)
Created Duration User Patch Repo Result
2023/08/31 23:26 8m retest repro android14-6.1 report log
Fix bisection attempts (2)
Created Duration User Patch Repo Result
2023/11/04 08:22 2h50m bisect fix android14-6.1 OK (1) job log
2023/10/03 14:47 47m bisect fix android14-6.1 OK (0) job log log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:3331!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 295 Comm: syz-executor333 Not tainted 6.1.25-syzkaller-00078-g1e114e6efac1 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/12/2023
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3331 [inline]
RIP: 0010:ext4_trim_fs+0x1787/0x17d0 fs/ext4/mballoc.c:6521
Code: 7f a7 00 e9 95 ee ff ff e8 96 cc 7e ff 8b 74 24 38 48 c7 c7 00 fb cb 86 48 89 da e8 63 7f a7 00 e9 01 ef ff ff e8 79 cc 7e ff <0f> 0b e8 f2 be f8 02 48 8b 4c 24 48 80 e1 07 38 c1 0f 8c 86 fe ff
RSP: 0018:ffffc90000e676e0 EFLAGS: 00010293
RAX: ffffffff81f61f47 RBX: 0000000000000001 RCX: ffff888121640000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000003f596bdf
RBP: ffffc90000e678d0 R08: ffffffff81f610a6 R09: fffff520001ccfc7
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810952a040
R13: ffff88810952a000 R14: dffffc0000000000 R15: 000000003f596bdf
FS:  0000555556233380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020040000 CR3: 0000000108ffe000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 <TASK>
 __ext4_ioctl fs/ext4/ioctl.c:1488 [inline]
 ext4_ioctl+0x271c/0x58c0 fs/ext4/ioctl.c:1611
 vfs_ioctl fs/ioctl.c:51 [inline]
 __do_sys_ioctl fs/ioctl.c:870 [inline]
 __se_sys_ioctl+0x114/0x190 fs/ioctl.c:856
 __x64_sys_ioctl+0x7b/0x90 fs/ioctl.c:856
 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
 do_syscall_64+0x3d/0xb0 arch/x86/entry/common.c:80
 entry_SYSCALL_64_after_hwframe+0x63/0xcd
RIP: 0033:0x7f9ef111f739
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 61 17 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:00007ffc89cd8058 EFLAGS: 00000246 ORIG_RAX: 0000000000000010
RAX: ffffffffffffffda RBX: 00007ffc89cd8228 RCX: 00007f9ef111f739
RDX: 0000000020000680 RSI: 00000000c0185879 RDI: 0000000000000006
RBP: 00007f9ef1192610 R08: 00007ffc89cd8228 R09: 00007ffc89cd8228
R10: 00007ffc89cd8228 R11: 0000000000000246 R12: 0000000000000001
R13: 00007ffc89cd8218 R14: 0000000000000001 R15: 0000000000000001
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:3331 [inline]
RIP: 0010:ext4_trim_fs+0x1787/0x17d0 fs/ext4/mballoc.c:6521
Code: 7f a7 00 e9 95 ee ff ff e8 96 cc 7e ff 8b 74 24 38 48 c7 c7 00 fb cb 86 48 89 da e8 63 7f a7 00 e9 01 ef ff ff e8 79 cc 7e ff <0f> 0b e8 f2 be f8 02 48 8b 4c 24 48 80 e1 07 38 c1 0f 8c 86 fe ff
RSP: 0018:ffffc90000e676e0 EFLAGS: 00010293
RAX: ffffffff81f61f47 RBX: 0000000000000001 RCX: ffff888121640000
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 000000003f596bdf
RBP: ffffc90000e678d0 R08: ffffffff81f610a6 R09: fffff520001ccfc7
R10: 0000000000000000 R11: dffffc0000000001 R12: ffff88810952a040
R13: ffff88810952a000 R14: dffffc0000000000 R15: 000000003f596bdf
FS:  0000555556233380(0000) GS:ffff8881f7100000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020040000 CR3: 0000000108ffe000 CR4: 00000000003506a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (9):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/07/26 21:14 android14-6.1 1e114e6efac1 41fe1bae .config strace log report syz C [mounted in repro] ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/10/03 20:47 android14-6.1 f7e7874d9b0d 65faba36 .config console log report info ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/10/03 20:20 android14-6.1 f7e7874d9b0d 65faba36 .config console log report info ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/10/03 20:09 android14-6.1 f7e7874d9b0d 65faba36 .config console log report info ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/09/03 13:53 android14-6.1 b15c3a3df0a8 696ea0d2 .config console log report info ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/08/17 09:54 android14-6.1 939d4b1ccc06 74b106b6 .config console log report info ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/08/08 05:51 android14-6.1 3926cc6ef8cc b1b6ae3d .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/08/06 18:13 android14-6.1 5e1d25ac2ab6 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-6-1 kernel BUG in ext4_trim_fs
2023/07/26 20:58 android14-6.1 1e114e6efac1 41fe1bae .config console log report info ci2-android-6-1 kernel BUG in ext4_trim_fs
* Struck through repros no longer work on HEAD.