syzbot


kernel BUG in ext4_trim_fs

Status: upstream: reported C repro on 2023/07/11 04:17
Reported-by: syzbot+7c8d30c5e1c4731ea312@syzkaller.appspotmail.com
First crash: 231d, last: 43d
Similar bugs (1)
Kernel Title Repro Cause bisect Fix bisect Count Last Reported Patched Status
android-6-1 kernel BUG in ext4_trim_fs origin:lts C error done 9 146d 215d 0/2 auto-obsoleted due to no activity on 2024/01/11 20:47
Last patch testing requests (4)
Created Duration User Patch Repo Result
2024/01/15 06:25 16m retest repro android12-5.4 report log
2024/01/15 06:25 6m retest repro android12-5.4 report log
2023/11/05 20:14 5m retest repro android12-5.4 report log
2023/08/27 18:22 26m retest repro android12-5.4 report log

Sample crash report:
------------[ cut here ]------------
kernel BUG at fs/ext4/ext4.h:2984!
invalid opcode: 0000 [#1] PREEMPT SMP KASAN
CPU: 1 PID: 356 Comm: syz-executor122 Not tainted 5.4.259-syzkaller-00009-gc0585bc7c835 #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/17/2023
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline]
RIP: 0010:ext4_trim_fs+0x1e69/0x1e80 fs/ext4/mballoc.c:5374
Code: 80 e1 07 80 c1 03 38 c1 0f 8c 40 e7 ff ff 48 8d bc 24 f0 01 00 00 e8 d6 ba c8 ff e9 2e e7 ff ff e8 3c a4 6f ff e8 07 ea 98 ff <0f> 0b e8 00 ea 98 ff 0f 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
RSP: 0018:ffff8881dceff500 EFLAGS: 00010293
RAX: ffffffff81cb5a99 RBX: 0000000000000001 RCX: ffff8881dd303f00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff8881dceff770 R08: ffffffff81cb4414 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000000000001
R13: dffffc0000000000 R14: ffff8881dcf32000 R15: 0000000000000001
FS:  000055555672f380(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a2a3a241d8 CR3: 00000001dcdd9000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 ext4_ioctl+0x2168/0x3ff0 fs/ext4/ioctl.c:1128
 do_vfs_ioctl+0x742/0x1720 fs/ioctl.c:47
 ksys_ioctl fs/ioctl.c:742 [inline]
 __do_sys_ioctl fs/ioctl.c:749 [inline]
 __se_sys_ioctl fs/ioctl.c:747 [inline]
 __x64_sys_ioctl+0xd4/0x110 fs/ioctl.c:747
 do_syscall_64+0xca/0x1c0 arch/x86/entry/common.c:290
 entry_SYSCALL_64_after_hwframe+0x5c/0xc1
Modules linked in:
---[ end trace 618ed5404f140009 ]---
RIP: 0010:ext4_get_group_info fs/ext4/ext4.h:2984 [inline]
RIP: 0010:ext4_trim_fs+0x1e69/0x1e80 fs/ext4/mballoc.c:5374
Code: 80 e1 07 80 c1 03 38 c1 0f 8c 40 e7 ff ff 48 8d bc 24 f0 01 00 00 e8 d6 ba c8 ff e9 2e e7 ff ff e8 3c a4 6f ff e8 07 ea 98 ff <0f> 0b e8 00 ea 98 ff 0f 0b 66 66 2e 0f 1f 84 00 00 00 00 00 0f 1f
RSP: 0018:ffff8881dceff500 EFLAGS: 00010293
RAX: ffffffff81cb5a99 RBX: 0000000000000001 RCX: ffff8881dd303f00
RDX: 0000000000000000 RSI: 0000000000000001 RDI: 0000000000000001
RBP: ffff8881dceff770 R08: ffffffff81cb4414 R09: 0000000000000003
R10: ffffffffffffffff R11: dffffc0000000001 R12: 0000000000000001
R13: dffffc0000000000 R14: ffff8881dcf32000 R15: 0000000000000001
FS:  000055555672f380(0000) GS:ffff8881f6f00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000055a2a3a241d8 CR3: 00000001dcdd9000 CR4: 00000000003406a0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400

Crashes (11):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2023/12/26 09:41 android12-5.4 c0585bc7c835 fb427a07 .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro #1] [mounted in repro #2] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/07/11 04:07 android12-5.4 6d5c2c1877e5 d47e94ee .config strace log report syz C [disk image] [vmlinux] [kernel image] [mounted in repro] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2024/01/01 06:24 android12-5.4 c0585bc7c835 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/12/26 09:27 android12-5.4 c0585bc7c835 fb427a07 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/10/03 20:40 android12-5.4 5f1cbd78af59 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/10/03 20:26 android12-5.4 5f1cbd78af59 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/10/03 20:16 android12-5.4 5f1cbd78af59 65faba36 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/09/03 15:39 android12-5.4 c83e2462239e 696ea0d2 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/08/06 18:13 android12-5.4 fed9191809bc 4ffcc9ef .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/07/24 12:24 android12-5.4 14e059a4e07a b03242d7 .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
2023/07/11 03:51 android12-5.4 6d5c2c1877e5 d47e94ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-android-5-4-kasan kernel BUG in ext4_trim_fs
* Struck through repros no longer work on HEAD.