From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EF275223DC6; Sat, 30 May 2026 17:45:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780163125; cv=none; b=eHQK95+LN5ceqdL1zYBSy6nPBeMSjaqrDdD/eh4xvGWo+RftD3ZJnFRFcfLOsZwV+SL33kdv3TtlTr34vPnLT9SsG4tlJc771GWapBjnXZ78kTXJ0qhgVvVxWYtW6/r9sYx2e0QxqfmO9Bfz14uZolouXigLnUMPshbWQi4w/H8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780163125; c=relaxed/simple; bh=PWKo+AbnEBIVtk9lpDOYvvEMZTsvBn5KJwgIzVXe8ko=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=EmKg4Sqs51+o+W0TKaTYXulPNdbbcvjuW79aa8qTZfSUpBs/xgR9wn87ytf0SUr5xI8f3Kx96rOsQD13874sTSHWTlZkxDd0CHwn6bHjYPtlhtwldsVeVV+YebET3W2zorQDhbcIcO1HHRxw5QZM2CWytEB6ymkpUcUfHIRDM30= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FbOrf6hY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="FbOrf6hY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3ECC81F00893; Sat, 30 May 2026 17:45:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780163124; bh=y/NDWTiYbIAQFVWEGk/huby5bcc8MrMMlLAhBATtQPU=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FbOrf6hYCIpyRE77jwiKe98JhUkFweLxpekK2XpCDf7Euc7IDH5fGFpHixOwCSvtx RUaXwZ8yX0tnNTcmx/8QtFbN6IT4/Inh3CRyEWKk4a5mKJcGfXwlEq2GI4LNIXgEUI vqw1snT0dRHvAQakXXCCwv1TRGbr5UehH3HwkuWU= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Li Xiasong , "Matthieu Baerts (NGI0)" , Jakub Kicinski Subject: [PATCH 5.15 115/776] MPTCP: fix lock class name family in pm_nl_create_listen_socket Date: Sat, 30 May 2026 17:57:09 +0200 Message-ID: <20260530160243.338007557@linuxfoundation.org> X-Mailer: git-send-email 2.53.0 In-Reply-To: <20260530160240.228940103@linuxfoundation.org> References: <20260530160240.228940103@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 5.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Li Xiasong commit 7ab4a7c5d969642782b8a5b608da0dd02aa9f229 upstream. In mptcp_pm_nl_create_listen_socket(), use entry->addr.family instead of sk->sk_family for lock class setup. The 'sk' parameter is a netlink socket, not the MPTCP subflow socket being created. Fixes: cee4034a3db1 ("mptcp: fix lockdep false positive in mptcp_pm_nl_create_listen_socket()") Signed-off-by: Li Xiasong Reviewed-by: Matthieu Baerts (NGI0) Link: https://patch.msgid.link/20260319112159.3118874-1-lixiasong1@huawei.com Signed-off-by: Jakub Kicinski [ Conflict in pm_kernel.c, because commit 8617e85e04bd ("mptcp: pm: split in-kernel PM specific code") is not in this version, and moves code from pm_netlink.c to pm_kernel.c. ] Signed-off-by: Matthieu Baerts (NGI0) Signed-off-by: Greg Kroah-Hartman --- net/mptcp/pm_netlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/mptcp/pm_netlink.c +++ b/net/mptcp/pm_netlink.c @@ -1041,7 +1041,7 @@ static struct lock_class_key mptcp_keys[ static int mptcp_pm_nl_create_listen_socket(struct sock *sk, struct mptcp_pm_addr_entry *entry) { - bool is_ipv6 = sk->sk_family == AF_INET6; + bool is_ipv6 = entry->addr.family == AF_INET6; int addrlen = sizeof(struct sockaddr_in); struct sockaddr_storage addr; struct socket *ssock;