Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2244037lqt; Mon, 22 Apr 2024 05:56:35 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWFLDR4x3P2mZQUvm4J8Njo+SqgUpms0ZuFiOjc5Mt5S7uku2cSdayUY0hQ1TDJ33m7jwbVrHptYZTEAD1nyFa8aK7MH202p9OslTt+jQ== X-Google-Smtp-Source: AGHT+IH8OO1NKFIfxwk3OZtQ0VK4R95tS5f8Ea0wGkvBq2X6gCR8z69Agh6ej/Z1/+FWG7cQJhBa X-Received: by 2002:a17:906:c112:b0:a55:aded:200d with SMTP id do18-20020a170906c11200b00a55aded200dmr4681590ejc.12.1713790595484; Mon, 22 Apr 2024 05:56:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713790595; cv=pass; d=google.com; s=arc-20160816; b=wu5VavMyyCwmjr/HAihs9PRo5htytDRKcMy5b99/l9+/gbFKKupXxN8i4GRIopuPXF 0gjumi74aiLbzT0QmK59gjB0pTnoRnKB+33dOFbgm9PwZ7DYY+x99HFZ5laOdASIoOHQ Tdweui89B4i3BVNsnkOZo9TXzc36dLJyAJyRGKeu3C1gdHnFWH1Qb9yNds5sv/PKkUOp 7nadD7Tl3WRVId9axQJFLUAsT+itBSRsZzG0oaH1JPdybh2/ltJEKeFj61RiaD4UGFKP PMpepdsqMkjeT+pcyxBJvh8EIoa3gEUb3rdLofG7Q691dggBCSQ5LltLYkU4VFndyuke ulcg== 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=AaYYmHxruU7w6q7HtesdPL1Du+ADNJh9TccylilCa3E=; fh=Eh1e/8Fy2msU+APu2VQ+4PJyvcUZ2yJBFzuRCQzT05w=; b=WXYWqzvbLfdGJWhSXqQrR+48c6Z6t1DGGSPze+GJAXiG8PaIVVF4XrYzUGLB19bjaG 7WwrPCmoxCr5NnUt8Dv63KGWWWE123Cgpe52Q14hsinXkpeHKJJe6VX8e+ryFTTjGAK4 B13Ay7n/tJBVI2MGxypNv67uopr7GN2SKgbIuT8PX+gjW8adBF7pSodsiEMTtmOoyBa+ xZBlgvRV4tIUZpz6Fm0KWXWj1QVhKJOnozxXoEzGlAQhFm+PwjyhvImjhiaRSQDrJTEv VD9/PD1dCyhtLVsnA2KkKnOv34f9+F3AM/sB9tXJ9YFVHXqdUw+ZdS+S3haKWmZWE8v6 1VLQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=R1lbRl8C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id he20-20020a1709073d9400b00a55aeb1e450si1895676ejc.814.2024.04.22.05.56.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 05:56:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-153394-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=@kernel.org header.s=k20201202 header.b=R1lbRl8C; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-153394-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-153394-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 3770A1F21409 for ; Mon, 22 Apr 2024 12:56:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 823F31509AC; Mon, 22 Apr 2024 12:52:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="R1lbRl8C" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A1E1914EC7D; Mon, 22 Apr 2024 12:52:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790320; cv=none; b=utzQyDhNSWDgY2x6cPVRq3Pf23Q6+YopuTOYUUKawmMDDXuachaeHInOW6fh0kenxf7xk2YiPwoIS6yh/p+TYvlI1Ejwu0p1hAfPwW7FALvXDn97um3dSElVPNMmO9xBMclwdESb2L318a0/MwBuu3nZMXAE4rAkN9sqJ4w+RbM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713790320; c=relaxed/simple; bh=+ZojygioNdxYcfykHxwc6qvTmYz1IYCwb3Dbi5nl09w=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Xbuq6uFHiyvliSNsFcBlxXppt8SSGUloAr+rEPChQIbN7PdQC7MWyTsAiFObZcIBw/2SjGU4QxU72pSHT30pEMvEsPZYDkI1mrCYUa6vachFFfoxLKfJBheVJFlsu3JeHA4nNEW2CsIgwMOsroeciyl9n/d2Jb/4uYXEvmlwHWQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=R1lbRl8C; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39D69C113CC; Mon, 22 Apr 2024 12:52:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713790320; bh=+ZojygioNdxYcfykHxwc6qvTmYz1IYCwb3Dbi5nl09w=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=R1lbRl8C6V3FYH7wjNOfEzIlHI2HjpdLdVNz++RD8+BMhEkzZuv6nApDxJ4oZho33 Ke9bYGBYAxT8EXozJWoV55NmcHYJZouzI7Y46CXThlcNnQv3eBwWfgsl3t8d61719X 5y4LFNk/D4EzsJ6zTRM0MJAwGSx1Mdic1T3Pspks0fPVn4aO84dhFyFwRWPyLxaWQ5 jG3LDLF2+CqvT+OZF2XUFF5CgDFZE76SS3wILnjjcHZe9o1E2zpK6R7CZzU56liCRm zWZPfDNQPG4w3qNdXDiTurbgommQCGuMYQIZcar3st9QPsFWkXkPYAI0R2peaIu78z KPKiTgrNWofNA== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1ryt9G-000000004vc-3K9E; Mon, 22 Apr 2024 14:51:55 +0200 Date: Mon, 22 Apr 2024 14:51:54 +0200 From: Johan Hovold To: Luiz Augusto von Dentz Cc: Marcel Holtmann , Zhengping Jiang , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 0/2] Bluetooth: qca: fix NULL-deref on non-serdev setup Message-ID: References: <20240319154611.2492-1-johan+linaro@kernel.org> 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: <20240319154611.2492-1-johan+linaro@kernel.org> Hi Luiz, On Tue, Mar 19, 2024 at 04:46:09PM +0100, Johan Hovold wrote: > Qualcomm Bluetooth controllers can be registered either from a serdev > driver or from the Bluetooth line discipline. In the latter case, the > HCI UART serdev pointer is NULL, something which the driver needs to > handle without crashing. > > This series fixes one such issue at setup() time which incidentally > masked a similar crash at suspend. Fix this in two separate patches so > that the latter issue is address in pre-6.2 stable kernels. > Johan Hovold (2): > Bluetooth: qca: fix NULL-deref on non-serdev suspend > Bluetooth: qca: fix NULL-deref on non-serdev setup Could you pick these up for 6.9 or 6.10? The patches are marked for stable backport and only privileged users can set the N_HCI line discipline these days (even if I'm not sure about pre-5.14 kernels...) so it may be fine to wait for 6.10 if you prefer. Johan