From: "Mickaël Salaün" <mic@digikod.net>
To: "Dan Carpenter" <dan.carpenter@linaro.org>,
"Günther Noack" <gnoack@google.com>,
"Paul Moore" <paul@paul-moore.com>,
"Serge E . Hallyn" <serge@hallyn.com>
Cc: "Mickaël Salaün" <mic@digikod.net>,
"Christian Brauner" <brauner@kernel.org>,
"Jann Horn" <jannh@google.com>, "Jeff Xu" <jeffxu@google.com>,
"Kees Cook" <kees@kernel.org>,
"Mikhail Ivanov" <ivanov.mikhail1@huawei-partners.com>,
"Tahera Fahimi" <fahimitahera@gmail.com>,
linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org
Subject: [PATCH v2 0/8] Landlock signal scope fix and errata interface
Date: Tue, 18 Mar 2025 17:14:35 +0100 [thread overview]
Message-ID: <20250318161443.279194-1-mic@digikod.net> (raw)
Hi,
The initial motivation for this series is a fix for the signal scoping
restriction (see patch 5/8).
Because some user space code cannot use the signal scoping feature
without this fix, we need to have a way to identify if this fix is
applied to the running kernel. This led me to implement a new "errata"
interface to let user space know if it can use some fixed features.
This should be especially useful in the Landlock Go library to be able
to use the signal scoping control.
Testing this series with Sparse, I had to add a check for __has_include
support to avoid Sparse errors. I guess this could be fixed in Sparse
but for now let's just ignore this error.
This second patch series also brings new tests for this fix.
Previous version:
v1: https://lore.kernel.org/r/20250313145904.3238184-1-mic@digikod.net
Regards,
Mickaël Salaün (8):
landlock: Move code to ease future backports
landlock: Add the errata interface
landlock: Add erratum for TCP fix
landlock: Prepare to add second errata
landlock: Always allow signals between threads of the same process
selftests/landlock: Split signal_scoping_threads tests
selftests/landlock: Add a new test for setuid()
landlock: Document errata
Documentation/userspace-api/landlock.rst | 24 +++-
include/uapi/linux/landlock.h | 2 +
security/landlock/errata.h | 99 ++++++++++++++++
security/landlock/errata/abi-4.h | 15 +++
security/landlock/errata/abi-6.h | 19 +++
security/landlock/fs.c | 22 +++-
security/landlock/setup.c | 38 +++++-
security/landlock/setup.h | 3 +
security/landlock/syscalls.c | 22 +++-
security/landlock/task.c | 12 ++
tools/testing/selftests/landlock/base_test.c | 38 +++++-
tools/testing/selftests/landlock/common.h | 1 +
.../selftests/landlock/scoped_signal_test.c | 108 +++++++++++++++---
13 files changed, 374 insertions(+), 29 deletions(-)
create mode 100644 security/landlock/errata.h
create mode 100644 security/landlock/errata/abi-4.h
create mode 100644 security/landlock/errata/abi-6.h
base-commit: 7eb172143d5508b4da468ed59ee857c6e5e01da6
--
2.48.1
next reply other threads:[~2025-03-18 16:14 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-18 16:14 Mickaël Salaün [this message]
2025-03-18 16:14 ` [PATCH v2 1/8] landlock: Move code to ease future backports Mickaël Salaün
2025-03-18 16:14 ` [PATCH v2 2/8] landlock: Add the errata interface Mickaël Salaün
2025-03-30 10:13 ` Günther Noack
2025-03-31 10:38 ` Mickaël Salaün
2025-03-18 16:14 ` [PATCH v2 3/8] landlock: Add erratum for TCP fix Mickaël Salaün
2025-03-18 16:14 ` [PATCH v2 4/8] landlock: Prepare to add second errata Mickaël Salaün
2025-03-18 16:14 ` [PATCH v2 5/8] landlock: Always allow signals between threads of the same process Mickaël Salaün
2025-03-20 21:06 ` Mickaël Salaün
2025-03-26 7:51 ` kernel test robot
2025-03-26 11:51 ` Mickaël Salaün
[not found] ` <Z+ZrSPZph9cDvUR4@xsang-OptiPlex-9020>
2025-03-28 14:11 ` [linux-next:master] [landlock] 9d65581539: WARNING:suspicious_RCU_usage Mickaël Salaün
2025-03-18 16:14 ` [PATCH v2 6/8] selftests/landlock: Split signal_scoping_threads tests Mickaël Salaün
2025-03-18 16:14 ` [PATCH v2 7/8] selftests/landlock: Add a new test for setuid() Mickaël Salaün
2025-03-18 16:14 ` [PATCH v2 8/8] landlock: Document errata Mickaël Salaün
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250318161443.279194-1-mic@digikod.net \
--to=mic@digikod.net \
--cc=brauner@kernel.org \
--cc=dan.carpenter@linaro.org \
--cc=fahimitahera@gmail.com \
--cc=gnoack@google.com \
--cc=ivanov.mikhail1@huawei-partners.com \
--cc=jannh@google.com \
--cc=jeffxu@google.com \
--cc=kees@kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=paul@paul-moore.com \
--cc=serge@hallyn.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®