Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4101204pxf; Mon, 29 Mar 2021 22:08:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQEjwKVfXDX5TppL/1gYgugBbwQfcGDQp1CcVCB3gSL8M061VNlK5zizPxzAMue4cpCPQ1 X-Received: by 2002:a17:906:7f01:: with SMTP id d1mr32393132ejr.136.1617080927581; Mon, 29 Mar 2021 22:08:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617080927; cv=none; d=google.com; s=arc-20160816; b=LTMAqjAODXle7jh9+1p9QhmAxDrk+t93JJB4Oo1FltE1pluWMg7fHrnEpdAlAPzlvd rrNJEmEbsDR2ABWgBlASgCeb/6QIZwAP5zyRKrryqpYgMtr4RBnbsbhj6z2zzq3Uufh+ MAdodlEOgCeMmnCFq3X0cs9mzISGt5DJ6pinxzuJg3peAyyj13tdbhfp9+/VL1pwrYnX rRX4W8mK1kCx6CR80ixLt6eLy4nYs95/XUqgS/hgWu2ptJE4G2zTS70L2KCPXLvWrUSd a9Au6lNNWtSdz+7jzwpjwFeEAQ/QsQ6vFyHCAF0DfXmsgI181+5qvdiz6tWyzNkLgTC+ G9PA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=QQzXfAlsDNFWrU7NG4I9qbfmrWvWg7YebVZEeDgtWM4=; b=F0PMKY58Ea3HMM/uT6sgCMC7sD7UWUP8UHxnuA+1EvVo1yy1HpZZ5Ggq6WqsL90BKt PELcYywGisWctYKXv5g+I2HTlAeat570T+LP42rSzryjeiwVFdoxiVdbuB0TEeThJzSb MXx1jGlThgLOWzARx9LUWPl+MC6N1xc7lW1D75/DCS1v2RUERbf68YlajZ4KxVMxpmez wjCifRtkaK67p2RFJ8V8zDyy7VoNeeHsoSLMIpRVT3zcYGhiBdByURsJ/yLYL2+5b52a 7MpF6XquZHIYAqy/7rZfynv1blDrBwfrh43AbAzdUWk0pggji8+nCpbzdrRWjoADZqC2 MR5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=OIGK3YbT; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n13si13757765ejs.39.2021.03.29.22.08.23; Mon, 29 Mar 2021 22:08:47 -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=@infradead.org header.s=casper.20170209 header.b=OIGK3YbT; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230223AbhC3FHq (ORCPT + 99 others); Tue, 30 Mar 2021 01:07:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229655AbhC3FHQ (ORCPT ); Tue, 30 Mar 2021 01:07:16 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 483AAC061762; Mon, 29 Mar 2021 22:07:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version: Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type:Content-ID: Content-Description:In-Reply-To:References; bh=QQzXfAlsDNFWrU7NG4I9qbfmrWvWg7YebVZEeDgtWM4=; b=OIGK3YbTBZ4Blj3s2AwlBrPV98 N1ucQJ3BSQwwuw0lTy99f06X3/dZRjzs7xzFRzB+TUjHdZvRifDlmYHzDeQsQye+sgkYBOWHmwCxt d8jPyoYNyjXHHrJIsByXRDAJ7JfyAeEK12Q33XxWI34nlfJDafvIx8OyxAwwWwYhDaDWTwMIWsz3T GcNVaM22yNSHUsxZofpZLXgbB9HRNrs6JGpQjU9vMnj5dfk06+5B86a5CjYP/7oonQgfeOEHJugNf YmOTht8qzQ5NhURazGpGDoSLQQaRETQLq+UoWvtVkP2EAkvHZ7OmGti2TCCslZBGKsQgZ48VW1EcL 0o7GSTpg==; Received: from [2601:1c0:6280:3f0::4557] (helo=smtpauth.infradead.org) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lR6ae-002Xds-DJ; Tue, 30 Mar 2021 05:07:00 +0000 From: Randy Dunlap To: linux-kernel@vger.kernel.org Cc: Randy Dunlap , Dexuan Cui , linux-crypto@vger.kernel.org, Eric Biggers , Herbert Xu , "David S. Miller" , Jonathan Corbet , linux-doc@vger.kernel.org Subject: [PATCH v2] Documentation: crypto: add info about "fips=" boot option Date: Mon, 29 Mar 2021 22:06:51 -0700 Message-Id: <20210330050651.13344-1-rdunlap@infradead.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org 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. + floppy= [HW] See Documentation/admin-guide/blockdev/floppy.rst.