Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp995386pxf; Thu, 8 Apr 2021 19:12:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyieztnsKRzZpujq8c+ZGLdJoKt9cpVqV8UGkf2+jI83aBJXvzG2Jp4uCJQ4i79nXxBcFaO X-Received: by 2002:a63:6c83:: with SMTP id h125mr2612772pgc.50.1617934323672; Thu, 08 Apr 2021 19:12:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617934323; cv=none; d=google.com; s=arc-20160816; b=fPnWV0I6AR6Vnq0ZRoREOeLBSPBpbiuHTiuISDtu6bIxpe1U2mFQArzShyjGaOwlto +DCeVXpxLMLxPAUbNqyylf7OdtCQBCRThepkUZhxVxvm/MeIKMdjeZHLYRdjmlLTGZIQ LWVUQNuqQwbjIFcYdxwQ8+ztDlgVJ6zC2FibCcJV4ndx1hI6ggUIUh4m3mCxiUGqpvz+ ayYnnKxk6dHTElXCchU0BkD33VAHAqvmq0pPCI2mbG4ihyX8PDzwYzMA048CSjxZ2he0 lZhX65bbAdAmOrigHJRwcJN17dX5gTtOAiezGPGV24XicHUyOujyue6LLizwSi1DkjkX x84w== 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=M7qe7FCfvCPMcZYFuYoHbQMK4LgMH3etO2XanLRa5d8=; b=hO6FuV4SBiYMZpv1NHtoRO8Fqdl/du8zLRrgLcWfEErvjrbBnST766H4rMw0XPNkRb ZZ/mThjesXM5bgOl5U9YT8aOCjzDGr060N2gZW2T4EiKr5Ael6k59mIaKXmsbzGQJPYj 11ODotUGGJJ3fkJzBk4AHZNf1K1QaIr/ajXUguTL2FPOzVCaftcyXftqUo0VDtwuoRnT /cDs0ITDVx5JPmWtIsn+A8vR3t5QBP7awRu1zbccnNv0dOlx0n0EPS9VAf24CSzqqY+p kP4nUpwnknyY/EyogvpOHd6eQ6Ip2lVEbDvp7ZOjmpe3+VsdhCnGgpOUiKpdZLt21ABA 9WcA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=SMX25Mvq; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g16si1369686pfh.282.2021.04.08.19.11.39; Thu, 08 Apr 2021 19:12:03 -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=@gmail.com header.s=20161025 header.b=SMX25Mvq; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232587AbhDICLt (ORCPT + 99 others); Thu, 8 Apr 2021 22:11:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232426AbhDICLq (ORCPT ); Thu, 8 Apr 2021 22:11:46 -0400 Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1830C061760; Thu, 8 Apr 2021 19:11:33 -0700 (PDT) Received: by mail-pg1-x52b.google.com with SMTP id g35so2716633pgg.9; Thu, 08 Apr 2021 19:11:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=M7qe7FCfvCPMcZYFuYoHbQMK4LgMH3etO2XanLRa5d8=; b=SMX25MvqeE7Yr+RC/3xbxG29X1+VoXiVeju+8aEqyi2AMuaIQz3PA6malICPUm2W6K Xx9Zviitp8INcWLAaHbNGCQKSur+ychxer6ldAg7zpv+GG8qK03DM8IjOJrR7UcisoM/ Rc8fyi++Y8gc2NjcQ5VlhLYosDCSAA2Rioprjm1qbMr1awBydTn2QOQkuOJX5Cn6MUya TzUqOJz6SrFC1av8846816iEPRsG9jVC4tHiTwZWO00ajRvOPD7YdsQ3QgrOW1FwKqKo NjBRyXr82DUTbpmHHZQik0Xewa4dkWZ/7SINLgdjkw9dym5ZDDmkPUC7XhqjbEM96oeW uLxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=M7qe7FCfvCPMcZYFuYoHbQMK4LgMH3etO2XanLRa5d8=; b=KgYsXHo/UHxNgrPDNJZ+s9U3eLkHOviAHZvrC3pU0bYDddyNBcLnjoWpjt0zK0W6Fj O24Kk3cenT9PRIXPSnHLpDZkhlGdKsu5rVGIXfCnMti0wRg/+wNLQVI8gVnjQLrkG9pz fKEJ7CTt1KAZj90RUDt1oAOFle/6jh9aLxi5olX1LnEkjm9lmruvT6ZaxFWnxXe2ubmg LZT664yo0QBCBP2snrRgdUmz0JhFg3lRWLEtyhSgmK1eAB2wlBO25gAiUpG0pQMDfra3 Kw/iuOjbXAx/Y0X1UuJPqt96XN9Jzs+JkvtoqgDyPuIomfsTOsHghmA8FGupKifz1AK/ a1+Q== X-Gm-Message-State: AOAM531iNQgPfkRSwdPVreoVCIGK4RVOrO6E/0QngKBufJ/Z9adnRYt0 m60u9UDKFFiLE6RCk7zHhSY= X-Received: by 2002:a63:5a50:: with SMTP id k16mr10599264pgm.185.1617934293086; Thu, 08 Apr 2021 19:11:33 -0700 (PDT) Received: from Leo-laptop-t470s ([209.132.188.80]) by smtp.gmail.com with ESMTPSA id p2sm563309pgm.24.2021.04.08.19.11.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Apr 2021 19:11:32 -0700 (PDT) Date: Fri, 9 Apr 2021 10:11:21 +0800 From: Hangbin Liu To: Eric Biggers Cc: netdev@vger.kernel.org, "Jason A . Donenfeld" , Toke =?iso-8859-1?Q?H=F8iland-J=F8rgensen?= , Jakub Kicinski , Herbert Xu , Ondrej Mosnacek , linux-crypto@vger.kernel.org Subject: Re: [PATCH net-next] [RESEND] wireguard: disable in FIPS mode Message-ID: <20210409021121.GK2900@Leo-laptop-t470s> References: <20210407113920.3735505-1-liuhangbin@gmail.com> <20210408010640.GH2900@Leo-laptop-t470s> <20210408115808.GJ2900@Leo-laptop-t470s> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Apr 08, 2021 at 08:11:34AM -0700, Eric Biggers wrote: > On Thu, Apr 08, 2021 at 07:58:08PM +0800, Hangbin Liu wrote: > > On Thu, Apr 08, 2021 at 09:06:52AM +0800, Hangbin Liu wrote: > > > > Also, couldn't you just consider WireGuard to be outside your FIPS module > > > > boundary, which would remove it from the scope of the certification? > > > > > > > > And how do you handle all the other places in the kernel that use ChaCha20 and > > > > SipHash? For example, drivers/char/random.c? > > > > > > Good question, I will check it and reply to you later. > > > > I just read the code. The drivers/char/random.c do has some fips specific > > parts(seems not related to crypto). After commit e192be9d9a30 ("random: replace > > non-blocking pool with a Chacha20-based CRNG") we moved part of chacha code to > > lib/chacha20.c and make that code out of control. > > > So you are saying that you removed drivers/char/random.c and lib/chacha20.c from > your FIPS module boundary? Why not do the same for WireGuard? No, I mean this looks like a bug (using not allowed crypto in FIPS mode) and we should fix it. Thanks Hangbin