Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp812943iog; Mon, 13 Jun 2022 13:35:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyQzzdsDEsUOoLzEQrnCHiu62QY39MlIGzPAhSvLEiEbggAGmS6/7x6gkuYfH241Ch6c55p X-Received: by 2002:a05:6402:354a:b0:430:4855:2821 with SMTP id f10-20020a056402354a00b0043048552821mr1749744edd.391.1655152527030; Mon, 13 Jun 2022 13:35:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655152527; cv=none; d=google.com; s=arc-20160816; b=CRNQClRgrYvuN3UP47Kws+xl9Q4ltymT+XToGfARor2fTYr3bPdJbSdFkNu/IxZOZl /VCISRxljXUpKj9z7j+trEhX08ST9e00yXcsM3bMP/G1oBUeIpqIQWuJpzQAb6u42s+f zHGC+GNhg5xWO0Ym8Y7NOUEiLFF13s/hsaXsejS+jxdY4u8p4X48hSPdB6t6xFcImjSi lI4j4QckLuID460V6Wvuhtr+s14Y2J0MLhQIxAUP9yOGgjUpkh1HjsTm1pn4PxVX0OYI D1GBopIULdITSi+VRXZA2CVP+ZT10g8GbfWm7ZTRQXJYpqhkxqjz9fhz1JYoNNRI7NEE XRFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:subject :from:references:cc:to:content-language:user-agent:mime-version:date :message-id:dkim-signature; bh=dt8MhCIddqPfyRtu43b+bY6axOLutx9qYbDGP8S3P6Q=; b=EgiPRbM0cqHycyaPZNf2KWDCXt3zd6JD4ePlxu7DzC64+EKLCCWtAkFOOeZJpik9LD Y82KiBEuhnsn1BaYqye/X9FyFZQ1FL9Tty1jJ4ITxXJuYDlNRWNnj3uN3/vT6dWKJgAu gumWwDdy1k8axjCXFEsGeNtCXhauZNZlw+dRz9cA1D3GHhGMiX2ew+RQR0i0AzkaMdRu L+9U9OnUml0vuCLtEY1sX+rMWpNzB6HZ+NBmcmoGhKWNWgYymPqwJabONsL7/ZvDXr3F qI5dsVZkhdawAs2KR4GncGi1U2ERtuyMhoRG0weRPvQ+2He3B/gvJD8HVCnViC+QFXPs RAOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=xuKhCqkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id s16-20020a056402521000b0042ddd05d4ebsi9599716edd.610.2022.06.13.13.35.02; Mon, 13 Jun 2022 13:35:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@digikod.net header.s=20191114 header.b=xuKhCqkb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1351612AbiFMUaP (ORCPT + 99 others); Mon, 13 Jun 2022 16:30:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344608AbiFMU1q (ORCPT ); Mon, 13 Jun 2022 16:27:46 -0400 Received: from smtp-190e.mail.infomaniak.ch (smtp-190e.mail.infomaniak.ch [IPv6:2001:1600:4:17::190e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A4C02E003 for ; Mon, 13 Jun 2022 12:14:39 -0700 (PDT) Received: from smtp-2-0001.mail.infomaniak.ch (unknown [10.5.36.108]) by smtp-3-3000.mail.infomaniak.ch (Postfix) with ESMTPS id 4LMLq01nMXzMpypd; Mon, 13 Jun 2022 21:14:36 +0200 (CEST) Received: from ns3096276.ip-94-23-54.eu (unknown [23.97.221.149]) by smtp-2-0001.mail.infomaniak.ch (Postfix) with ESMTPA id 4LMLpz345czlnRWJ; Mon, 13 Jun 2022 21:14:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=digikod.net; s=20191114; t=1655147676; bh=DptoC5CtpA0paKgo5YiL6B5L56+hCSKBbaRlDlyG1xU=; h=Date:To:Cc:References:From:Subject:In-Reply-To:From; b=xuKhCqkbYSiLCXnby1uxSpEEdeUQXoodRpEkkGTao0DtUs51H6UZyCH/10ow6wH7V YD6TCpZWq3lYXZh//b7E4KPv/K1fNIs9sZo3E4DrHCDactJ1Yc2S4CSiF1Wtq1j5XC 6FQ2e2qc4OikXYOX0QltmlL5AMQmjl414dOcXXro= Message-ID: <9bfdbd00-9f8d-0fc6-34d2-f23aea148c27@digikod.net> Date: Mon, 13 Jun 2022 21:14:34 +0200 MIME-Version: 1.0 User-Agent: Content-Language: en-US To: Masahiro Yamada Cc: Linux Kbuild mailing list , David Howells , Jarkko Sakkinen , David Woodhouse , keyrings@vger.kernel.org, Linux Kernel Mailing List , Eric Snowberg , Herbert Xu , Tyler Hicks References: <20220611172233.1494073-1-masahiroy@kernel.org> <20220611172233.1494073-2-masahiroy@kernel.org> <58a20890-557e-f31c-ed59-7e256445a26c@digikod.net> From: =?UTF-8?Q?Micka=c3=abl_Sala=c3=bcn?= Subject: Re: [PATCH 2/4] certs: fix and refactor CONFIG_SYSTEM_BLACKLIST_HASH_LIST build In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/06/2022 20:56, Masahiro Yamada wrote: > On Tue, Jun 14, 2022 at 3:06 AM Mickaël Salaün wrote: >> >> >> On 13/06/2022 16:55, Masahiro Yamada wrote: >>> On Mon, Jun 13, 2022 at 9:34 PM Mickaël Salaün wrote: >>>> >>>> >>>> >>>> On 11/06/2022 19:22, Masahiro Yamada wrote: >>>>> Commit addf466389d9 ("certs: Check that builtin blacklist hashes are >>>>> valid") was applied 8 months after the submission. >>>>> >>>>> In the meantime, the base code had been removed by commit b8c96a6b466c >>>>> ("certs: simplify $(srctree)/ handling and remove config_filename >>>>> macro"). >>>>> >>>>> Fix the Makefile. >>>>> >>>>> Create a local copy of $(CONFIG_SYSTEM_BLACKLIST_HASH_LIST). It is >>>>> included from certs/blacklist_hashes.c and also works as a timestamp. >>>>> >>>>> Send error messages from check-blacklist-hashes.awk to stderr instead >>>>> of stdout. >>>>> >>>>> Fixes: addf466389d9 ("certs: Check that builtin blacklist hashes are valid") >>>>> Signed-off-by: Masahiro Yamada >>>> >>>> Reviewed-by: Mickaël Salaün >>>> >>>> As a side note, it may let an orphan certs/blacklist_hashes_checked file >>>> but we can't really do something about that and it's OK. >>> >>> >>> GNU Make uses timestamps of files for dependency tracking, >>> so Kbuild keeps all intermediate files. >>> >>> Keeping certs/blacklist_hashes_checked >>> is the right thing to do. >> >> blacklist_hashes_checked is the file you replaced with >> blacklist_hash_list, and is then not used in any Makefile anymore. There >> is then no timestamp issue. I just wanted to mention that it is normal >> that a git status will show it on build directories also used as source >> directories that were already using such feature. > > > Ah, sorry, I misunderstood your feedback. > > If 'git status' is your concern, > we can add certs/blacklist_hashes_checked > to scripts/remove-stale-files. > > addf466389d9d78f255e8b15ac44ab4791029852 > was merged into mainline just recently, and > not contained in any release. Indeed, it's all good then. > > But, if the orphan timestamp matters, I will do it. > It is just a one-liner addition.