From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04560E92728 for ; Thu, 5 Oct 2023 18:11:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231314AbjJESKg (ORCPT ); Thu, 5 Oct 2023 14:10:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39870 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232006AbjJESJp (ORCPT ); Thu, 5 Oct 2023 14:09:45 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B637D10D8 for ; Thu, 5 Oct 2023 11:09:17 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-1c5ff5f858dso9923575ad.2 for ; Thu, 05 Oct 2023 11:09:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1696529357; x=1697134157; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=r7DifqleOuS4Ftm7UdlJ3gSQnAv/4ydUwrCRGahb3LQ=; b=hOV0gZ0w6SxJNIO8O8Li+FusVmCLn1mXi37WZkbG4GkEQnnbUJf1T990jtrteDS1Mh 62wYwoo6KWe1lCPcDKe5ZeGmWzTmvrdnSEKpdSnM9t10L22ceH03549AaWPFhC6fvbMO KvkgZ2LQ7GyWibSRvoXEmoQxf/VzzUnrymX3XKBdhF/+S5r6HIVCnra71wX/5RETrMw+ vgyOMpawgVmiKk5Wg0aRgVALYGbzcH7Mc8U7dNpOuJau9c+UDSKyhHZ1blMsCq8pM6f/ CQfo/vwqXvRwRQfCxYu6I1ZNCzF2X3pI2bpHrE8/stpMGLaFqvcF87gCZayeKnDFp9xE aBLw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1696529357; x=1697134157; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=r7DifqleOuS4Ftm7UdlJ3gSQnAv/4ydUwrCRGahb3LQ=; b=BwwWmoDodJWlfgEnb9gC+vPaX7JhLZWHTIx41TRZTlX4vf4hPyrit+K82/Zq+WQrBW 8CfHqTC4ZkIR9uhvvgvEa4r+Dxt9BaTN41Op5syZKxhCn9gN42dM/yjCpaoq1YJTp3vr ussPHXW09KjaZP5b/OR/EIc8PXQbt/rPKMOS0nW0pl/51rklyVAXgrCKIzYx+BtGVID2 6gl1HAvK6YscvckQzCHzz1KCFfYxpEMQWPPClFbBh06C8Zs+QbvAxSJG0P8ImtVliyyo wdWcIHLXjVCXaxQxvaJF8ap2CY3gfm34X0sFcXdevdEDaOYwo39s+1MYpcxuVhwlotHN xeXA== X-Gm-Message-State: AOJu0YyzVwF8kO97D4wmuifj+8b8eCyWUTMYK7iZIvLRhIwphjmtUCJb qBmcagSL9KcpL4bx6Iw6MuC9eg== X-Google-Smtp-Source: AGHT+IHHN7bfqj7hewxdVKt7Cf45LxZGTpIcm23BBdWbf+YEqqz2uGQjcWChcb8Q4k9vz684/mZ+vw== X-Received: by 2002:a17:902:c3c1:b0:1c5:9d28:b2bb with SMTP id j1-20020a170902c3c100b001c59d28b2bbmr5526148plj.33.1696529356958; Thu, 05 Oct 2023 11:09:16 -0700 (PDT) Received: from [192.168.60.239] (213.126.145.34.bc.googleusercontent.com. [34.145.126.213]) by smtp.gmail.com with ESMTPSA id iw21-20020a170903045500b001c726147a45sm2042191plb.190.2023.10.05.11.09.15 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 05 Oct 2023 11:09:16 -0700 (PDT) Message-ID: Date: Thu, 5 Oct 2023 11:09:14 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v1 0/3] usb: gadget: uvc: stability fixes on STREAMOFF. Content-Language: en-US To: Greg Kroah-Hartman Cc: Michael Grzeschik , Laurent Pinchart , Daniel Scally , jchowdhary@google.com, etalvala@google.com, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230930184821.310143-1-arakesh@google.com> <0ccb2c13-438d-4715-af79-d5cf536930cc@google.com> <2023100518-everyday-graves-7404@gregkh> From: Avichal Rakesh In-Reply-To: <2023100518-everyday-graves-7404@gregkh> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/5/23 00:11, Greg Kroah-Hartman wrote: > On Tue, Oct 03, 2023 at 04:16:00PM -0700, Avichal Rakesh wrote: >> Thank you for testing the patch, Michael! >> >> On 10/3/23 04:09, Michael Grzeschik wrote: >>> Hi >>> >>> On Sat, Sep 30, 2023 at 11:48:18AM -0700, Avichal Rakesh wrote: >>>> We have been seeing two main stability issues that uvc gadget driver >>>> runs into when stopping streams: >>>> 1. Attempting to queue usb_requests to a disabled usb_ep >>>> 2. use-after-free issue for inflight usb_requests >>>> >>>> The three patches below fix the two issues above. Patch 1/3 fixes the >>>> first issue, and Patch 2/3 and 3/3 fix the second issue. >>>> >>>> Avichal Rakesh (3): >>>>  usb: gadget: uvc: prevent use of disabled endpoint >>>>  usb: gadget: uvc: Allocate uvc_requests one at a time >>>>  usb: gadget: uvc: Fix use-after-free for inflight usb_requests >>>> >>>> drivers/usb/gadget/function/f_uvc.c     |  11 +- >>>> drivers/usb/gadget/function/f_uvc.h     |   2 +- >>>> drivers/usb/gadget/function/uvc.h       |   6 +- >>>> drivers/usb/gadget/function/uvc_v4l2.c  |  21 ++- >>>> drivers/usb/gadget/function/uvc_video.c | 189 +++++++++++++++++------- >>>> 5 files changed, 164 insertions(+), 65 deletions(-) >>> >>> These patches are not applying on gregkh/usb-testing since >>> Greg did take my patches first. I have already rebased them. >> >> Ah, I didn't realize Greg had picked up your changes in his tree. >> Rebased the patches in V2. > > The "v2" series here is almost impossible to follow, sorry. > > Please send it as a new thread, not as responses to the individual > commits, how am I supposed to pick them up that way? > > And make it v3 please. Sent out v3 as a new thread. Sorry about that! - Avi.