Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp144274pxb; Tue, 24 Aug 2021 22:57:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5SZsdBLsMQpgv0sHqLbrv+1O/X3H4uqYPq3rn0rUgdIGPlMkSPnx+sO7sF+ntSjFN8rRi X-Received: by 2002:a05:6402:d66:: with SMTP id ec38mr6244387edb.234.1629871075686; Tue, 24 Aug 2021 22:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1629871075; cv=none; d=google.com; s=arc-20160816; b=sfmZ89mInSpXPjF2IJ9/yMnOJjqRJ/J5eBq+gNsAVBxg27zajdHF1tu3vTLZOMGmxV mMpJEcBzuRB2Oi8GkKIPie/5m6mvJ4QT1D9cobLL9xi20ZYJ6xDPVfL3RiuVTuhR49Ub XX0oCgScpxVBoK1k970qxOLPLEadDCMJKmY8q3IUcDuq42mabFhzrw96GWdjoW5Xoppu g1d1LEF83a7xadDN8d3wknvAYYwrZUJkbDMQxHmYB2UwWxYbUBXkRHHPiF7OhkFf0EMH +Y+V/3BXBuCflMNxBaMNOGbTWRlK7OoykEgk4ycR5F5E8xBdqS6VXOiwmGTc9Ll1wJJj gNtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:in-reply-to:date:subject :cc:to:from:user-agent:references:dkim-signature; bh=Eba8nW+Epe6AVvildZooo4G6xaX1VDCVI45quqRXJP0=; b=OTwvR5WOtvfKU2gIjJyAg37XYclxY8/GpXRakXzlcgRHez/am9gdc4asO2clcKZ/oI 9Sj7ic7a33GpwKQnc/8FZrziOrcwrsRgLKdKpd+1XuEFNyOjYRch7G03kxHYHHFNRj2E vvhDZwpiYoxM4QaZk9jEl0+lFft6gqGuBHa5PdGAECcwtx033sjKUyb1EcF+OEstedBI Y6M9iLllW5oWB78a1EB6TsScnkWKiBuehcsA7mwKOMcd2K2KoDQksN22tMEb8yb13gOQ iUVbH36s+jVNSoKJMtTdAezau03On6jyIiQ9Jl4T7ayAwwMXjb/qjooHyjpOCxrTzurW pqIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=lWfGGAtX; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h8si19984252edb.476.2021.08.24.22.57.32; Tue, 24 Aug 2021 22:57:55 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=lWfGGAtX; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237908AbhHYFyc (ORCPT + 99 others); Wed, 25 Aug 2021 01:54:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:37776 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232420AbhHYFy0 (ORCPT ); Wed, 25 Aug 2021 01:54:26 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9130661212; Wed, 25 Aug 2021 05:53:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1629870821; bh=OuVdKfR/MOuYBuzNycEWQRB8+cfvT8D53yuzUluBSe0=; h=References:From:To:Cc:Subject:Date:In-reply-to:From; b=lWfGGAtXommJm8HbFE7PK3rWnM2Ku1enbbQBZExVftmvW7IhIE6tr/zNYRuBci8a0 pTAudCS2VqAdfDTwNCoEyN73YqFS2GQfQPHpcSkdLMRHMOO3Jsu43pJAnPW6uqA6SM mBgbiONurHm0CQ7/dkaj2UfhtoP80hRDF9mAXCe82rdbPCW5w4J9P8u1S6cEp9HZbB VHvGXDMnnIhj0lukvuGZ/6f1mGoNgxtwknJ3d2U0+euK31ZQac/B+any40wHaWfBn2 A/8un0oTT1Z555PAO9tZRKi1rViVHR0SSWy0qFexWt10xBLWpPAUodoLvahpgSMBp8 Y4GTib4ywAPwg== References: <20210824201433.11385-1-ftoth@exalondelft.nl> User-agent: mu4e 1.6.4; emacs 27.2 From: Felipe Balbi To: Ferry Toth Cc: Greg Kroah-Hartman , Jerome Brunet , Ruslan Bilovol , Oded Gabbay , Cezary Rojewski , Mauro Carvalho Chehab , Pawel Laszczak , Jack Pham , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-doc@vger.kernel.org, Jonathan Corbet , Lorenzo Colitti , Wesley Cheng , robh+dt@kernel.org, agross@kernel.org, bjorn.andersson@linaro.org, frowand.list@gmail.com, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, heikki.krogerus@linux.intel.com, Thinh Nguyen , Andy Shevchenko , Pavel Hofman , Ferry Toth Subject: Re: [PATCH v1 1/3] Revert "usb: gadget: u_audio: add real feedback implementation" Date: Wed, 25 Aug 2021 08:53:23 +0300 In-reply-to: <20210824201433.11385-1-ftoth@exalondelft.nl> Message-ID: <87v93u5au9.fsf@kernel.org> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ferry Toth writes: > This reverts commit e89bb4288378b85c82212b60dc98ecda6b3d3a70. > > The commit is part of a series with commit > 24f779dac8f3efb9629adc0e486914d93dc45517 causing a BUG on dwc3 > hardware, at least on Intel Merrifield platform when configured > through configfs: > BUG: kernel NULL pointer dereference, address: 0000000000000008 > ... > RIP: 0010:dwc3_gadget_del_and_unmap_request+0x19/0xe0 > ... > Call Trace: > dwc3_remove_requests.constprop.0+0x12f/0x170 > __dwc3_gadget_ep_disable+0x7a/0x160 > dwc3_gadget_ep_disable+0x3d/0xd0 > usb_ep_disable+0x1c/0x70 > u_audio_stop_capture+0x79/0x120 [u_audio] > afunc_set_alt+0x73/0x80 [usb_f_uac2] > composite_setup+0x224/0x1b90 [libcomposite] > > Pavel's suggestion to add > `echo "adaptive" > functions/uac2.usb0/c_sync` to the configfs script > resolves the issue. > Thinh suggests "the crash is probably because of f_uac2 prematurely > freeing feedback request before its completion. usb_ep_dequeue() is > asynchronous. dwc2() may treat it as a synchronous call so you didn't > get a crash." > > Revert as this is a regression and the kernel shouldn't crash depending > on configuration parameters. > > Reported-by: Ferry Toth this should be Signed-off-by ;-) -- balbi