From mboxrd@z Thu Jan 1 00:00:00 1970 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 6BEC32F12AD; Fri, 1 May 2026 23:28:01 +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=1777678081; cv=none; b=Y4YICpFGqRNNBLI5k4KQbfZ1v01vicXDqSGC+ZEGRSaQTULduEatnYERopoVYQYCoWrGTKH2iCDS05CldVOS/ll7zRukTKemlsHNKuW6awOPhgCbrTF0B2zZgShENWJTv9IZ9wjQPljfJsok6oWo2QDMvSdDFBV2V6+AaH2IhRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777678081; c=relaxed/simple; bh=Lu2YesTtENkzb7PS69NViHQTAO604Jo2CPUPu31t4rQ=; h=Date:From:To:Cc:Subject:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=g296Y+n4ibznOCl8epl8Ckel4z8A8CectTZI3hqn+WrfNqnjgqhLmYpDYZT4wJZbj1RjXjBFSY0zkGjfsO7CFD8KPVC6fJsGSThfBL9IcIvVqaAS0zPVD3C/hiZfpPATMa155WaB/A85TR6+UlEng0c2DJAAXjlIAPC6QRUe+Bg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=fHQaqI1a; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="fHQaqI1a" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 837F7C2BCB4; Fri, 1 May 2026 23:28:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1777678081; bh=Lu2YesTtENkzb7PS69NViHQTAO604Jo2CPUPu31t4rQ=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=fHQaqI1abVncCLShjh0gpmQCu61zLuuCICYOPDvvwK6sGHB+9FvFt5TSIxv8O+5aE mt9It4uf7EPD9jAg8pF6I5NjRtkeCL4dDh+B+0PoAZmlCMNQO/FRuirdtJ6y+z8jNC kwRo81DT5HAcBTw2PZ9pafUeZ4KnbSkVc7HKweRXG5WwlkR1enbwX04naE7SgDsDwj p0YNtOqWPwlTnizu2HfXR+s/vhX1sQwG5Cd79yEKeQktcZeZ8KMYxT19y1Ci1vcNv1 NjJYBiEK6ZjLbhE1nfMgQsj+lzkJWMbn6tz/SlaZY+A1D0k7bRyrWV2p2VT2J9IhPz Utg3fFBE9y2yQ== Date: Fri, 1 May 2026 16:27:59 -0700 From: Jakub Kicinski To: Lee Jones , David Heidelberg Cc: "David S. Miller" , Eric Dumazet , Paolo Abeni , Simon Horman , Kuniyuki Iwashima , Kees Cook , Junxi Qian , Ingo Molnar , Samuel Ortiz , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] nfc: llcp: Fix use-after-free in llcp_sock_release() Message-ID: <20260501162759.06ef164b@kernel.org> In-Reply-To: <20260429134115.3558604-1-lee@kernel.org> References: <20260429134115.3558604-1-lee@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-Transfer-Encoding: 7bit On Wed, 29 Apr 2026 13:40:41 +0000 Lee Jones wrote: > llcp_sock_release() unconditionally unlinks the socket from the local > sockets list. However, if the socket is still in connecting state, it > is on the connecting list. > > Fix this by checking the socket state and unlinking from the correct list. > > Fixes: b4011239a08e ("NFC: llcp: Fix non blocking sockets connections") > Signed-off-by: Lee Jones Adding David H and dropping from netdev's patchwork..