Received: by 2002:ab2:6203:0:b0:1f5:f2ab:c469 with SMTP id o3csp2294509lqt; Mon, 22 Apr 2024 07:07:20 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUqhxZST+Jg8hPtoLEBiOY8XyiLWK7BRJ6XNBjGfXvtNNvbTkBldHkjrlp67k7w3dzrJNLq43dmxz3AiwEcA/z8G7/KLcXXYZ7qsR0S1w== X-Google-Smtp-Source: AGHT+IHYURyC7yjMXyWuzeRFRgfy/xU1OE1ol9G/1DuJm/PKpT4jeRo8s8a0jreh6dUl8q9U40+A X-Received: by 2002:a17:902:9881:b0:1e5:963d:963 with SMTP id s1-20020a170902988100b001e5963d0963mr8148506plp.68.1713794840634; Mon, 22 Apr 2024 07:07:20 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713794840; cv=pass; d=google.com; s=arc-20160816; b=wemv5ysKlENab+x8BorahGEQ9Ym/P0Nl3mbPkr0dgion3jEq3awrDUBoXFL95VZzwM xFyNL5WqwmIVAAzhYpTTqeZyAJhlQ6JjhEwxKpIZ+7QstgKMjqSpe2uAUsqd2E9Fvk94 +eJ2YHVCK+xXR6QXLt8yEBHemGWmpRZ2LO6yOKGHvhq4lg3VxeBd3n09p9eXY4Q4OBjq BpTGqxS8x86sMdF+7GKtw2rdsj8iPjEvEJzpI9sE+gWZsryf/dyG905SYUTsY6qrGsav 0jZjgHDhFdRG646BzkPGP++KC2Y7cu9PBnj5rpOamv9wcQfLbr90zLLpPZtoS2V7riIR JAEw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ccZg0U4pL1ijIZoo7kYYeAJD77KupxB6KU2yBdPGTpw=; fh=F4hPybhM9GssF84HbmXxDwYB2k83NABV1BQdK4Gj9NA=; b=WN08R7N7V4E6MiPC4dcN9aQq2eRpSiB2up6IcoMHnE+w/BN2aMqHEcHfVxe27HfjQG QmSp3u18g/3mwfEezsNvz3zYUjzEbGlZFlyLXIQwNY5DhrOeDO/mS9gOJtBbNSC7YsIe aR37Y7idKcBfQB1x6B1eIFuW/9kAftCLgfOgxaQf0I5YsECv8ODvY9uaYk4gNcSNSIci EhLN+312EZvKPgPcsh4z5zXM8vvjvanIGrziwlkC5vnnRUfj3SSM/gECFeNOpYOIlGtK bJwmTL6JB9WDpjGlaAphQqaqws4Ut5uTI8GVblhx8UBQqEQqz4I/ObU68v+w2kkRYDYh eoHA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WoYXfrA9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3868-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q11-20020a170902eb8b00b001e7d46e3bddsi7871274plg.605.2024.04.22.07.07.20 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Apr 2024 07:07:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-3868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=WoYXfrA9; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-bluetooth+bounces-3868-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-3868-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 39B0C2853FB for ; Mon, 22 Apr 2024 13:59:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 978371514D6; Mon, 22 Apr 2024 13:58:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="WoYXfrA9" X-Original-To: linux-bluetooth@vger.kernel.org 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 F3C9D14F128; Mon, 22 Apr 2024 13:58:46 +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=1713794327; cv=none; b=aF3/qFA1TKqUnG0N0ZWZ7kHupch7ZBdcf9IyZ3oShRrYzYk0tzO92WOP4Q3MQwhPt/N5RS+y7M9K3GMNjLS/5aD63tlv72/iBZxlH86Bqu+L9yp2yAePyHpojM3F/jVO1sO8qP7PdXg8fnHgCpd1qVLQa8IHZ0tObnsitAQGM4M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713794327; c=relaxed/simple; bh=UwLbA//oxa/QbyZ/HoUojyC7lBnUZJVO3hoIDHe65Ts=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=A6FELvGi98qw/3WzYMkHKX3Z/xpjLVJC4E6XoRCeq/tVG6xueU+FIyGe5oMXJH+UjY+ooZ+kin81H/lL0cT2sfbpEv7SzMy/g1EXsbckC5kBGTm4P+dZDLdxJ+ET48KTftosaDqsXI6hglYEAJZVJE+UE3QzJhTLn7eGl55xVQs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=WoYXfrA9; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id A6BB0C32781; Mon, 22 Apr 2024 13:58:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1713794326; bh=UwLbA//oxa/QbyZ/HoUojyC7lBnUZJVO3hoIDHe65Ts=; h=From:To:Cc:Subject:Date:From; b=WoYXfrA9iStDxp1B39nAlyJZJuHTQHSyAPzpYjUa+gfNSc7cbbIA5+f3ls84xD9Gx J4tjTPEG/CpE1pUBJkc2p44mgFNozCrG8NAsGuEF7fdHe654eDnE3+YTS2cLKGPqO6 DMvTVzwIzAB/jew8OGkxaKpvceewJtbgF7xwLz7d2fXG5xsWpqBApQz85xKv1YjvSw 3YmJvT8t62PZ2etFU2It7NUcSMMlkL9XMWHkskhlEtyhfH9eBNmRtaaFSgLbAtdl7+ YI+BvzmgoLW8HK7hbIXbtMPNYXao3HIT/HyCpqShUqFiqt7dhKnA75ogR/xY4FU2wq gc1W8NjEu9clQ== Received: from johan by xi.lan with local (Exim 4.97.1) (envelope-from ) id 1ryuBu-0000000061j-0pAg; Mon, 22 Apr 2024 15:58:42 +0200 From: Johan Hovold To: Marcel Holtmann , Luiz Augusto von Dentz Cc: Zhengping Jiang , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, Johan Hovold Subject: [PATCH RESEND 0/2] Bluetooth: qca: fix NULL-deref on non-serdev setup Date: Mon, 22 Apr 2024 15:57:46 +0200 Message-ID: <20240422135748.23081-1-johan+linaro@kernel.org> X-Mailer: git-send-email 2.43.2 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 addressed in pre-6.2 stable kernels. Johan Johan Hovold (2): Bluetooth: qca: fix NULL-deref on non-serdev suspend Bluetooth: qca: fix NULL-deref on non-serdev setup drivers/bluetooth/hci_qca.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) -- 2.43.2