Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1966071lqg; Mon, 4 Mar 2024 08:53:24 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCV+szLnUaYHlgER71EUjHLWTBF/y7uhMYGlkzZZCuvPsCj04we8Er8Fg99kbaycSg2vzplsarQx53j6JgKfSQz2/Vib/ta64/PoYfoEcA== X-Google-Smtp-Source: AGHT+IES5bZWMD6CPeVCoshuQuZEV5lZvzqTF977LUWSxSRjb1M71C3jdLoVBsTxXxMXwDXDVlGl X-Received: by 2002:a50:cdd0:0:b0:566:3f3e:3a23 with SMTP id h16-20020a50cdd0000000b005663f3e3a23mr6356458edj.1.1709571204568; Mon, 04 Mar 2024 08:53:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709571204; cv=pass; d=google.com; s=arc-20160816; b=gEJC0g1WJgHX57r9yTE4MHU2J6ox3wPf5zlAyhwQ2rRLgJAEIgPjYAuJCO1tqVvk9l 91/iL5cOXHr285JSvIqBxAXdN57KZaxdQEUE9gUTizJ2ABIwXUugTg+XnhNBBh4K7dly 2sets8q52TQyNfuo0Qtn2W8K06XIC1ILhHdV3ANTx815/M1jnQfPjss/L2BFWUeIkmZg LGRFendDSpfM0BMe2j1TU1ubenyQeXan1Z491RGBETK9jjg31E8XTXLCi81gel7YJras Kx6UEkdYj0pd7NgMHP9kcmmRbSPbgvsvT8ZYv68yGPPbtB1SrwnRnrxqdjDqjSvLOV5C 6Zlg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=TU+KnY/l5ZMvBUlG7xkTv0umnHHuyUr5GT5n3D8znCo=; fh=O2HNhVVkRjuYck9vd3SX24z8nMS6izVnQFhitYJYQvk=; b=k5FDq7lpT0sYi7Lefvv3cdTQYjZEsDbCTzJZqW8Sk+nXuJVt3h/SQ4zBNx2RykpRYY FkoHr/4d/oveMXvjMd2NRUBbRlcnHHyzR+RonAuEilH8nQCMZq1jUeM+wksgxroyywXe aD8S5d2jfuI04ziA+LPq58fOAmtdHnJZOkiuJ8XtJkCfCZNtyaX4xF5jmdSw7qP1iln5 huYkU5bGSOVua9rLB1E6LZBkp29jTQkXRHYY07AF/aGgWbF0rB0jBWLAXZ+UA8lCM/lC hdPWRqL2ubIcqAn/6OeXDVkKtW8TcREKhYa2w9oD1BemQj9iBGFME1Fiz8ymdjA/yvzm U5Rg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=j6ZV8KqJ; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-90963-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id f1-20020a056402194100b00566b4034bddsi3777536edz.393.2024.03.04.08.53.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 08:53:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90963-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@dolcini.it header.s=default header.b=j6ZV8KqJ; arc=pass (i=1 spf=pass spfdomain=dolcini.it dkim=pass dkdomain=dolcini.it dmarc=pass fromdomain=dolcini.it); spf=pass (google.com: domain of linux-kernel+bounces-90963-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90963-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=dolcini.it Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 4F8181F21840 for ; Mon, 4 Mar 2024 16:53:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 976766025F; Mon, 4 Mar 2024 16:52:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b="j6ZV8KqJ" Received: from mail11.truemail.it (mail11.truemail.it [217.194.8.81]) (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 305655C5F3; Mon, 4 Mar 2024 16:52:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.194.8.81 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709571154; cv=none; b=o3SIwwM502Mt8BL+hPg9lpuZRbGuLU/+1/UWXDkmSz7Ckvm7rAZRP48OiJdZW38PlTtpUsTM9aT8hfGgvm6wb1MuvVbPwxfN5SGO0hIT78jotdeNo0xiVxLY7nrNQ7jaF3P4nwA21UuKLeJ4CvZmIPwLG8q3gu8TGVdpIGvuGfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709571154; c=relaxed/simple; bh=jGxmwGSIl7tuc8+rfHyGnfHMlZ/+hS4235WbUDm3wVU=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=PXGbFO6+KnNbkgCdKTlyZgK7hshVMlVqEqX8Nkl8OcJ9sZ5pvi0J0/ugwfw3vdqGi2KYAQA7KY9e0UV8FbwbiLotlj3kaZoG0oUG8UTjjqHRhozDK/aSGwkQmw31g4BYGqJvZYW9eW8Hwhp8TN934eAyspX6BUy0gQkDWxBBq5Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it; spf=pass smtp.mailfrom=dolcini.it; dkim=pass (2048-bit key) header.d=dolcini.it header.i=@dolcini.it header.b=j6ZV8KqJ; arc=none smtp.client-ip=217.194.8.81 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=dolcini.it Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=dolcini.it Received: from francesco-nb (31-10-206-125.static.upc.ch [31.10.206.125]) by mail11.truemail.it (Postfix) with ESMTPA id F0B0F1F843; Mon, 4 Mar 2024 17:52:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dolcini.it; s=default; t=1709571140; bh=TU+KnY/l5ZMvBUlG7xkTv0umnHHuyUr5GT5n3D8znCo=; h=From:To:Subject; b=j6ZV8KqJ6r9cHlnECDlf8h0OVY55oWYEUO5LmrwRxET0dx+MBYsCLWi+pDHZwYja9 lVaSLRfa2H9SFG9hWxIXsncUF8rU7WICYs9q3oY9jH4AAKjgTopXzTJuEPmPHn6Vrf XouJS1XLGGulIx68O0ZNOPbbUo0cUvhkUH1NCuLfe1/DXL8vl3zzyulCIaVmkAmJ5B gW2vNBsq5PHHR6991aS+r3x9dkCjGUfUWUBL+TV1pCbjM4fplsWdX0h5nzYK8HIiRC BzL09dULFK8xHKnlbdcJqQpTzfeXoAEo+SvP3t62Oa+iNw/2isDBgiQsrXkGxvVaKf hfGGQ64Z20B0A== Date: Mon, 4 Mar 2024 17:52:15 +0100 From: Francesco Dolcini To: Francesco Dolcini , Luiz Augusto von Dentz , Luiz Augusto von Dentz Cc: linux-bluetooth@vger.kernel.org, Sherry Sun , Johan Hedberg , Neeraj Sanjay Kale , linux-kernel@vger.kernel.org, Marcel Holtmann , Marcel Ziswiler , Amitkumar Karwar , Ilpo =?iso-8859-1?Q?J=E4rvinen?= , Marcel Ziswiler Subject: Re: [PATCH v1 1/2] Bluetooth: btnxpuart: Fix btnxpuart_close Message-ID: <20240304165215.GA11208@francesco-nb> References: <20231018145540.34014-1-marcel@ziswiler.com> <20231018145540.34014-2-marcel@ziswiler.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Hi Luiz, On Fri, Nov 24, 2023 at 09:26:11PM +0100, Francesco Dolcini wrote: > On Wed, Oct 18, 2023 at 04:55:39PM +0200, Marcel Ziswiler wrote: > > From: Marcel Ziswiler > > > > Unfortunately, btnxpuart_close() may trigger a BUG: scheduling while > > atomic. Fix this by properly purging the transmit queue and freeing the > > receive skb. > > > > Fixes: 689ca16e5232 ("Bluetooth: NXP: Add protocol support for NXP Bluetooth chipsets") > > > > Signed-off-by: Marcel Ziswiler > > --- > > This is the kernel trace this commit fixes: > > [ 29.270685] BUG: scheduling while atomic: kworker/u3:0/55/0x00000002 > > I just hit this bug with 6.7-rc2, I think it would be worth to > apply this fix. Do you need any change for having this patch (1/2) applied? Do you want this to be re-sent without the second patch (2/2) from this series that is maybe more controversial? Let me know how I can help, Thanks, Francesco