From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f171.google.com (mail-pl1-f171.google.com [209.85.214.171]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B13DA39B960 for ; Mon, 18 May 2026 21:55:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.171 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779141352; cv=none; b=eAUm7NNLhKO0NKL+9AyfbwCdUsogPF3ZI19rAGYf88azFMSHF8eYeNjtZRWKWip5UIEE4rMTF2tFvUGj0kXfvSjU7BjFzOhpwDpXhZOH1NDbETAN4NRMRMGttK44kzRVrfArfcieGlMQ4tE1HoYPbDGcUpurc75/B99Y6V69kso= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779141352; c=relaxed/simple; bh=WhaVFwVRm1Wf4thmzuA0e0qjOQLT9x+04R1dduxYWzY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=LPIUVyhvg4b/nFmMwm+ybax3d0ciGsRDD94O9xYhnTsm6ihuj4dYg4Q3Nsf8inAHPWoGhiPEikNpGKshpRs9x2v/SbqHMuhjkjRQfxxO53XFXkMJbN04OULEUuIJ2n3s+xTfvTeD7JospRXrnwoMU8L9jPSCxO40UEDlNyZCWfA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=IvoDbo4V; arc=none smtp.client-ip=209.85.214.171 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="IvoDbo4V" Received: by mail-pl1-f171.google.com with SMTP id d9443c01a7336-2b46da8c48eso1445ad.1 for ; Mon, 18 May 2026 14:55:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1779141350; x=1779746150; darn=vger.kernel.org; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:from:to :cc:subject:date:message-id:reply-to; bh=eATlafWR2CpUln9HSfV3CyzBd2Vyaqeh6UVZyYqlodE=; b=IvoDbo4V1nj4Q9OWvBMcUPpA6eDFfBAFbu4ry1ujeKWH4fYBAFNjP7BApepEoXKgFW echIH2GbEhb+kGhHlHfftLXlBnHDih1oHm9UtaSSK5CAFRUvXh1PCqOj+XI9wKqJnmv9 BdHZsxEJDc6k4l629t6bytiQfWInZt6CAKX455PJMRgqGvsL+3fHb7ubaoj1OjP5TMpJ apWTAqJbeutKX9DtvRx+hRvKlId5JUFry4JYzoUpiHudyEvfAoPlfnA1GOb/KpKOehgq VY2sjO/zadidGT8zNRrbzepfosggp1gNZrno+6RpVU2wOW8V9Y0N7qAHPHbOdQPTZ4W2 afYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1779141350; x=1779746150; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=eATlafWR2CpUln9HSfV3CyzBd2Vyaqeh6UVZyYqlodE=; b=lBwsL2g0MVaWvaPqoXpKXx1ss0W0D7hHVv4LBJ/PPxZBG/jm3wlqnlR1+oG/uMSJVc gGsmWP3hSfqhsFUG+k2ItJ+uSmJUCs8LJSE4vYHQx0QK3Tauk6LxIOiFw4gd0mEypY/U Qzc1uYu2dReAaCcgOgHuTUD5/Fr/oVgKmieLPQN0tMEHiKbRfNjGGSiOyScK/Yk8aAn6 sAG3LXPTwuOdhaOQRVLwZwZOOvp52Y5zFCms8Qig7FhM+1V/MPnDmEGKTdmLn+wo6HF4 55ifm8XAwqbMRFd4UHi3vhNl9oCdKOxAqBK8pjyysEvqMVJr6MltMEYjN4euS+bLxojU fPWg== X-Forwarded-Encrypted: i=1; AFNElJ+S+F+TXPybF/YX938WLxJD7nwOPq35/86LdeXnK3m7Qy2XwL9TOszAHFM7S0TFnvqSp3mpVgzcO/3sRQg=@vger.kernel.org X-Gm-Message-State: AOJu0Yx+yWMaToMol4mz8WiaJ/D2F13+CJNk5Dz2XpJ51fdwz0ErORXu HpJ7QVqp27zPPFiTTovD6wDlmFw8cgPhR+OGGyfzjN+eZv0OYE+iEsrZavPsKXd9Cg== X-Gm-Gg: Acq92OFvsqBOduEPiIBZDUGbMSy9AuNT7v37F6FQP2FMvEj+czdEos2sC2KR9IFtlW1 iYX5C5KEfbKgL8XG+AuXkYiD8O2c0sGGlf6+dn+zgF/xe3Mx4mfxkaz4CHh/ks1CO/6c+xqwoz8 wTxPz9uF5Xq8Pbgi0UrDnRYJ8YyxpKXP60ldjllL+SS8/KH9PUEiwge8VFWlZFJp7DXMV/BeCfi kjr5bOtTErpIKlStnGBkX9RQKVZpPJuC0BxwvRmEoT0Xo6sMC2repT2LWCpOLeNaFnRnxfMOsqb 9u7v71o4lGX9szkpmXQ1LbBNYgpkArbsMJX3TiEPpI5KRVfLDG6R8cDqwVYrSS5srN1U7qegKFO xJcXwIJ6Lnx+oIrzDys5TMA1lUhjIyWDwT3dzj6g8HRLnquyHgpZnhSwONu51y555vlJFiJnxn8 APptXGLFVYylcCik/oG8shc18RQYNEoBpxqEwkKTb52SuLzHNITkJZpArgCoq7Gcalx669jeMMP jtSdlCYG5LV+C51 X-Received: by 2002:a17:902:d512:b0:2bc:dc0b:ab29 with SMTP id d9443c01a7336-2bdb0109472mr3880435ad.0.1779141349445; Mon, 18 May 2026 14:55:49 -0700 (PDT) Received: from google.com (171.46.125.34.bc.googleusercontent.com. [34.125.46.171]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2bd5cfe498asm164380125ad.39.2026.05.18.14.55.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 May 2026 14:55:48 -0700 (PDT) Date: Mon, 18 May 2026 21:55:43 +0000 From: Sami Tolvanen To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Eduard Zingerman , Kumar Kartikeya Dwivedi , Nathan Chancellor , Nicolas Schier , Arnd Bergmann , Luis Chamberlain , Petr Pavlu , Daniel Gomez , Paul Moore , James Morris , "Serge E. Hallyn" , Jonathan Corbet , Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , Naveen N Rao , Mimi Zohar , Roberto Sassu , Dmitry Kasatkin , Eric Snowberg , Nicolas Schier , Daniel Gomez , Aaron Tomlin , "Christophe Leroy (CS GROUP)" , Nicolas Bouchinet , Xiu Jianfeng , Martin KaFai Lau , Song Liu , Yonghong Song , Jiri Olsa , bpf@vger.kernel.org, Fabian =?iso-8859-1?Q?Gr=FCnbichler?= , Arnout Engelen , Mattia Rizzolo , kpcyrd , Christian Heusel , =?iso-8859-1?Q?C=E2ju?= Mihai-Drosi , Eric Biggers , Sebastian Andrzej Siewior , linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, linux-modules@vger.kernel.org, linux-security-module@vger.kernel.org, linux-doc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-integrity@vger.kernel.org, debian-kernel@lists.debian.org Subject: Re: [PATCH v5 00/14] module: Introduce hash-based integrity checking Message-ID: <20260518215543.GA1878854@google.com> References: <20260505-module-hashes-v5-0-e174a5a49fce@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kbuild@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20260505-module-hashes-v5-0-e174a5a49fce@weissschuh.net> Hi Thomas, On Tue, May 05, 2026 at 11:05:04AM +0200, Thomas Weißschuh wrote: > The current signature-based module integrity checking has some drawbacks > in combination with reproducible builds. Either the module signing key > is generated at build time, which makes the build unreproducible, or a > static signing key is used, which precludes rebuilds by third parties > and makes the whole build and packaging process much more complicated. > > The goal is to reach bit-for-bit reproducibility. Excluding certain > parts of the build output from the reproducibility analysis would be > error-prone and force each downstream consumer to introduce new tooling. > > Introduce a new mechanism to ensure only well-known modules are loaded > by embedding a merkle tree root of all modules built as part of the full > kernel build into vmlinux. I noticed Sashiko had a few concerns about the build changes. Would you mind taking a look to see if they're valid? https://sashiko.dev/#/patchset/20260505-module-hashes-v5-0-e174a5a49fce%40weissschuh.net Sami