From: "Mickaël Salaün" <mic@digikod.net>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: "Christian Brauner" <brauner@kernel.org>,
"Günther Noack" <gnoack@google.com>,
"Lee Seong Hyeon" <ihopenre@gmail.com>,
"Oleg Nesterov" <oleg@redhat.com>,
linux-kernel@vger.kernel.org,
linux-security-module@vger.kernel.org
Subject: Re: [GIT PULL] Landlock fixes for v7.4-rc6
Date: Fri, 4 Dec 2026 12:20:50 +0100 [thread overview]
Message-ID: <20261204.phoo5Ehaicoh@digikod.net> (raw)
In-Reply-To: <CAHk-=wg23T4sgfm0EjH=TKBmfjJfJ-pLp6-fySwFRxNmPzZNhA@mail.gmail.com>
On Thu, Dec 03, 2026 at 12:30:05PM -0800, Linus Torvalds wrote:
> On Thu, 3 Dec 2026 at 11:22, Mickaël Salaün <mic@digikod.net> wrote:
> >
> > Please pull these changes for v7.4-rc6 .
>
> No.
>
> I'm not taking some random new core signal flag like this for some
> random security module. That's against the whole point of having a
> security layer.
>
> What makes landlock so special here, and why would it need special
> flags in the signal structure?
Landlock needs to serialize TSYNC callers in each thread group without
holding exec_update_lock across an unbounded wait [1]. seccomp updates
sibling filter state directly under siglock, with cred_guard_mutex
against exec. Landlock's siblings update their own credentials through
task work [2]. A competing caller must restart, not block, so it can
run the winner's task work.
An unused bit in signal_struct has the right lifetime and doesn't grow
the structure. siglock protects the bit, not the wait.
A Landlock-owned table adds storage, lookup, insertion and removal, plus
allocation and freeing if entries are heap-backed.
The original RFC also discussed set*id() and capability updates [3];
neither changes here. I posted v3 for review [4]. The signal code now
manages the reservation instead of Landlock setting the bit directly.
Landlock still handles the restart. Does this address your concern?
>
> And I see another pointless "Link:" that points to the same
> information that is in the commit message, but none of the discussion
> that resulted in reviews etc. This is garbage, and I need explanations
> for why some security module is so special that it wants to modify the
> signal flags.
The Link pointed to the patch, not the discussion. Christian's reply
explains why we need to get off exec_update_lock here [1].
[1] https://patch.msgid.link/20261124-gehisst-modeerscheinung-hermelin-b3e1d5983901@brauner
[2] https://patch.msgid.link/CAG48ez3MxN524ge_sZeTwL0FEDASaSTb-gm1vPO8UwpijTeHqw@mail.gmail.com
[3] https://patch.msgid.link/20250310.990b29c809af@gnoack.org
[4] https://patch.msgid.link/20261204111754.1452982-1-mic@digikod.net
prev parent reply other threads:[~2026-12-04 11:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 19:22 [GIT PULL] Landlock fixes for v7.4-rc6 Mickaël Salaün
2026-12-03 20:30 ` Linus Torvalds
2026-12-04 11:20 ` Mickaël Salaün [this message]
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=20261204.phoo5Ehaicoh@digikod.net \
--to=mic@digikod.net \
--cc=brauner@kernel.org \
--cc=gnoack@google.com \
--cc=ihopenre@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=oleg@redhat.com \
--cc=torvalds@linux-foundation.org \
/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