Received: by 10.223.185.116 with SMTP id b49csp5629130wrg; Tue, 27 Feb 2018 17:33:50 -0800 (PST) X-Google-Smtp-Source: AH8x22534E9E9Nqrj1/f454q7Uvmi0obYeSV9747tIXFWH086EG4nB1UU8O4jYBnh/m9Lw2eBRMY X-Received: by 10.99.110.133 with SMTP id j127mr12947255pgc.79.1519781630603; Tue, 27 Feb 2018 17:33:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519781630; cv=none; d=google.com; s=arc-20160816; b=k0BbmN9YpsEufTLG9+cYz1G2e5cCXntJuq8hoQfh7Kp5liPttgjb8oMCYGYeHSjm33 uUjsZ9r4EWdyerD7VIFDdS/UNib7W6UyLAn0gE6D9MhctWYKbNymHEdpfDxWBugchKRm n/vV5cYNJSyOtwtcmt7fR1ywxdLacF29TOUHXcT7RUdHaM9xDM8qgu0OZQBjx65+TqlB yhpxjDi1tj+FRTFcsvwT/Gmkv2/iSsmyOoZi0nIvyy7tx3XLa44im6c9zOxdQkSwvlmE mCkM+AEt5QFdfBJEjHtvQKaJ+FTRbGovzcjmMMcUGbLefxnwGIr6OQ+m+7md7m/jh9Kq HH2g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=bL1Jv+thxMmi+gXKvXGk9a6SajfUenYXSZ3e+AEaF5g=; b=kvXopUm5vh5psdNUELueWBblCGZU3cegQ//aghHsCNN34zd/JpMdEdjepd6s807ufD D1JF8ldRHQWQrFv/H1zBaGZbvxpcUxhSzchwAH1CXyWEIAnAkID8bjdFq4+TeJ1dwqgA 7ll7dRZYmhLAioTQp7I4O8plZyC78etGILN2imhAMOmizFa5hrFs3PkomiZMsKcPt7n0 pwWkp8gHVLWvzCz7IZDieXF4R4jvntEtXqGttXbe7ajoIivpALfasKU7J/TlOBwZ7NxV Fv+YZmH9HX3QcYwEvatzHgm+zvMiLYCKv6t+q8+RpofdB5HbY4qL4aMbcqUC8m1e2N0M 9IHw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e15si288771pgv.204.2018.02.27.17.33.34; Tue, 27 Feb 2018 17:33:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751893AbeB1Bck (ORCPT + 99 others); Tue, 27 Feb 2018 20:32:40 -0500 Received: from mx2.suse.de ([195.135.220.15]:48938 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751516AbeB1Bcj (ORCPT ); Tue, 27 Feb 2018 20:32:39 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id D7797ACBA; Wed, 28 Feb 2018 01:32:37 +0000 (UTC) Date: Wed, 28 Feb 2018 01:32:37 +0000 From: "Luis R. Rodriguez" To: Kees Cook , Josh Triplett Cc: "Luis R. Rodriguez" , Greg KH , Andrew Morton , Shuah Khan , Martin Fuzzey , Mimi Zohar , David Howells , pali.rohar@gmail.com, Takashi Iwai , arend.vanspriel@broadcom.com, =?utf-8?B?UmFmYcWCIE1pxYJlY2tp?= , nbroeking@me.com, Vikram Mulukutla , stephen.boyd@linaro.org, Mark Brown , Dmitry Torokhov , David Woodhouse , Linus Torvalds , Abhay_Salunke@dell.com, bjorn.andersson@linaro.org, jewalt@lgsinnovations.com, LKML , "linux-fsdevel@vger.kernel.org" Subject: Re: [PATCH v2 11/11] test_firmware: test three firmware kernel configs using a proc knob Message-ID: <20180228013237.GH14069@wotan.suse.de> References: <20180224024613.24078-1-mcgrof@kernel.org> <20180224024613.24078-12-mcgrof@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.6.0 (2016-04-01) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 27, 2018 at 03:18:15PM -0800, Kees Cook wrote: > On Fri, Feb 23, 2018 at 6:46 PM, Luis R. Rodriguez wrote: > > Since we now have knobs to twiddle what used to be set on kernel > > configurations we can build one base kernel configuration and modify > > behaviour to mimic such kernel configurations to test them. > > > > Provided you build a kernel with: > > > > CONFIG_TEST_FIRMWARE=y > > CONFIG_FW_LOADER=y > > CONFIG_FW_LOADER_USER_HELPER=y > > CONFIG_IKCONFIG=y > > CONFIG_IKCONFIG_PROC=y > > > > We should now be able test all possible kernel configurations > > when FW_LOADER=y. Note that when FW_LOADER=m we just don't provide > > the built-in functionality of the built-in firmware. > > > > If you're on an old kernel and either don't have /proc/config.gz > > (CONFIG_IKCONFIG_PROC) or haven't enabled CONFIG_FW_LOADER_USER_HELPER > > we cannot run these dynamic tests, so just run both scripts just > > as we used to before making blunt assumptions about your setup > > and requirements exactly as we did before. > > > > Signed-off-by: Luis R. Rodriguez > > Cool. Nice to have it all in one test build now. :) Now what about we start discussing one kernel config only for the future? The impact would be the size of the fallback mechanism. That should be a bit clear in terms of size impact after this series. Wonder what Josh thinks as he help with tinyconfig. We could target v4.18 if its sensible. > Acked-by: Kees Cook Luis