All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
Cc: linux-security-module@vger.kernel.org
Subject: Re: [PATCH v3] landlock: Do not hold exec_update_lock across the TSYNC wait
Date: Fri, 04 Dec 2026 11:41:14 +0000	[thread overview]
Message-ID: <sashiko-outbox-249704@kernel.org> (raw)
In-Reply-To: <20261204111754.1452982-1-mic@digikod.net>

> landlock_restrict_sibling_threads() write-locks
> current->signal->exec_update_lock to serialize TSYNC callers and holds
> it until every sibling has run its task work. That wait is unbounded.
> Readers of the lock, including procfs and process inspection tools, can
> therefore stall on an unrelated task's Landlock operation.
> 
> Reserve the thread group for a cross-thread credential update instead.
> A bit in signal_struct.flags has the right sharing and lifetime without
> growing the structure or allocating memory. A separate table would need
> per-operation storage and synchronization. The signal code takes
> sighand->siglock only to check or update the reservation, preserves IRQ
> state, and rejects acquisition during group exit or exec teardown.
> 
> Unlike seccomp, which updates sibling filter state directly, Landlock
> waits for siblings to update their own credentials. A competing caller
> [ ... ]
> Cc: Yihan Ding <dingyihan@uniontech.com>
> Cc: stable@vger.kernel.org
> Reported-by: Lee Seong Hyeon <ihopenre@gmail.com>
> Fixes: ff88df67dbf7 ("landlock: Serialize TSYNC thread restriction")
> Signed-off-by: Mickaël Salaün <mic@digikod.net>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/20261204111754.1452982-1-mic@digikod.net?part=1

  reply	other threads:[~2026-12-04 11:41 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 11:17 [PATCH v3] landlock: Do not hold exec_update_lock across the TSYNC wait Mickaël Salaün
2026-12-04 11:41 ` sashiko-bot [this message]
2026-12-04 11:56 ` 이성현
2026-12-04 15:38 ` 이성현

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=sashiko-outbox-249704@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-security-module@vger.kernel.org \
    --cc=sashiko-reviews@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.