From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oa1-f70.google.com (mail-oa1-f70.google.com [209.85.160.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C63A53C1D6E for ; Thu, 30 Jul 2026 20:29:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.160.70 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785443354; cv=none; b=CBJapTMjixToDP7cNF6HaAeyx/53a+i2G9XGUPavF9Y5kQUU4RFvbifPkUd6rMf0HarWgVTV5YvTRUwa+WIR1x60gz+uK9yAxZ7pEecR6tZb0p11z9WSIfodaGL+Qzivg5L4bS5KdG/VrbCKEAVmd/twLMnSbjI3WuQkwS+WK8g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785443354; c=relaxed/simple; bh=i/5mgPKV3y2i+/YcXG1V1MYsOHV1270Ho+WV7V8zY4I=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=Kq3dBGcg/WTBTaK0ImKh3B+rKQDu/RsngF++mVvDb2gQBgWisxj6x9ByxBzBLyyWc80u531kbaKEuRBxBWETnNiLGU5/VndQNtRu5Yhi2uXH6BQqibz8OMiFOQx3Kz21YA2gTKCrVvhTlbkyRqgEOhJEDhupWftxrpNaRTUXxkA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com; arc=none smtp.client-ip=209.85.160.70 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=syzkaller.appspotmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=M3KW2WVRGUFZ5GODRSRYTGD7.apphosting.bounces.google.com Received: by mail-oa1-f70.google.com with SMTP id 586e51a60fabf-448d5182870so372893fac.1 for ; Thu, 30 Jul 2026 13:29:07 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785443343; x=1786048143; h=content-type:to:from:subject:message-id:in-reply-to:date :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to:content-type; bh=ZShlT3d74jjaUjVKjpJb+Y6LP2NLDXeH6OknTapXq7M=; b=igR7qJeZk6tDax8weZT9Or9KWqKvZ2yjKi4M09756oO0cLwHwld3xIJ+HqtjOge1RG 94Q+IKAeJwzbIxCkkWLpweco5eQZREgFAKFbccPwml5PNKmhp8y2FR3lJWOGkAwcn6Q+ AOYII1zdyHCsRWhq3XmskwuAQmXJfkhmbsTjyb1GjOWtliWsrSUy8jlifOw7eDJAnXfJ HHCbDFMwqqE6SXx2kLvobvhsOV3TD+/eqURx70i8MjOQLa+PLoDfYf3OdiUN0rvpbSXa DX7s00f3ggHCfvt6udyYyN9It+jjfumQa8ja/doZayDv14nsosX0lxyFfMBK/UUxbWZu 0Dfg== X-Gm-Message-State: AOJu0YycHjfo4EVyFnEB+A0mR8u8rU27BXFXsf4OUbXKdKAe40Gzr54D ap8DhYp2SUV+jrXW55AevYWqUa67KAcVrc9VRFyj2JttwC1AwKXCTMVQsiBYqSGqXA06lpwyeJK cfISRPqbAQavBpYnq7wlkIsMp6UZQ+vdozJkKC4OOC5HIcYE4BZ3dSkUfaqo= Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Received: by 2002:a05:6808:3084:b0:496:6b1:cc77 with SMTP id 5614622812f47-4ad9538e2d3mr2014011b6e.32.1785443343158; Thu, 30 Jul 2026 13:29:03 -0700 (PDT) Date: Thu, 30 Jul 2026 13:29:03 -0700 In-Reply-To: X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a6bb40f.1e301a77.2b0661.0000.GAE@google.com> Subject: Re: [syzbot] [usb?] general protection fault in f_midi2_stop_eps From: syzbot To: linux-kernel@vger.kernel.org, pimyn@google.com, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" Hello, syzbot has tested the proposed patch but the reproducer is still triggering an issue: general protection fault in f_midi2_stop_eps 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/24/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 67 82 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: ffff888032d2c120 RCX: ffff88801d2ebe00 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000100 RBP: ffff888032d2c100 R08: ffffffff8faf9f37 R09: 1ffffffff1f5f3e6 R10: dffffc0000000000 R11: fffffbfff1f5f3e7 R12: ffff888032d2c770 R13: dffffc0000000000 R14: ffff888032d2c128 R15: 0000000000000770 FS: 0000000000000000(0000) GS:ffff888125d3e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f590008b0f5 CR3: 0000000042aa6000 CR4: 00000000003526f0 Call Trace: 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 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 67 82 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: ffff888032d2c120 RCX: ffff88801d2ebe00 RDX: 0000000000000100 RSI: 0000000000000000 RDI: 0000000000000100 RBP: ffff888032d2c100 R08: ffffffff8faf9f37 R09: 1ffffffff1f5f3e6 R10: dffffc0000000000 R11: fffffbfff1f5f3e7 R12: ffff888032d2c770 R13: dffffc0000000000 R14: ffff888032d2c128 R15: 0000000000000770 FS: 0000000000000000(0000) GS:ffff888125d3e000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 00007f590008b0f5 CR3: 0000000042aa6000 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 67 82 e7 fa call 0xfae7827c 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 Tested on: commit: 3708dd94 Merge tag 'pm-7.2-rc6' of git://git.kernel.or.. git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=158925b9580000 kernel config: https://syzkaller.appspot.com/x/.config?x=cb17729fb04b1e3a dashboard link: https://syzkaller.appspot.com/bug?extid=bbb6dad313f4aaa8da6b compiler: Debian clang version 22.1.8 (++20260613092233+e80beda6e255-1~exp1~20260613092250.77), Debian LLD 22.1.8 Note: no patches were applied.