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: 9d22h, last: 4h48m
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 Error
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 25 1h18m 5d21h 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 2 syz, C 25 6d16h 8d22h 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 (283):
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/02 20:53 upstream bd1dde877520 e611ffe1 .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/02 18:19 upstream 2d2338c93da7 e611ffe1 .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/02 13:51 upstream 2d2338c93da7 e611ffe1 .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/02 06:44 upstream 2d2338c93da7 e611ffe1 .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/01 23:32 upstream 2d2338c93da7 e611ffe1 .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/01 19:44 upstream 0131b508c0e2 e611ffe1 .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/01 18:40 upstream 0131b508c0e2 e611ffe1 .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/01 12:24 upstream 0131b508c0e2 e611ffe1 .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/01 12:03 upstream 0131b508c0e2 e611ffe1 .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/01 10:29 upstream 0131b508c0e2 e611ffe1 .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/01 10:10 upstream 0131b508c0e2 e611ffe1 .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/01 09:18 upstream 0131b508c0e2 e611ffe1 .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/01 08:57 upstream 0131b508c0e2 e611ffe1 .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/01 06:05 upstream 0131b508c0e2 7664cf44 .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/01 03:37 upstream 8ba098e6b6ff 7664cf44 .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/01 03:29 upstream 8ba098e6b6ff 7664cf44 .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/01 03:28 upstream 8ba098e6b6ff 7664cf44 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-root general protection fault in f_midi2_stop_eps
2026/07/27 13:24 upstream f5098b6bae76 492bab15 .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/07/26 17:00 upstream 3dab139d4795 492bab15 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs general protection fault in f_midi2_stop_eps
2026/08/03 06:52 upstream bd1dde877520 e611ffe1 .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/03 05:06 upstream bd1dde877520 e611ffe1 .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/02 22:26 upstream bd1dde877520 e611ffe1 .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/02 16:20 upstream 2d2338c93da7 e611ffe1 .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/02 14:52 upstream 2d2338c93da7 e611ffe1 .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/02 12:06 upstream 2d2338c93da7 e611ffe1 .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/02 01:40 upstream 02dc699f83d0 e611ffe1 .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/02 00:35 upstream 02dc699f83d0 e611ffe1 .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/01 20:56 upstream 02dc699f83d0 e611ffe1 .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/01 17:14 upstream 02dc699f83d0 e611ffe1 .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/01 07:55 upstream a2cf4ef33184 e611ffe1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/31 21:50 upstream 8ba098e6b6ff 7664cf44 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/31 17:49 upstream 8ba098e6b6ff 7664cf44 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/31 15:46 upstream 8ba098e6b6ff 7664cf44 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/31 14:35 upstream 8ba098e6b6ff 7664cf44 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/31 09:34 upstream e05b559f9cda aaffb173 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/31 07:33 upstream e05b559f9cda aaffb173 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/31 05:35 upstream e05b559f9cda aaffb173 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/30 19:59 upstream 11028ab62899 0a1bc234 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/30 09:47 upstream fc46aed51f62 2377cd3d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/30 08:59 upstream fc46aed51f62 2377cd3d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/30 07:43 upstream fc46aed51f62 2377cd3d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/30 06:08 upstream fc46aed51f62 2377cd3d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/30 04:38 upstream fc46aed51f62 2377cd3d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/29 19:19 upstream fc02acf6ac0c b63596d1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/29 17:05 upstream fc02acf6ac0c b63596d1 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/29 07:33 upstream 3b5f4b83c4ab 19622d9d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
2026/07/29 04:56 upstream 3b5f4b83c4ab 19622d9d .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root general protection fault in f_midi2_stop_eps
* Struck through repros no longer work on HEAD.