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
First crash: 28d, last: 48m
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 41 2d00h 24d 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 27 15d 27d 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 (449):
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/08/18 08:48 upstream ff68e5f557f6 1e72964b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root 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/08/16 18:07 upstream 3eb40771c00a 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in f_midi2_stop_eps
2026/08/16 03:31 upstream 15ef2f78c49d 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/08/15 14:43 upstream 15ef2f78c49d 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/08/15 13:39 upstream dac3e89a2c90 746171ee .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/08/22 12:18 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/22 10:47 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/22 06:15 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/22 05:15 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/22 00:37 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/21 19:36 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/21 18:20 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/21 18:02 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/21 16:52 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/21 15: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/21 13:42 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/21 11:18 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/21 04:31 upstream 9d2ed026f031 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/20 23:33 upstream 9d2ed026f031 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/20 14:19 upstream a4ff2be345d0 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/20 04:50 upstream bd5f485f3f02 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/19 23:07 upstream bd5f485f3f02 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/19 21:03 upstream bd5f485f3f02 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/19 18:40 upstream bd5f485f3f02 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/19 14:30 upstream b126f6f5940f 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/19 10:26 upstream b126f6f5940f 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/19 09:12 upstream b126f6f5940f 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/19 05:55 upstream b126f6f5940f 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/19 01:27 upstream 0f23d56f17fd 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/18 23:49 upstream 0f23d56f17fd 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/18 22:44 upstream 0f23d56f17fd 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/18 20:47 upstream 0f23d56f17fd 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/18 18:08 upstream 0f23d56f17fd 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/18 05:18 upstream ff68e5f557f6 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/18 03:01 upstream ff68e5f557f6 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/17 05:37 upstream dcb68831eac7 746171ee .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/17 03:38 upstream dcb68831eac7 746171ee .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/17 02:14 upstream dcb68831eac7 746171ee .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/17 00:43 upstream dcb68831eac7 746171ee .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/16 22:08 upstream dcb68831eac7 746171ee .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/16 15:38 upstream 3eb40771c00a 746171ee .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/16 12:22 upstream 3eb40771c00a 746171ee .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/16 08:30 upstream 3eb40771c00a 746171ee .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/16 04:34 upstream 3eb40771c00a 746171ee .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/15 23:24 upstream 15ef2f78c49d 746171ee .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/15 22:11 upstream 15ef2f78c49d 746171ee .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/15 20:48 upstream 15ef2f78c49d 746171ee .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/15 18:26 upstream 15ef2f78c49d 746171ee .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/17 19:39 linux-next 4477a78374a5 1e72964b .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/17 17:23 linux-next 4477a78374a5 1e72964b .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
2026/08/17 16:06 linux-next 4477a78374a5 1e72964b .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
2026/08/16 23:34 linux-next 4477a78374a5 746171ee .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.