Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp2099136pxb; Sat, 22 Jan 2022 16:14:09 -0800 (PST) X-Google-Smtp-Source: ABdhPJwLdH3HudTH49eSo8jMb/FOl/WhspP7SuyiQpF02qtJF/XFgy5cFh926pBHAevg+oVphNji X-Received: by 2002:a05:6a00:8cc:b0:4a8:262:49e1 with SMTP id s12-20020a056a0008cc00b004a8026249e1mr8744757pfu.28.1642896849161; Sat, 22 Jan 2022 16:14:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642896849; cv=none; d=google.com; s=arc-20160816; b=vycIfGHjSr0/aWd71TTcp7lvMrZDN0MRkANXI+t2igqfMTEzLh0+7JaiK9OpUbk286 TwBmtxU0dMnXini3f5Do8pekmwknOk0aQbUAlfOJkin0dGrNmiPnrixCDK8LTbq3QPMq +dJUXJZVZX06/40zo7Muq6uTZm3Y7SvmdZgSImXuGrrA2FtZH+ch8yk9dATX7tfbL8Rn 48CiXrhdgyKmXRm5gDBozI4br4aI9qidzsWZWzWCQ/ah3DFRiu3HOtvmY6of1jCMC28D xU9Dr4aV1O0ke4DKE0wOLkRPpz0G1iZgTXawmQb0KYLOjBuUdk/O05YvE62oF3aI70w1 pQ5Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=7tUnRsqJMCPyS1ZK9VW+gOMCKNDNUo4yACdhjLjuGMU=; b=XlTgnjvqNnfolnjyNwKhWz6LxS3dEYaVRtMhajTgX7zUm9shZ93hQV7eT8N1tdFOwF vdO/yaHmfzoyfge56FuthSUBJNU/Gjcmd2HO8U04pLo9byuBYeUiyd03inMQ+M5pS/to ibVNPwVcdXD+CvZZrNuRGNJISTCPxEOmEGKiYYiInCawA8BVQY2mI2hZtfK9juTz1E4G Tb++HjdmnTKwj+NslIfL5KAAPD/wxhTVKCnzeufpiI+xQbLPzFhO/+4asz/Y3jkz+9eH 9naif9iyBV2zZWWUjWye2BU1l+YsPij+x/OlLATOuGEay98nifPyDqaoMOp5gvFQ5uPk 3Jqg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=DMpIomAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e2si10674777plj.126.2022.01.22.16.13.57; Sat, 22 Jan 2022 16:14:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@quicinc.com header.s=qcdkim header.b=DMpIomAA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=quicinc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231983AbiAVC4m (ORCPT + 99 others); Fri, 21 Jan 2022 21:56:42 -0500 Received: from alexa-out-sd-01.qualcomm.com ([199.106.114.38]:13731 "EHLO alexa-out-sd-01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbiAVC4l (ORCPT ); Fri, 21 Jan 2022 21:56:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; i=@quicinc.com; q=dns/txt; s=qcdkim; t=1642820201; x=1674356201; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=7tUnRsqJMCPyS1ZK9VW+gOMCKNDNUo4yACdhjLjuGMU=; b=DMpIomAAdjdDEtuIcZE2cCnWeU4RnH1IvqBAxuIOirGSQryVqsqV/2DV n7PlNTxwsEI6jYWZnHDSy6bRGY2+Tq83vyDV4zt1nG0B9IwnHrClGm9lc cq9FjQAX/X17WSY+V9ya7p0PDT274fah7tKHzz42vhlnVshXccZJC4QRC g=; Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-01.qualcomm.com with ESMTP; 21 Jan 2022 18:56:41 -0800 X-QCInternal: smtphost Received: from nasanex01c.na.qualcomm.com ([10.47.97.222]) by ironmsg02-sd.qualcomm.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Jan 2022 18:56:41 -0800 Received: from nalasex01a.na.qualcomm.com (10.47.209.196) by nasanex01c.na.qualcomm.com (10.47.97.222) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 21 Jan 2022 18:56:40 -0800 Received: from hu-pkondeti-hyd.qualcomm.com (10.80.80.8) by nalasex01a.na.qualcomm.com (10.47.209.196) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.922.19; Fri, 21 Jan 2022 18:56:38 -0800 Date: Sat, 22 Jan 2022 08:26:35 +0530 From: Pavan Kondeti To: Greg Kroah-Hartman CC: Pavankumar Kondeti , Felipe Balbi , , Subject: Re: [PATCH] usb: gadget: f_sourcesink: Fix isoc transfer for USB_SPEED_SUPER_PLUS Message-ID: <20220122025635.GE11385@hu-pkondeti-hyd.qualcomm.com> References: <1642764684-26060-1-git-send-email-quic_pkondeti@quicinc.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [10.80.80.8] X-ClientProxiedBy: nasanex01a.na.qualcomm.com (10.52.223.231) To nalasex01a.na.qualcomm.com (10.47.209.196) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Fri, Jan 21, 2022 at 03:31:12PM +0100, Greg Kroah-Hartman wrote: > On Fri, Jan 21, 2022 at 05:01:24PM +0530, Pavankumar Kondeti wrote: > > Currently when gadget enumerates in super speed plus, the isoc > > endpoint request buffer size is not calculated correctly. Fix > > this by checking the gadget speed against USB_SPEED_SUPER_PLUS > > and update the request buffer size. > > > > Signed-off-by: Pavankumar Kondeti > > What commit id does this fix? > I see that the issue is present since the super speed plus support is added to this driver. I will add the below commit in the Fixes tag and send the v2. commit 90c4d05780d47e14a50e11a7f17373104cd47d25 Author: Maciej Żenczykowski Date: Mon Jun 7 21:41:41 2021 -0700 usb: fix various gadgets null ptr deref on 10gbps cabling. This avoids a null pointer dereference in f_{ecm,eem,hid,loopback,printer,rndis,serial,sourcesink,subset,tcm} by simply reusing the 5gbps config for 10gbps. Thanks, Pavan