From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=83.166.143.175 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796383261; b=M21P3P+hdjiAGAklNz2J4cYRZFy4/wvHjfV/gbXluHlXaRRO1rKor2cSmTJSCYtw++Ez 81ROEEzXaLL9pVsiNrG6rtBCJ8YfuuvNp6LcRDGWHinSxvBImolbIAurPMMazi8JJdvFB I4l3pboOUCyW3dDKoYPc/UGINvs88BwuhySJpRAjv5QYrfL+rBFgXnaRzEcSKfbbNIaE8 TvXXWW0eFX2QYfnGvygO/oxDe7adWt9voU1s2EMbZJd5nqwLdiImhS7XSWrZ6UzWVk/fc vNCqApwv/V1GIjQEZIlD1nlf/quzLMGtFeRJPeATueWdrhMhTeLcfZjqSajGNOHpAjg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796383261; h=DMARC-Filter:Received:DKIM-Signature:Received:Date:From:To:Cc: Subject:Message-ID:References:MIME-Version:Content-Type: Content-Disposition:Content-Transfer-Encoding:In-Reply-To: X-Infomaniak-Routing; bh=4GtYjiZZqM2W5urW2vzGx8qXptGVDRWHzQx2oVKH460=; b=4G5gRhvDXSh7g9xfDyD1IYNQ7ju8+w6C6L3NGwaiQRQGe9h44IqZn19J0NRbz6hs0MaQ UcQANPP3z00CtYHpRRXb1r0B0FbC9ouUyltsAS/HN3JBFK5oDwN9NnGRUdKNDYwkgGBhN /IkcBXwygIRPy1wd/cPFQPJEjpKS5GxXZoiKZJlACugc0S5olyh2dwIdBRW+wBl+2KWp/ keJOgdJacKsjV63fGyuszq2LtB6v6OmM7jff5ugpV8NS8OPs2CJuQVVIp9ZmN3SBaGPP9 KOJBwOYM4rQxEqJB7dtQ2J3vSHQRKzXC/LhwHvNKO2fkK24TGIuv+pu4cAPd9U1A21g== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none header.from=digikod.net; spf=pass smtp.mailfrom=digikod.net; dkim=pass header.d=digikod.net header.i=@digikod.net header.a=rsa-sha256 header.s=20191114 header.b=sTEV8M9w; arc=none smtp.remote-ip=83.166.143.175 Received: from smtp-8faf.mail.infomaniak.ch (smtp-8faf.mail.infomaniak.ch [83.166.143.175]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B5D89606A32F for ; Fri, 4 Dec 2026 11:20:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5D89606A32F Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=digikod.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=digikod.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=digikod.net header.i=@digikod.net header.a=rsa-sha256 header.s=20191114 header.b=sTEV8M9w Received: from smtp-3-0000.mail.infomaniak.ch (smtp-3-0000.mail.infomaniak.ch [10.4.36.107]) by smtp-4-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4jgpvm0lWKz3bN; Fri, 4 Dec 2026 12:20:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=digikod.net; s=20191114; t=1796383251; bh=4GtYjiZZqM2W5urW2vzGx8qXptGVDRWHzQx2oVKH460=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=sTEV8M9wgXqv7ztAITIAr3LHNKql0VcPTkrN+XoxyLI8SX9cCKwSKDJFOZvaPxj5G 8FY+18e+Jgw9rJyod+xwMOnZ4759amUClmAq9J/Fq3w2vdWLp1gDv5aBDiMOcfilum Ea2zV21YxWnfEXPjXFVx9RV0KPRLroxEQCL/UTWc= Received: from unknown by smtp-3-0000.mail.infomaniak.ch (Postfix) with ESMTPA id 4jgpvk61mdzLNL; Fri, 4 Dec 2026 12:20:50 +0100 (CET) Date: Fri, 4 Dec 2026 12:20:50 +0100 From: =?utf-8?Q?Micka=C3=ABl_Sala=C3=BCn?= To: Linus Torvalds Cc: Christian Brauner , =?utf-8?Q?G=C3=BCnther?= Noack , Lee Seong Hyeon , Oleg Nesterov , linux-kernel@vger.kernel.org, linux-security-module@vger.kernel.org Subject: Re: [GIT PULL] Landlock fixes for v7.4-rc6 Message-ID: <20261204.phoo5Ehaicoh@digikod.net> References: <20261203192223.1259240-1-mic@digikod.net> X-Mailing-List: linux-security-module@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Infomaniak-Routing: alpha 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 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