Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1942809rdb; Tue, 20 Feb 2024 11:34:55 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWTzVaqC3sHrveeLaebZmdC6SknoNGYn8Opp+tUcaquLgfAQvhLzG6ySvOqQsHoBHHbvc1cfhrntTHa8WzG95DhcJJhEvMq03sBnqj6Rg== X-Google-Smtp-Source: AGHT+IGSn2EnpqrcsMI+bK+G6Rik1dyfpiPFrv0t4auY7qp8YFeUcSfLBwN+4/L1UMus9N5jy5RC X-Received: by 2002:a05:622a:216:b0:42d:b5e6:a90b with SMTP id b22-20020a05622a021600b0042db5e6a90bmr18368009qtx.14.1708457695146; Tue, 20 Feb 2024 11:34:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708457695; cv=pass; d=google.com; s=arc-20160816; b=YEFi3iF/C8Sg++6WDHr1C55o3UfNTQy1H7wCYA5s47CPuq71RZ9vG3WMbCmbpMywjL s7fXcHDif3NYKPNKghkFR5LWuV94b47V4NbaAe9KDGh5EJGZF+eFle2K61Q5dU3ayRnT Q2Gr4FWYFHte2tX3ucxXvuflMs4GsTigUFsSRnsf91/nHOMd9Au5GgZzXVhqPZtCLMDG RR4sjHmn3kX7++65CMA3RkmbO5u4ZLjLrBGxPo67HLou5eijlA8IYAuh7P/UQrNavLyH DILzp8kd3tYD8/leFctXEp4J0ZCpwy8zAKRs5/JkohqRAGe5JbSQko8O3NTLYGX0FmDW xKXg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=AqMjBURP4yz2unttuLWsmFP1jPBfC2BkyoiLA5ws7m8=; fh=R43tzvfnwEPBR7ztqcJImur/8mrm2V5loYknqwL08nk=; b=dcvQjqCA5X4rgq3vcBJtVjUk+ahz5wrMzgGiRlDZV5g3fSMAw84H2Y90uOV0h/e/Bx czSzCuvHWIbNuq6OShJG4ij1pqq1ny2FfcXeUpXSfQwY9BWeGDmeiw3MW6gC6VfuUu4c 5Ih1CGFO92F7e6ktvyb3VuNxHTj3V8ZcIHLoy8wjOeBy1B22CZ0XLobdjYRXinvaBoff yryLAXn5sLgilr1PpUdTKb5WISOWKY/YPeHO1FqIaOOVnJlAKurtG2pxn2dALWlIX1aE iP8NPTAq6Z1aIYPenw9mTrCXRVG1ssoW1yNsKjBCzcN6qc5Ri4XjgK25Hvm65WG3cwBR ZnAw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E831lthw; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-73601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id o13-20020a05622a008d00b0042e186adcd0si4549534qtw.759.2024.02.20.11.34.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:34:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-73601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=E831lthw; arc=pass (i=1 spf=pass spfdomain=chromium.org dkim=pass dkdomain=chromium.org dmarc=pass fromdomain=chromium.org); spf=pass (google.com: domain of linux-kernel+bounces-73601-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-73601-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id CFB5B1C21FE8 for ; Tue, 20 Feb 2024 19:34:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 81B691474A8; Tue, 20 Feb 2024 19:34:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b="E831lthw" Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (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 5802B1369A8 for ; Tue, 20 Feb 2024 19:34:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.174 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708457688; cv=none; b=tVoavgMNLMs5kh2yn8znfGARUEuv9pRTuX/UyR0em7vscd4ncsGxXo0/kk62IKx+fhbQLi+Tkuwt4wf1XUGwMlstjUl4PDwzKagwS0rjWd7sJnwDn7SYbJbNZ0vPWb3Tv73ORU1wBJX4Sn6pWRDjYLdrifFgU725nq8WqMoYr7w= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708457688; c=relaxed/simple; bh=pDx3btJNjE71nRE55Tfl6zWlk9Qoaiedj0Q8Hg9VDCw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=F0Gb69D/tdE9TpTi73UXwtO8GsgKpPaARRlzNesVBFDDviel111H2MzH63tflkx4vMb0uzC3YnTByeKUwHSRgiXpw041LBuGkkB/3/pOS0EOEBB/G2MKpaFAVm+evn1xKrEC9QGziVyXFZSrNMfPkdxCm3N7KEr6jnJJcfGZnNk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org; spf=pass smtp.mailfrom=chromium.org; dkim=pass (1024-bit key) header.d=chromium.org header.i=@chromium.org header.b=E831lthw; arc=none smtp.client-ip=209.85.210.174 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=chromium.org Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e34d12404eso2557951b3a.2 for ; Tue, 20 Feb 2024 11:34:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1708457686; x=1709062486; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=AqMjBURP4yz2unttuLWsmFP1jPBfC2BkyoiLA5ws7m8=; b=E831lthwpt3GdzNLu2epjmDa6Lly2WPo2AU4eCRe/GshKjmAvKS4miuQE8q2kheZnY a2cpE5nq5rHA0z1sEC1wXTLfwm4gidhqX+aMn7L4bfTjlGTVlPYYlylAfw1DucUjhtk9 oD67D89Qcxa/0Njo5yXrxGQ4/XjyCHUhhICTk= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708457686; x=1709062486; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=AqMjBURP4yz2unttuLWsmFP1jPBfC2BkyoiLA5ws7m8=; b=dHYwF2qCpKmvTbZVozkve+0RxZAPTifgsSxU4iPhvPTUK672/MQSrWDAzQ+ocTw/Id dEL95kTeHQV8m9XMEdvancYIzQzSm0dsvAmmb/YgrIxg6PNySmDmCewx+4mVwwZ6PD3P cZaBZUA+7QTVjmQ1cWMfBIB/Rv6vXip4R8PIVQ25LHXrd7c/B5KRcrZPkHwXbkK+yjE8 PCeZEPxySXjhuDfAYQ9BJIf092sEvk88xyOGhE67LufQFmKz6i1NIvhBGWDxgW9+UTj1 8EXOfWKH3rZx5Cb/iPCNaMPzc8ZjxTN+FuLhAnH4IOVIS9Dhx1cH6fqlPrUb00QJMbeF 09qg== X-Forwarded-Encrypted: i=1; AJvYcCVd/fbQkvKL78IUDrSDtz4NjxES7KmMlucrQcMyFmBH+nkD9e8zFtpbjuLEPZkf/HWgkkGyxmCqyX9PPgoRHg5jTmlAK926DDMXSSGN X-Gm-Message-State: AOJu0YzuV0RP/WscC72L+vuo9PCa+jjPYHONBHd7bJ1w2VR9TbS9hrmV nzF8acYPY2tpQlapE6n/3EkoTjK5OcBniLJQcgKH7QdIoz0GN+z4FXyGom6tRQ== X-Received: by 2002:a62:cd0d:0:b0:6e3:fe0b:527 with SMTP id o13-20020a62cd0d000000b006e3fe0b0527mr8035287pfg.30.1708457686739; Tue, 20 Feb 2024 11:34:46 -0800 (PST) Received: from www.outflux.net ([198.0.35.241]) by smtp.gmail.com with ESMTPSA id k21-20020aa788d5000000b006ddcadb1e2csm7263180pff.29.2024.02.20.11.34.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 11:34:46 -0800 (PST) Date: Tue, 20 Feb 2024 11:34:45 -0800 From: Kees Cook To: Jann Horn Cc: Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/3] x86/boot: avoid recompiling kaslr.c for incremental rebuilds Message-ID: <202402201133.3FC7CE9@keescook> References: <20240220192144.2050167-1-jannh@google.com> <20240220192144.2050167-4-jannh@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240220192144.2050167-4-jannh@google.com> On Tue, Feb 20, 2024 at 08:21:44PM +0100, Jann Horn wrote: > Currently, every kernel rebuild needs to compile kaslr.c again because > UTS_VERSION changes on every rebuild. > Move the build string into a separate object file to speed things up. Heh, I think I don't see this because I force my UTS_VERSION to stay still by default so I can do binary difference comparisons more easily. :P args += ['KBUILD_BUILD_TIMESTAMP=1970-01-01'] args += ['KBUILD_BUILD_VERSION=1'] args += ['KBUILD_BUILD_USER=user'] args += ['KBUILD_BUILD_HOST=host'] -- Kees Cook