Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4519311pxf; Tue, 30 Mar 2021 09:40:11 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxIX3MCQAyXw987t0muN6ieRyvnwpMSBRC1TpOqybhlhHwJbNq0WUh+1nAlY/56jfIe75VV X-Received: by 2002:a17:906:35cf:: with SMTP id p15mr34054623ejb.379.1617122411445; Tue, 30 Mar 2021 09:40:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617122411; cv=none; d=google.com; s=arc-20160816; b=Atb+pdMBLMuXXF8PNGbwDF+VGc9eBRUQjOmjkr2/KCwg5k0M6DnlZKuRfiG4+ac5Zv AEcydEGwpc/AbYNlzZdWD0IeGM6lvV240vJV5aE1TFEh7SojTQAkaBw3J9Pyf0enBqWk XZwV11zXe6y/AKNPzGQYbMeLKdGF7vp6x5JBkS/66qRyS1jTPQiSVpdMd23qm3NGJEb8 EBaB3WAGdbYNjnz/ti2DyIMlK8tzO69RFzKc8dhx6cTWAq+/MbOB+5TvVp0ynmct7bpB 5yZ7tMo4OVBM5VN+UgnDdUr9YKlmdBA/CvPNALw9EdZnhoHcpSVghWB05R9d7+YDLCJO 2LOA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5ZgTo25LsQZ9TJYftKq4wyfWOvd0PUTsUqCCu69Zbns=; b=KyVMuhh0SuZy97mHeweee1bcZqYOen7xijPZHcArKAtNwUYgqdmcnWTvVd4lBnvTBY rmFwTC8FzuxLC4wFsDPSMFvzGciFDVx0SheBCCm+zBJBGdQy6uQNcGBVyzuGTFUCF8qv TLyNwwLvQkWD1IgbMXJPYPLvcpIz6Q7ZsZKcHL31st/UxEX8zxjKVbOhj9KIoN/Ml2pk 1g0aAGF6WFaERGQdVHHukB/Nm9v7iQvGU0bJPHs26fYjXHHqu9ltLxA3KSLSRXrtuoJl oXUDvBprs8jxDCHkGUf2mgKQPCWXKPU5xFjixmsGVih/4nZzIdCHqNU0kdqPDOLVRE5k iDIg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=gujzTzvO; 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 bu13si15053604edb.498.2021.03.30.09.39.41; Tue, 30 Mar 2021 09:40:11 -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=gujzTzvO; 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 S231794AbhC3QjF (ORCPT + 99 others); Tue, 30 Mar 2021 12:39:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232186AbhC3QjD (ORCPT ); Tue, 30 Mar 2021 12:39:03 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 71898C061574; Tue, 30 Mar 2021 09:39:02 -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:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender :Reply-To:Content-ID:Content-Description; bh=5ZgTo25LsQZ9TJYftKq4wyfWOvd0PUTsUqCCu69Zbns=; b=gujzTzvOxSfmax36yY/iVxvLO9 66+U/uXHN8lIn0N4EVxWrlFYd3c0IKcdwKm6EN2jvA/PE2Of1kXcmj58YXCYBGHHPh0cQBZex8j+3 iuKwU7Ni2IGqKdRUU0e5kCxhv4SwR/cJ02qqdiwVmqBU89bp+c77FbMZ2MafcLA+3jnCT8E+cxBYx OGGLSrjZ3tO3uKvnIFd8CwxarZBKc77OjuBFm4qrQxA3KMhwxFS5N/3DADyROvaiXPApV069SwvN+ 3+XuI0Vlh7A9Uy5j6H3EmTZ1dL1FNMajfy1Ze1xJpWhgdcuCbM5GqZJ5vPxU7umhhy8Wu8IcFSs1p 2x5BgkeA==; Received: from [2601:1c0:6280:3f0::4557] by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lRHOM-003IqT-TC; Tue, 30 Mar 2021 16:38:59 +0000 Subject: Re: [PATCH v2] Documentation: crypto: add info about "fips=" boot option To: Eric Biggers 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 References: <20210330050651.13344-1-rdunlap@infradead.org> From: Randy Dunlap Message-ID: Date: Tue, 30 Mar 2021 09:38:55 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 3/29/21 10:29 PM, Eric Biggers wrote: > 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. Yes, clearly, even to me. But I could not find anything in the kernel source tree that would help me explain that. So to repeat: >> Updates/corrections welcome. thanks. -- ~Randy