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 146CE2571B4; Thu, 17 Apr 2025 18:37:11 +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=1744915031; cv=none; b=EnqB+ndGlNpsGy8yO0O3YmzmfngBtRlEKzErnqJ89mm1g0Rs0mBpFX8/ThPMpjq4l8gm3UXlNxiulfuRfG67CjEj4WvWxnwlVGzNf9+YXwhO20Z+OZN+abBihGQ075VcbpNkBJs3v4vtD78UcxToYsfXsoauVWagz1wld/Ve8i8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744915031; c=relaxed/simple; bh=2aqvwazoMXvQeym7tgQxCaAWQl9Nk8cqmeRkjye7+cs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=iK9MmLDr8Sse24fq55TwsczdnA1u6Ef4+LqEKqG8lz+Z8o5enT7BYKf3oxqvcbXHtDgKltPZUGXXGk0qtRAVP4rKBhYpcivwTA7E8g6o1onirxXcEX9cAiwjYBnHF1si0anbGPQDPQALKWtIeRrLKXli6G9WIkr6qnkmSHeS+ms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nxPEmHXM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="nxPEmHXM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78C30C4CEEA; Thu, 17 Apr 2025 18:37:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744915031; bh=2aqvwazoMXvQeym7tgQxCaAWQl9Nk8cqmeRkjye7+cs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nxPEmHXMPUm+XR8oEL6K3fdmf1JQYtDpjK2P3I2WQEIiJDOfg44vFK5vYsLJ2ypUy WKCnmLKne8Ww8/awI2yeUUO1nyM/7IewySeQUNmAUr2A6AvfpFbcApnPsUXPIFfGtt 8AsH4pitCoepyYGz+sW2JUmskISx/c3X6uy2VLZw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, =?UTF-8?q?G=C3=BCnther=20Noack?= , Mikhail Ivanov , =?UTF-8?q?Micka=C3=ABl=20Sala=C3=BCn?= Subject: [PATCH 6.13 371/414] landlock: Add erratum for TCP fix Date: Thu, 17 Apr 2025 19:52:09 +0200 Message-ID: <20250417175126.386378444@linuxfoundation.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250417175111.386381660@linuxfoundation.org> References: <20250417175111.386381660@linuxfoundation.org> User-Agent: quilt/0.68 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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 6.13-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mickaël Salaün commit 48fce74fe209ba9e9b416d7100ccee546edc9fc6 upstream. Add erratum for the TCP socket identification fixed with commit 854277e2cc8c ("landlock: Fix non-TCP sockets restriction"). Fixes: 854277e2cc8c ("landlock: Fix non-TCP sockets restriction") Cc: Günther Noack Cc: Mikhail Ivanov Cc: stable@vger.kernel.org Link: https://lore.kernel.org/r/20250318161443.279194-4-mic@digikod.net Signed-off-by: Mickaël Salaün Signed-off-by: Greg Kroah-Hartman --- security/landlock/errata/abi-4.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 security/landlock/errata/abi-4.h --- /dev/null +++ b/security/landlock/errata/abi-4.h @@ -0,0 +1,15 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ + +/** + * DOC: erratum_1 + * + * Erratum 1: TCP socket identification + * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + * + * This fix addresses an issue where IPv4 and IPv6 stream sockets (e.g., SMC, + * MPTCP, or SCTP) were incorrectly restricted by TCP access rights during + * :manpage:`bind(2)` and :manpage:`connect(2)` operations. This change ensures + * that only TCP sockets are subject to TCP access rights, allowing other + * protocols to operate without unnecessary restrictions. + */ +LANDLOCK_ERRATUM(1)