Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4112338pxf; Mon, 29 Mar 2021 22:32:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwtj8srTABJZVHWX4nge5Ryxe160qJD7B3Pt8onE3nURzokyIyTA840WM+G/3C7JfLRtMY7 X-Received: by 2002:a17:906:7a0b:: with SMTP id d11mr19589504ejo.113.1617082362790; Mon, 29 Mar 2021 22:32:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617082362; cv=none; d=google.com; s=arc-20160816; b=KZpmnSuqmg8Ubj8vHzjNMEKO+mCxh9RKteqRmMYPIbEsETOIyTQ0lQuvuhupRzlaeK 3fv72Lj9EsaDjoNRVAee2T4UTkYZjCBjDrHyRRZI+lohGHGtyQ8KsXKa2dagIoRaDJ7G NnHtgxMqzqoropoEUuKrpEmtLo057bEZphcfTUrxTl65oo43GIsDTdzFpsTa5/8PNU6V KhNqh1uOlc0z2GTQZwUhiyx5Ss071bGpw5hs9rbbBM6HgAhwn9XYKTtaL8mlriXJbcKj 7lef6w1ARR2CadRG/m19+LIqmGQj3gcekJO6/3+5CUQL9X6p4VErP13ypWSg2cWhkZzz 1m/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=isCZO+yr6LX+T3qUWwq9634NUkGh6qCIDk5X8C3v+jM=; b=zWoYSF0+E3LnTxJHUZNoMp1AACZ0uL3PeuzDcWKTCpbXQ8qqIYXO7/804typ9tu2JS k2aFlwgLoRnBIlnhwZC3uyvjQHKNJa0C7spQfGcOiHSmpUBCUSlYVP8w2Nw/sIRo3WZk RPXG9KzXaT/ufZN0iKaIZpbtD6v6vt2KS9BuPa9ANQFhoBliTgcZiopSIiDoNpjGfjID XBBpPbZNbMHYF5TXWx3iZJ4z8Vr+43ymtZiPYaafo//IaPDQB6ncqBE5ZMAPYxk9QIhT bQ/DI4p8ILtoLoARhBeVz+Oy4MFSg/qDB05CVA1UYT/n99/kiNL/CCDnWdUYZzubS3aG dsPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gNsS5Hq1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y16si15237919edq.493.2021.03.29.22.32.08; Mon, 29 Mar 2021 22:32:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@kernel.org header.s=k20201202 header.b=gNsS5Hq1; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229873AbhC3F3y (ORCPT + 99 others); Tue, 30 Mar 2021 01:29:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:36520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229675AbhC3F3c (ORCPT ); Tue, 30 Mar 2021 01:29:32 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 81EE461921; Tue, 30 Mar 2021 05:29:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617082171; bh=8I7DqHNKkHoQuqnMHUExWNfnew54U0aGIlJ/JSc4DuQ=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gNsS5Hq1zZvyXLoIKggM0Laqwgx9GQDCRSubWKvHBkg68by1ByQgXrhO1EH6VqwAt c78FnjAquP16SnS+YSKL5QBAyiEHUuerQYmXDAyU2LGlWbTt/+t4IqaZ+qYXm2sHgR fQWa/iSoc5AAmbZgSMKQmU9JspMq+U9HytOZl5zgZCgBvrROzhz7S2DWmJIUzgRMUg OvU754rBTvWwmVvjzHG076rh/Bjdfl9pbb1kFvQc8k3GdSO17R66il3OT0zHQ0j8qD obkz2HwOrnFWBuO7vf05Pji0CpA8rinGGxQu8sf6hZfGcEQ5OmhjZt4zdXg8Pe/p07 raaeW+F2bErmw== Date: Mon, 29 Mar 2021 22:29:30 -0700 From: Eric Biggers To: Randy Dunlap Cc: linux-kernel@vger.kernel.org, Dexuan Cui , linux-crypto@vger.kernel.org, Herbert Xu , "David S. Miller" , Jonathan Corbet , linux-doc@vger.kernel.org Subject: Re: [PATCH v2] Documentation: crypto: add info about "fips=" boot option Message-ID: References: <20210330050651.13344-1-rdunlap@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210330050651.13344-1-rdunlap@infradead.org> Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, Mar 29, 2021 at 10:06:51PM -0700, Randy Dunlap wrote: > Having just seen a report of using "fips=1" on the kernel command line, > I could not find it documented anywhere, so add some help for it. > > Signed-off-by: Randy Dunlap > Cc: Dexuan Cui > Cc: linux-crypto@vger.kernel.org > Cc: Eric Biggers > Cc: Herbert Xu > Cc: "David S. Miller" > Cc: Jonathan Corbet > Cc: linux-doc@vger.kernel.org > --- > Updates/corrections welcome. > > v2: drop comment that "fips_enabled can cause some tests to be skipped". > > Documentation/admin-guide/kernel-parameters.txt | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > > --- linux-next-20210329.orig/Documentation/admin-guide/kernel-parameters.txt > +++ linux-next-20210329/Documentation/admin-guide/kernel-parameters.txt > @@ -1370,6 +1370,20 @@ > See Documentation/admin-guide/sysctl/net.rst for > fb_tunnels_only_for_init_ns > > + fips= Format: { 0 | 1} > + Use to disable (0) or enable (1) FIPS mode. > + If enabled, any process that is waiting on the > + 'fips_fail_notif_chain' will be notified of fips > + failures. > + This setting can also be modified via sysctl at > + /proc/sysctl/crypto/fips_enabled, i.e., > + crypto.fips_enabled. > + If fips_enabled = 1 and a test fails, it will cause a > + kernel panic. > + If fips_enabled = 1, RSA test requires a key size of > + 2K or larger. > + It can also effect which ECC curve is used. This doesn't really explain why anyone would want to give this option. What high-level thing is this option meant to be accomplishing? That's what the documentation should explain. - Eric