general protection fault in f_midi2_stop_eps

Status: upstream: reported C repro on 2026/07/28 13:41
Subsystems: usb
Labels: prio:high
[Documentation on labels]
Reported-by: syzbot+bbb6dad313f4aaa8da6b@syzkaller.appspotmail.com
Fix commit: f0efaf187294 usb: gadget: midi2: Fix null-pointer dereference in f_midi2_free_ep_reqs
Patched on: [ci-qemu-gce-upstream-auto ci-qemu-native-arm64-kvm ci-qemu-upstream ci-qemu-upstream-386 ci-qemu2-riscv64 ci-snapshot-upstream-root ci-upstream-bpf-kasan-gce ci-upstream-bpf-next-kasan-gce ci-upstream-gce-arm64 ci-upstream-gce-leak ci-upstream-kasan-badwrites-root ci-upstream-kasan-gce ci-upstream-kasan-gce-386 ci-upstream-kasan-gce-root ci-upstream-kasan-gce-selinux-root ci-upstream-kasan-gce-smack-root ci-upstream-linux-next-kasan-gce-root ci-upstream-net-kasan-gce ci-upstream-net-this-kasan-gce ci-upstream-rust-kasan-gce ci2-upstream-fs ci2-upstream-kcsan-gce ci2-upstream-usb], missing on: [ci-qemu2-arm32 ci-qemu2-arm64 ci-qemu2-arm64-compat ci-qemu2-arm64-mte ci-upstream-kmsan-gce-386-root ci-upstream-kmsan-gce-root]
First crash: 58d, last: 15d
Cause bisection: failed (error log, bisect log)
  
✨ AI Patch Versions (2)
Version Stage Reported Report Link Job
1 upstream 2026/07/29 09:04 Discussion 8ce30b1a-8cf7-4e38-bcf7-1f69e6f6313f
1 moderation 2026/07/29 08:17 Discussion 8ce30b1a-8cf7-4e38-bcf7-1f69e6f6313f
✨ AI Jobs (2)
ID Workflow Result Correct Bug Created Started Finished Revision
8ce30b1a patching general protection fault in f_midi2_stop_eps 2026/07/29 07:35 2026/07/29 07:35 2026/07/29 08:17 19622d9d
bd796ad3 assessment-security DenialOfService: ✅ Exploitable: ❌ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ✅ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ general protection fault in f_midi2_stop_eps 2026/07/25 00:01 2026/07/25 00:01 2026/07/25 00:55 1bdb5c57
Duplicate bugs (1)
Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
general protection fault in f_midi2_free_ep prio:low usb 2 syz, C error 43 17d 54d 0/29 closed as dup on 2026/07/30 11:27
Discussions (2)
Title Replies (including bot) Last reply
[syzbot] [usb?] general protection fault in f_midi2_stop_eps 0 (6) 2026/07/30 18:25
[PATCH] usb: gadget: midi2: Fix null-pointer dereference in f_midi2_free_ep_reqs 3 (3) 2026/07/29 19:37
Similar bugs (1)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.6 general protection fault in f_midi2_stop_eps origin:upstream 2 syz, C 32 13d 57d 0/2 upstream: reported C repro on 2026/07/25 13:23
Last patch testing requests (4)
Created Duration User Patch Repo Result
2026/07/30 18:25 1h11m pimyn@google.com upstream report log
2026/07/29 14:50 28m pimyn@google.com upstream report log
2026/07/28 17:25 39m michail.tatas@gmail.com patch upstream log
2026/07/28 15:59 26m michail.tatas@gmail.com patch upstream report log

Sample crash report:
Oops: general protection fault, probably for non-canonical address 0xdffffc00000000ee: 0000 [#1] SMP KASAN PTI
KASAN: null-ptr-deref in range [0x0000000000000770-0x0000000000000777]
CPU: 1 UID: 0 PID: 29 Comm: ktimers/1 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/16/2026
RIP: 0010:f_midi2_free_ep_reqs drivers/usb/gadget/function/f_midi2.c:1166 [inline]
RIP: 0010:f_midi2_stop_eps+0x28e/0x4d0 drivers/usb/gadget/function/f_midi2.c:1246
Code: 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 57 95 e7 fa 41 bf 70 07 00 00 4d 03 3e 4c 89 f8 48 c1 e8 03 48 89 44 24 18 <42> 0f b6 04 28 84 c0 0f 85 12 02 00 00 41 8b 1f 31 ff 89 de e8 09
RSP: 0018:ffffc90000a3f6d8 EFLAGS: 00010206
RAX: 00000000000000ee RBX: ffff888044174120 RCX: ffff88801d2b3e00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000100
RBP: ffff888044174100 R08: ffffffff8faf9837 R09: 1ffffffff1f5f306
R10: dffffc0000000000 R11: fffffbfff1f5f307 R12: ffff888044174770
R13: dffffc0000000000 R14: ffff888044174128 R15: 0000000000000770
FS:  0000000000000000(0000) GS:ffff888125d41000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffeb5ac8da8 CR3: 00000000115aa000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 f_midi2_set_alt+0x11c/0xf00 drivers/usb/gadget/function/f_midi2.c:1296
 composite_setup+0x1ffd/0x3480 drivers/usb/gadget/composite.c:1933
 configfs_composite_setup+0xbd/0x100 drivers/usb/gadget/configfs.c:1877
 dummy_timer+0x2f77/0x4d50 drivers/usb/gadget/udc/dummy_hcd.c:1951
 __run_hrtimer kernel/time/hrtimer.c:2032 [inline]
 __hrtimer_run_queues+0x3eb/0xaf0 kernel/time/hrtimer.c:2096
 hrtimer_run_softirq+0x18f/0x260 kernel/time/hrtimer.c:2113
 handle_softirqs+0x1d9/0x6c0 kernel/softirq.c:622
 __do_softirq kernel/softirq.c:656 [inline]
 run_ktimerd+0x69/0x100 kernel/softirq.c:1151
 smpboot_thread_fn+0x57c/0xa80 kernel/smpboot.c:160
 kthread+0x388/0x470 kernel/kthread.c:436
 ret_from_fork+0x514/0xb70 arch/x86/kernel/process.c:158
 ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:245
 </TASK>
Modules linked in:
---[ end trace 0000000000000000 ]---
RIP: 0010:f_midi2_free_ep_reqs drivers/usb/gadget/function/f_midi2.c:1166 [inline]
RIP: 0010:f_midi2_stop_eps+0x28e/0x4d0 drivers/usb/gadget/function/f_midi2.c:1246
Code: 89 f0 48 c1 e8 03 42 80 3c 28 00 74 08 4c 89 f7 e8 57 95 e7 fa 41 bf 70 07 00 00 4d 03 3e 4c 89 f8 48 c1 e8 03 48 89 44 24 18 <42> 0f b6 04 28 84 c0 0f 85 12 02 00 00 41 8b 1f 31 ff 89 de e8 09
RSP: 0018:ffffc90000a3f6d8 EFLAGS: 00010206
RAX: 00000000000000ee RBX: ffff888044174120 RCX: ffff88801d2b3e00
RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000100
RBP: ffff888044174100 R08: ffffffff8faf9837 R09: 1ffffffff1f5f306
R10: dffffc0000000000 R11: fffffbfff1f5f307 R12: ffff888044174770
R13: dffffc0000000000 R14: ffff888044174128 R15: 0000000000000770
FS:  0000000000000000(0000) GS:ffff888125d41000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffeb5ac8da8 CR3: 00000000115aa000 CR4: 00000000003526f0
----------------
Code disassembly (best guess):
   0:	89 f0                	mov    %esi,%eax
   2:	48 c1 e8 03          	shr    $0x3,%rax
   6:	42 80 3c 28 00       	cmpb   $0x0,(%rax,%r13,1)
   b:	74 08                	je     0x15
   d:	4c 89 f7             	mov    %r14,%rdi
  10:	e8 57 95 e7 fa       	call   0xfae7956c
  15:	41 bf 70 07 00 00    	mov    $0x770,%r15d
  1b:	4d 03 3e             	add    (%r14),%r15
  1e:	4c 89 f8             	mov    %r15,%rax
  21:	48 c1 e8 03          	shr    $0x3,%rax
  25:	48 89 44 24 18       	mov    %rax,0x18(%rsp)
* 2a:	42 0f b6 04 28       	movzbl (%rax,%r13,1),%eax <-- trapping instruction
  2f:	84 c0                	test   %al,%al
  31:	0f 85 12 02 00 00    	jne    0x249
  37:	41 8b 1f             	mov    (%r15),%ebx
  3a:	31 ff                	xor    %edi,%edi
  3c:	89 de                	mov    %ebx,%esi
  3e:	e8                   	.byte 0xe8
  3f:	09                   	.byte 0x9

Crashes (541):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/07/29 20:57 upstream fc02acf6ac0c 6ef5c1e2 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/07/26 12:19 upstream 3dab139d4795 492bab15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/07/26 08:50 upstream 3dab139d4795 492bab15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/07/24 23:46 upstream 48a5a7ab8d6a dd737a83 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/08/03 02:16 linux-next cc2b5f627e8c e611ffe1 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in f_midi2_stop_eps
2026/07/31 01:10 linux-next cc2b5f627e8c aaffb173 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in f_midi2_stop_eps
2026/07/30 03:30 linux-next cc2b5f627e8c cb1587ea .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in f_midi2_stop_eps
2026/07/25 01:24 linux-next cc2b5f627e8c 05b26a28 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in f_midi2_stop_eps
2026/09/04 06:52 upstream 841e384b841a 801f0966 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in f_midi2_stop_eps
2026/09/03 19:44 upstream 8ab1afb2eb24 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/09/03 16:35 upstream 940de590b839 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in f_midi2_stop_eps
2026/09/03 16:28 upstream 940de590b839 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in f_midi2_stop_eps
2026/09/03 15:14 upstream 940de590b839 6a988719 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/08/17 08:48 upstream dcb68831eac7 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root general protection fault in f_midi2_stop_eps
2026/09/06 09:12 upstream 9f0346dcbea3 4f7b22a0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/09/05 18:16 upstream 4d7d9486c04d 4f7b22a0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/09/05 06:10 upstream 654ae5d73c05 4f7b22a0 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/09/04 21:53 upstream bc35965f6940 44dda43b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/09/04 19:50 upstream bc35965f6940 44dda43b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/09/04 16:21 upstream bc35965f6940 44dda43b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/29 15:51 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/29 14:33 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/29 13:12 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/29 11:25 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/29 10:08 upstream cf72cbb39da8 2f52988a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/28 19:09 upstream 818bebeb63dd 41d151d4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/28 13:21 upstream 818bebeb63dd 41d151d4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/28 08:38 upstream 818bebeb63dd e2fa417d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/28 06:55 upstream 818bebeb63dd e2fa417d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/28 05:42 upstream 818bebeb63dd e2fa417d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/27 19:19 upstream 818bebeb63dd c53a1b9c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/27 16:30 upstream 818bebeb63dd c53a1b9c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/27 13:57 upstream 818bebeb63dd c53a1b9c .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/27 05:37 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/27 03:39 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/27 01:49 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/26 21:09 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/26 19:10 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/26 17:50 upstream 818bebeb63dd a2b77b9e .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/26 06:07 upstream 818bebeb63dd 6a91adb4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/26 02:26 upstream 818bebeb63dd 6a91adb4 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/25 17:15 upstream 818bebeb63dd a9a1fc32 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/25 14:57 upstream 818bebeb63dd a9a1fc32 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/25 05:31 upstream 818bebeb63dd 614e416a .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/24 19:40 upstream 818bebeb63dd b55bd4c3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/24 17:18 upstream 818bebeb63dd b55bd4c3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/24 14:15 upstream 818bebeb63dd b55bd4c3 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/24 06:10 upstream 818bebeb63dd 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/24 03:46 upstream 818bebeb63dd 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/24 02:40 upstream 818bebeb63dd 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/23 23:12 upstream 818bebeb63dd 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/23 19:32 upstream 818bebeb63dd 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/23 17:32 upstream 818bebeb63dd 1e72964b .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/08/31 10:24 linux-next e30626823a40 2f52988a .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-rust-kasan-gce general protection fault in f_midi2_stop_eps
2026/08/26 03:58 linux-next a8406e6c0b79 6a91adb4 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-linux-next-kasan-gce-root general protection fault in f_midi2_stop_eps
* Struck through repros no longer work on HEAD.