Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp995497pxk; Fri, 18 Sep 2020 00:31:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykxe6wAUTJETFvvWNfmVBrsnVuJQmKZk+BdKActXvgqqAe9iYsk5sWkqq0nucXSdQMpiXG X-Received: by 2002:a17:906:6ce:: with SMTP id v14mr33578241ejb.451.1600414294128; Fri, 18 Sep 2020 00:31:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600414294; cv=none; d=google.com; s=arc-20160816; b=VuR7DuAazX5SzLJa1rnXaMcpk6vXprhSWeqAW0fD5aDNZ1zzcckV1McEQ6p9im6Pr0 Krfuo11QVWfGuLisCahs3S/rGGwaXIJV2ny5v8DsnRpQ7KAaVHRWcV3l62E39QpqDWMn 5KorFHHm0VMJeWwfDEmuhuauIIaMjK69l6VxybQ9/lBj/FL0srSGy+MKHAKkcZ2iS1R7 s5wm6FH5tfiv9yB35GSrRlHKjFWgCzemDceeJMWIMTj18hVIts8oaIDOQ8uOio2OvLca woEPU2xtjUuZsW1SumoLojfKbtC1qX2+1xpLKcgi5NdVFyrJbM8z9FWtZ1Fl3iWyOX+b 4Jag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=FiREDm4c7IJdOcuiYeieZz5/6RwYqLm1eXCJR/s648E=; b=aYMTjHaMraUAbF55CBjaFfTdRxi0VMTSjSvJhzVfe/I8GSdRw/x2DUCCjRyvo7Z1na iMnN0lJeCSNm4PlJLGs908Bg8phdnxOoEc0NZgWKd8eVSJIXdd3pos+2G/o4DiF7HRtH 6B36IbacamJJlJuZN7DF3FeeqoGtLzMJamvNlPemgooa9lLr3qiRXnAc/qPc0j1xePiy 0XOdKQ67Xj0Z5bERNbTpCFYW++bmPsDRM83DZl0HUcEuooM2H2XFeW33MljmIouVabAc Z0wKcRkhgSafWOAkksS2wliC15ICnaFyn5oZ0FLFTWxuErYJKIQ/aTfrf1cPHDkvUTYz K51g== ARC-Authentication-Results: i=1; mx.google.com; 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 x20si1534233edv.305.2020.09.18.00.31.10; Fri, 18 Sep 2020 00:31:34 -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; 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 S1726597AbgIRH27 (ORCPT + 99 others); Fri, 18 Sep 2020 03:28:59 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:57612 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726593AbgIRH26 (ORCPT ); Fri, 18 Sep 2020 03:28:58 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1kJApC-0003VY-BT; Fri, 18 Sep 2020 17:28:55 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Fri, 18 Sep 2020 17:28:54 +1000 Date: Fri, 18 Sep 2020 17:28:54 +1000 From: Herbert Xu To: Pascal van Leeuwen Cc: linux-crypto@vger.kernel.org, antoine.tenart@bootlin.com, davem@davemloft.net Subject: Re: [PATCH] crypto: inside-secure - Prevent missing of processing errors Message-ID: <20200918072854.GD23319@gondor.apana.org.au> References: <1599545445-5716-1-git-send-email-pvanleeuwen@rambus.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1599545445-5716-1-git-send-email-pvanleeuwen@rambus.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Sep 08, 2020 at 08:10:45AM +0200, Pascal van Leeuwen wrote: > On systems with coherence issues, packet processed could succeed while > it should have failed, e.g. because of an authentication fail. > This is because the driver would read stale status information that had > all error bits initialised to zero = no error. > Since this is potential a security risk, we want to prevent it from being > a possibility at all. So initialize all error bits to error state, so > that reading stale status information will always result in errors. > > Signed-off-by: Pascal van Leeuwen > --- > drivers/crypto/inside-secure/safexcel_ring.c | 9 +++++---- > 1 file changed, 5 insertions(+), 4 deletions(-) Patch applied. Thanks. -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt