From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796384474; b=RAkhGKDE4I+AeeEY9PcvgKgU2Z0a5e3ljETs5YuCo5b8+q/VXOq2Iqn+W+OntfQXGyMR mYcztoobBOXpEHJLLbIA4PqTQQpz0sbauKCKAnly2RMAvGveXC1hrFF/EaFJVIDX8pD83 SQsmHVhrjuzzUxxqDcicl35u3DDHFXRn2oDvD97nGmkLJFY5s9LoCHh/NCQCELjEZjgYU /eu2otjGtVqW8IbKsYdIsqCF2jJkefvPisIjWKBDFNEZ4EK1OkIL2k2/ytQ8krcsCfxfY 9eGlaM009IxQtpF9GCs4Tkh9GBVVxnDkzfklXO2T6QtAuSj3jekP7vfwHv66dLpfsvw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796384474; h=Received:DKIM-Signature:Message-ID:From:Subject:Reply-To:Cc: In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=uH1Hm4xwNdGgujwRq6gnCDP22TM7Avjz/usJFl9QXtM=; b=LFVWGE1biTy5BW/3nqPLHjS9TAnYmSHqRIOjK8yJGptycCbiAtsqhLIA3T0m7HrkdwHf GS1786crTJZLwN1U6MiGDYXCrNR5U9mqGOJu0LeP2tfU+92B8GcMs+ZXUamwG3M/zkiaE AE5YDNZuufrEwFQAaUesw9H6G5eqEBOPGc1zrnIY7fedkZSHKUAeM7GSdtNcVU9mQYiKY Lh0pkD8toSwesPAT3ljQd9BlzNjAfMrBV5ceD5Fcc09BHO/I7MdgcsygN2aeBAYmeCuF5 VHMH5JqxZLSjc04HN+NbCk+cFqecGDux8G7p+z0w0GLdrZDuykmOC5KFm3lQvtU4a2A== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iroY6n2m; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF173606A322 for ; Fri, 4 Dec 2026 11:41:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=iroY6n2m Received: by smtp.kernel.org (Postfix) with ESMTPSA id A21DE1F000CE for ; Fri, 4 Dec 2026 11:41:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796384474; bh=uH1Hm4xwNdGgujwRq6gnCDP22TM7Avjz/usJFl9QXtM=; h=From:Subject:Reply-To:Cc:In-Reply-To:References:Date; b=iroY6n2m/2xcHGUU8nm6RcMkapcBy1PidqQPslvbceLAP5rRSFnEIkn7LBcJZr15d +D+IMq9qfg8kHwYtPMze423wy45zZBFr8tAMsPiCgUf/NPEF1zSJRcf9mhmznnh8KF eZmpWPzOz3VqW5XonwQr4+oW+5gwjR945wroi8oYQmkwbuMBy8JzsjX9ATtN2xp4PT fcEG7i0S3X1TZmVUjeAH52poh3IzxoRuPOiEP/gEWs9NWzKAc52D5Rg5EMnuVt9rhe l7CaVbLX/2JUayIY7UlFvR6Y+vn4mMnWihZSfWgaiIj5ONJKGF/Nz3Qe4m2n8LGYAg 7u3dkgXYp3kzg== Message-ID: From: sashiko-bot@kernel.org Subject: Re: [PATCH v3] landlock: Do not hold exec_update_lock across the TSYNC wait Reply-To: sashiko-reviews@lists.linux.dev Cc: linux-security-module@vger.kernel.org In-Reply-To: <20261204111754.1452982-1-mic@digikod.net> References: <20261204111754.1452982-1-mic@digikod.net> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 04 Dec 2026 11:41:14 +0000 X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list > 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. >=20 > 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. >=20 > Unlike seccomp, which updates sibling filter state directly, Landlock > waits for siblings to update their own credentials. A competing caller > [ ... ] > Cc: Yihan Ding > Cc: stable@vger.kernel.org > Reported-by: Lee Seong Hyeon > Fixes: ff88df67dbf7 ("landlock: Serialize TSYNC thread restriction") > Signed-off-by: Micka=C3=ABl Sala=C3=BCn Sashiko has reviewed this patch and found no issues. --=20 Sashiko AI review =C2=B7 https://sashiko.dev/#/patchset/20261204111754.1452= 982-1-mic@digikod.net?part=3D1