Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1079671pxf; Fri, 12 Mar 2021 01:05:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzY4HVuBPJ1L3LfC6B8cfm9aYoGHsREnHg0iGD7UIip/ANlkh8SmCvWGbx8F0ApYypcGaoX X-Received: by 2002:a05:6402:704:: with SMTP id w4mr13533523edx.175.1615539959170; Fri, 12 Mar 2021 01:05:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615539959; cv=none; d=google.com; s=arc-20160816; b=v0VJaRXWkzKcDDQyHjbUQcbOac7K3tloh6VaW4olbYz9A540Nd7pQ8XFWR+qPBTEn3 rs/XT5SjpejahMuIjZ8wxrBAB13Z/TPJC62d7OnXXDjuSw3Xn2YWbDUD1hQkqvudnKTD Vdxv3TBxYRyYGG0nq2wFZneUMUgvUuP8fwQiecOPP97qQw80A+8Izn91Q2MIW6Fl1vR+ VFR2mz26be5vvCTip1rtq540+i03VhrEb60HcAaeW6ZkIOes1JhtQzZiMYI5gxqnJOfk Oh5pjoS1Kluy4CbjuHDjokW3Obx5zkgaz0hR/OfH5pDQSGmV9Y1A9nSRnjBxa7duHWrq jIcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:content-transfer-encoding :mime-version:subject:cc:to:references:in-reply-to:from:organization :dkim-signature; bh=kZgi8ac9iRjWqxn6NnFC7WOkmA3vCT3GJ0uAoFy454Y=; b=HtFa8MPZRzSIY+1UKNbB+LpBkyFk7CSyJ0dOtAAUN/H5kHIGsm5MTdRpUSOjIxe5Yi qRVJsgs8JCBM7X4SbIg6wlysjv0mpVxlxnjYTss+eSbMMQcK6n7kSCAg+uhus1gLApAZ EQ8cB6qJ2pIVboCwH9wzbYeBoBWqA1RLsif0v8apGVrG3AfrH0McCOj4F4FzhT5L5QZG 3BKehI5fk4pUDClgEsQ2FPNjaKFZF08w8X+ROvGGUnm2/A1edcd9PvCxEZK/LUw1SHl8 pOv6iZbFzKBSjQkIhzXBwGjSLdxPpk8geDUBBhllPSrL+vjFXLBEGZnvEu/mkk4Qtg8J +tcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="NEgCV/pH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z5si3667297edp.552.2021.03.12.01.05.36; Fri, 12 Mar 2021 01:05:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="NEgCV/pH"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232676AbhCLJBs (ORCPT + 99 others); Fri, 12 Mar 2021 04:01:48 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:53213 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232617AbhCLJBm (ORCPT ); Fri, 12 Mar 2021 04:01:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1615539701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kZgi8ac9iRjWqxn6NnFC7WOkmA3vCT3GJ0uAoFy454Y=; b=NEgCV/pHoSgDm4BYpy0p1mTjKYY/Jp0wVR5GswzvG/VBM/IDP1wNHbadmghqTGlxvgFLw+ /MbByJ7/rCdX18VGPSwnfTAwlSs9hckcZTBjwBr9iHv5XyPmWLlgpkgo7wXzeEl4DCUeh9 8uLtU/vpR+aiWh4oXLNFKJx2RGOxc+Q= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-580-3rk5lSl7O5qjq-AoOjETww-1; Fri, 12 Mar 2021 04:01:39 -0500 X-MC-Unique: 3rk5lSl7O5qjq-AoOjETww-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 6C7A518397A1; Fri, 12 Mar 2021 09:01:38 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-118-152.rdu2.redhat.com [10.10.118.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id 7A96F5C234; Fri, 12 Mar 2021 09:01:37 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <134696.1615510534@turing-police> References: <134696.1615510534@turing-police> <109018.1615463088@turing-police> <91190.1615444370@turing-police> <972381.1615459754@warthog.procyon.org.uk> <1486567.1615464259@warthog.procyon.org.uk> To: =?us-ascii?Q?Valdis_Kl=3D=3Futf-8=3FQ=3F=3Dc4=3D93=3F=3Dtnieks?= Cc: dhowells@redhat.com, David Woodhouse , keyrings@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: 'make O=' indigestion with module signing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 12 Mar 2021 09:01:36 +0000 Message-ID: <2026575.1615539696@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Valdis Kl=C4=93tnieks wrote: > So the root cause was: 'make mrproper doesn't clean certs/' out enough, > and this chunk of certs/Makefile > ... > I admit not being sure how (or if) this should be fixed It's tricky because CONFIG_MODULE_SIG_KEY may not point to a file, let alon= e a file that was autogenerated - it can be given a PKCS#11 URI, for instance. = I had to put in the autogeneration based on a magic config string value to st= op randconfig blowing up - but it only does the autogeneration if you don't put in your own file there before building. Possibly I can add something like: clean-files :=3D signing_key.pem x509.genkey inside the ifeq ($(CONFIG_MODULE_SIG_KEY),"certs/signing_key.pem") ... endif section. David