Re: [GIT PULL] Landlock fixes for v7.4-rc6
From: Linus Torvalds
Date: Fri Dec 04 2026 - 13:49:42 EST
On Fri, 4 Dec 2026 at 03:20, Mickaël Salaün <mic@xxxxxxxxxxx> wrote:
>
> Landlock needs to serialize TSYNC callers in each thread group without
> holding exec_update_lock across an unbounded wait [1].
Oh, I agree that exec_update_lock is a horrible lock to hold.
What I do *not* agree with is adding random LANDLOCK bits into the
core signal handler flags, naming them for some incomprehensible
landlock-only reason ("TSYNC"? WTF?) and updating them inside the
landlock code.
That's a disaster in so many ways, and I will *not* be taking code like that.
Your other patch at least looks like it has an explanation for it, and
uses names that make more sense. But I still feel like it should
actually be shown to be a generic thing. I don't see that approach
working for other users as-is, since there is no way to wait for it.
You rely on system call restart and if I read it right it seems to
busy-loop in user space.
Which is not acceptable *either* - now you're potentially just having
livelocks with user space in any realtime scheduling situation.
So I still think this whole approach is entirely broken.
I *do* agree that using exec_update_lock is *also* entirely broken,
but two brokens do not make a whole.
Linus