From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f197.google.com (mail-oi1-f197.google.com [209.85.167.197]) (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 78F9342FCC4 for ; Tue, 11 Aug 2026 10:19:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786443582; cv=none; b=mTYmkZ7uVI3Oo9NbxP/IktCA/2TyOeluEMeLONFytJCzOll+EYRFoke8GOxrD1zTsp/A0IfZAmV+KpSGHl4lki7SxEKQaRU0GIgMoMk9xnhXKxrioGvfMeLdPMeLAoyQ2W7fvNzdPN0Mpy6GnFZXfpsjAR2k8q/oLZRCeR769Q4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786443582; c=relaxed/simple; bh=s+vQTpgMPfFZNzcrlhf94If9JU9zfxJn7knX69cBwpA=; h=MIME-Version:Date:In-Reply-To:Message-ID:Subject:From:To: Content-Type; b=drBNbfx5OLSpCWQ/RSBhJF3C/8b6emsIM4WOLP2yIRBD16MOSpgOJhc7vFULAbZbfSS3yocQkFEYaEafXIlJQ+5x9Wi/smLdV9SFuEQFe96eWiAs1O+kWxrfC3wVHcRLTt8i8AF578ltBw5tamgZ9tvixT8f3/r7byDITI/nSNA= 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.167.197 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-oi1-f197.google.com with SMTP id 5614622812f47-4a49f09233dso1346589b6e.2 for ; Tue, 11 Aug 2026 03:19:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1786443567; x=1787048367; 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=VYA258uA+eAatbOgpT1gCcJEyJG5lwfSmvj7tVbWtq0=; b=eF86heFzbm50noSDGz75pxp4CDX5PYSHZQNiWyCI1eIvyq0j+wlPoAtBFaAAXZy+/h PyS/Yx7M87Gi/4hMQQyX1tyVNTtb+S6t54ac8L9+xNAHetX3p+yyS0xNlD5f2sofH6Xb OZIWydLuc19ZsWqc2hcqrho/IviD2TtwpLYq3dK+htFyWsLKOii3YlbzoO0x7xjOeq84 bd5mLi+RYHB5UX57utfpgfyRiASSiYssG7aoVfxQsUC4pXY8Dk5Y9gFtqqTmzqBqKcqN kZnypon9lQ2fKR+ef6CbZEIhBPKGma6o2NabUOVKeQoshgt0UhaP3aWJFGAiCpSLcB8j C65w== X-Forwarded-Encrypted: i=1; AHgh+RpbHGbHZ1BrB0f2pRT89f02WfZjGuMAPbEzs8RyccP0d+tm332AJywrunyJ7SdTfXIFxXrqYgnMTdL9yiM=@vger.kernel.org X-Gm-Message-State: AOJu0Yx3FQJC97+5Gk65zIEydEky0zC/MGHNo3Oox8jDAQ9Llmb+nLqd wQUZwaZ3oMM5IRd8MKhCMdHM922ImJKDuTlMqziQCUlsCmDg9Z64uC/Ou+gOLiiFRVkg0JVzVKG UzNAYnrlf5SiRO61I6L9k8UaEGbCPn7LZiMerEQ+3KJ/kQa1QKqZWZBdhbrw= 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:3081:b0:492:9e13:d5a7 with SMTP id 5614622812f47-4b1fd7706c4mr1384875b6e.6.1786443567425; Tue, 11 Aug 2026 03:19:27 -0700 (PDT) Date: Tue, 11 Aug 2026 03:19:27 -0700 In-Reply-To: <6a7a6961.9c11d2ce.289b96.00f6.GAE@google.com> X-Google-Appengine-App-Id: s~syzkaller X-Google-Appengine-App-Id-Alias: syzkaller Message-ID: <6a7af72f.5aeeccc9.207e63.0014.GAE@google.com> Subject: Re: [syzbot] [usb?] general protection fault in uvcg_video_enable From: syzbot To: gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, syzkaller-bugs@googlegroups.com Content-Type: text/plain; charset="UTF-8" syzbot has found a reproducer for the following issue on: HEAD commit: d58772d8520c Merge tag 'regmap-fix-v7.2-rc7' of git://git... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1434a879580000 kernel config: https://syzkaller.appspot.com/x/.config?x=d07fbc6821d72a61 dashboard link: https://syzkaller.appspot.com/bug?extid=44835f0858f11e3e923c compiler: gcc (Debian 14.2.0-19) 14.2.0, GNU ld (GNU Binutils for Debian) 2.44 C reproducer: https://syzkaller.appspot.com/x/repro.c?x=17d69879580000 IMPORTANT: if you fix the issue, please add the following tag to the commit: Reported-by: syzbot+44835f0858f11e3e923c@syzkaller.appspotmail.com audit: backlog limit exceeded configfs-gadget.g1 gadget.32: uvc: uvc_function_bind() use of bytesused == 0 is deprecated and will be removed in the future, use the actual size instead. Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] CPU: 2 UID: 0 PID: 6048 Comm: syz-executor268 Not tainted syzkaller #0 PREEMPT(full) Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 RIP: 0010:usb_endpoint_xfer_isoc include/uapi/linux/usb/ch9.h:571 [inline] RIP: 0010:uvc_video_prep_requests drivers/usb/gadget/function/uvc_video.c:508 [inline] RIP: 0010:uvc_video_alloc_requests drivers/usb/gadget/function/uvc_video.c:559 [inline] RIP: 0010:uvcg_video_enable+0x12d/0xf80 drivers/usb/gadget/function/uvc_video.c:784 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b7 0d 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 18 48 8d 7d 03 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 e5 0d 00 00 RSP: 0018:ffffc900033a7b58 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88802e74c100 RCX: ffffffff87e608b8 RDX: 0000000000000000 RSI: ffffffff87e608c5 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: ffff88802c31e8f0 R15: ffff88802c31e840 FS: 000055555baac400(0000) GS:ffff8880d5dd7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055555bab0000 CR3: 000000003df62000 CR4: 0000000000352ef0 Call Trace: uvc_v4l2_streamon+0x9f/0x130 drivers/usb/gadget/function/uvc_v4l2.c:531 __video_do_ioctl+0xb2a/0xdf0 drivers/media/v4l2-core/v4l2-ioctl.c:3133 video_usercopy+0x47a/0x1730 drivers/media/v4l2-core/v4l2-ioctl.c:3475 v4l2_ioctl+0x1bd/0x250 drivers/media/v4l2-core/v4l2-dev.c:366 vfs_ioctl fs/ioctl.c:51 [inline] __do_sys_ioctl fs/ioctl.c:597 [inline] __se_sys_ioctl fs/ioctl.c:583 [inline] __x64_sys_ioctl+0x18e/0x210 fs/ioctl.c:583 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline] do_syscall_64+0x115/0x870 arch/x86/entry/syscall_64.c:94 entry_SYSCALL_64_after_hwframe+0x77/0x7f RIP: 0033:0x7fc0f28ab40b Code: 00 48 89 44 24 18 31 c0 48 8d 44 24 60 c7 04 24 10 00 00 00 48 89 44 24 08 48 8d 44 24 20 48 89 44 24 10 b8 10 00 00 00 0f 05 <89> c2 3d 00 f0 ff ff 77 1c 48 8b 44 24 18 64 48 2b 04 25 28 00 00 RSP: 002b:00007fffe9a50160 EFLAGS: 00000246 ORIG_RAX: 0000000000000010 RAX: ffffffffffffffda RBX: 00007fffe9a501e8 RCX: 00007fc0f28ab40b RDX: 00007fffe9a501e0 RSI: 0000000040045612 RDI: 0000000000000003 RBP: 0000000000000002 R08: 0000000000000003 R09: 0000000000008000 R10: 0000000000000001 R11: 0000000000000246 R12: 0000000000000003 R13: 00007fffe9a501e0 R14: 00000000c0585609 R15: 00000000c058560f Modules linked in: ---[ end trace 0000000000000000 ]--- RIP: 0010:usb_endpoint_xfer_isoc include/uapi/linux/usb/ch9.h:571 [inline] RIP: 0010:uvc_video_prep_requests drivers/usb/gadget/function/uvc_video.c:508 [inline] RIP: 0010:uvc_video_alloc_requests drivers/usb/gadget/function/uvc_video.c:559 [inline] RIP: 0010:uvcg_video_enable+0x12d/0xf80 drivers/usb/gadget/function/uvc_video.c:784 Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 b7 0d 00 00 48 b8 00 00 00 00 00 fc ff df 48 8b 6b 18 48 8d 7d 03 48 89 fa 48 c1 ea 03 <0f> b6 04 02 48 89 fa 83 e2 07 38 d0 7f 08 84 c0 0f 85 e5 0d 00 00 RSP: 0018:ffffc900033a7b58 EFLAGS: 00010246 RAX: dffffc0000000000 RBX: ffff88802e74c100 RCX: ffffffff87e608b8 RDX: 0000000000000000 RSI: ffffffff87e608c5 RDI: 0000000000000003 RBP: 0000000000000000 R08: 0000000000000005 R09: 0000000000000000 R10: 0000000000000000 R11: 0000000000000000 R12: 0000000000000002 R13: 0000000000000000 R14: ffff88802c31e8f0 R15: ffff88802c31e840 FS: 000055555baac400(0000) GS:ffff8880d5cd7000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055703341ef30 CR3: 000000003df62000 CR4: 0000000000352ef0 ---------------- Code disassembly (best guess): 0: 48 89 fa mov %rdi,%rdx 3: 48 c1 ea 03 shr $0x3,%rdx 7: 80 3c 02 00 cmpb $0x0,(%rdx,%rax,1) b: 0f 85 b7 0d 00 00 jne 0xdc8 11: 48 b8 00 00 00 00 00 movabs $0xdffffc0000000000,%rax 18: fc ff df 1b: 48 8b 6b 18 mov 0x18(%rbx),%rbp 1f: 48 8d 7d 03 lea 0x3(%rbp),%rdi 23: 48 89 fa mov %rdi,%rdx 26: 48 c1 ea 03 shr $0x3,%rdx * 2a: 0f b6 04 02 movzbl (%rdx,%rax,1),%eax <-- trapping instruction 2e: 48 89 fa mov %rdi,%rdx 31: 83 e2 07 and $0x7,%edx 34: 38 d0 cmp %dl,%al 36: 7f 08 jg 0x40 38: 84 c0 test %al,%al 3a: 0f 85 e5 0d 00 00 jne 0xe25 --- If you want syzbot to run the reproducer, reply with: #syz test: git://repo/address.git branch-or-commit-hash If you attach or paste a git patch, syzbot will apply it before testing.