Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1122695pxb; Fri, 27 Aug 2021 01:32:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwY4elW040LKBVLOPS8lTjLhOGA1i9EvkxBc5cAgFIJ77xF5qksDP0cigmawEA1b3Kt4M26 X-Received: by 2002:a17:906:168d:: with SMTP id s13mr8818956ejd.13.1630053150794; Fri, 27 Aug 2021 01:32:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630053150; cv=none; d=google.com; s=arc-20160816; b=Xs6gMUiRP1m6IUeYZ4f8aYjdJ6pkgVKyjuyKMn7AC+z1ATjrcR3UdpXDTQ5EvZpYwo c6O4OF2aIWRX25Zpz5+XOHbTnaflg1irzIErGSwp86nFg0qiDLiifm0nICBxgLtrHy7k tJ8bPsPqWyznrgEyEgbAhxWLm4vRtKo9GSeHvp88rTVy6jHm/SPT1G0c8qXzCke5BROP seNSgfiswDWl8UgCRcP570/dziqGClBiEqEMjIfxFsP1RKpuiFREw5bYomZJkUUbXPc9 BRt8p/YdTz6Jez1JISyEEBDztoK+KJEl5UBsS25CGh8wlU02tNAMLuXOvVNCIzWwZ/6K CIaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=gmNymqTgyJa2stpXjIn1zkQP52wzL1XOIPllvqaJmnc=; b=cq5PcLvFWYBJT5gDCiKP/g8rsupqir0pCsCqWuKKo3zJyv1d8zNNh3tHsrclWtqtPV oNSH2UatXYd0btuZiq0MYs6dZ6nsjmoA1yJdNsCHqjJgQmGtItvqkAfgOGgdzrm+1lT6 Y9UQH5rPBZN1jL37UF6ql9yaS9qrFK6p3DvX4XIUVsx5UNW5+B5ZDA7YNNM+nT0kgPIL blpMOc9RFluMG5Qrdq0cEh0nxpRTf3lF9/FJEEISiR5UACrXlIittWdRn3C87lKArrmO 4yMZI1yP9d+n0HSc0jJy+2g51FkKv2HQ2ywb5E8j/IBvDy0EBQjCSptGwqYosDmlKMWm 1cAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AkxzV2bW; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o14si5882662edq.39.2021.08.27.01.32.07; Fri, 27 Aug 2021 01:32:30 -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=@linuxfoundation.org header.s=korg header.b=AkxzV2bW; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244566AbhH0IaA (ORCPT + 99 others); Fri, 27 Aug 2021 04:30:00 -0400 Received: from mail.kernel.org ([198.145.29.99]:44000 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232048AbhH0I36 (ORCPT ); Fri, 27 Aug 2021 04:29:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id D255E60F92; Fri, 27 Aug 2021 08:29:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1630052949; bh=BU9TRzkMG53KIKBgnqTa/wiySOBfMjCnl6DVJZAWeR8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AkxzV2bWozX+avMROB8UwIqZy81fYWziObSlO5YoQPeCWrvnzwnTkH9hZoql89feF OQZ+indgwfTFbxp6FK7hde02GgkG/34BwW47EzC1Wt3i9pWpdX0pgQpcW4WIFvO4uZ eL7yE5pzmJQNXzFdEcumG9p0BgwRatKXIdJ8IGa8= Date: Fri, 27 Aug 2021 10:29:02 +0200 From: Greg Kroah-Hartman To: Ferry Toth Cc: Ruslan Bilovol , Jerome Brunet , Jonathan Corbet , Mauro Carvalho Chehab , Pawel Laszczak , Felipe Balbi , Jack Pham , linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-doc@vger.kernel.org, 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 Subject: Re: [PATCH v2 1/3] Revert "usb: gadget: u_audio: add real feedback implementation" Message-ID: References: <20210826185739.3868-1-ftoth@exalondelft.nl> <20210826185739.3868-2-ftoth@exalondelft.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210826185739.3868-2-ftoth@exalondelft.nl> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 26, 2021 at 08:57:37PM +0200, Ferry Toth wrote: > 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. Are these normal configuration options in the wild, or is this just something that you "can do"? > Signed-off-by: Ferry Toth I need an ack from the original authors to revert all this... thanks, greg k-h