Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp22964pxa; Mon, 3 Aug 2020 21:23:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxQRv27FHQ8r4k2VmDrXDkmxzOeDtzENluTijX5r8ge/MDfN2WmPtNrYmwjiuNLEP8U7wfv X-Received: by 2002:a17:906:c1c3:: with SMTP id bw3mr20712701ejb.8.1596515006690; Mon, 03 Aug 2020 21:23:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596515006; cv=none; d=google.com; s=arc-20160816; b=dwGdgfgDbWF1ByuyTrl1Xm9UbCHA2YTd4c/ekYseFuOuUFBweVq3GU00Y5QRBzCj3f Br3OmRIfBu50z/095Pv3uFu7SENeeVkckGdHp0KGA9OgBstKFlGOC9kdGN+apn4WhggW mjhSyIUiqZ1ydT5FNbHVJCjCEoXT+rkBn42BvWDd9sAOS+qBu/q+Uor7iyIpuFwv6iTJ bRhbfpDW9poiv0FNOKkMpHUfqm1i5d7wbZKzvjf0keZvag7mFyGbvUmUHFmHMz9aJcD4 IPSc4/enq+OyVOxZt6EKzbK4v9ULMefKpARVilMb13hcpX7a6oMNughdUhJ/7+/FdXz6 6LzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=5MBVnwoEIXdI9IxxfmSuuHBRUrreo788K3+GlH48OoQ=; b=sSTvWnLeNBuimsVdJhW6sRyZK0oWlp5FQ8vo3/HWG/4/35YLezt7Zj/16GVfMLmqVo qzrqyPK1LmYKqrjGzFTamELHy8SoyPjsBzR2fIRuBylDBgoACpIIeu944MqI6mrS+iur 2kIbmdkW+1uC4mFi1HL9EL0QBChzTMDZdvT+fXE2LYAgwMv5KqIX9AvtuB/G3YBu1Gb7 J5wYyZrQhEZAUPKo6C6wKcoqe8w9wbHpcI/2bBsrh/TpfEln459oDFURHAeizG1xp5lY DK/ZUgx6pVH7PcxpMHotH7dJUySUDTn9ZQ/nv3JOrrs1kWoecRtR83yZe6MgbhJlAvxG LCvA== 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 g6si11880978ejr.426.2020.08.03.21.23.02; Mon, 03 Aug 2020 21:23:26 -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 S1728993AbgHDEW3 (ORCPT + 99 others); Tue, 4 Aug 2020 00:22:29 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:54692 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728886AbgHDEW3 (ORCPT ); Tue, 4 Aug 2020 00:22:29 -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 1k2oSt-0007l7-Hc; Tue, 04 Aug 2020 14:22:16 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Tue, 04 Aug 2020 14:22:15 +1000 Date: Tue, 4 Aug 2020 14:22:15 +1000 From: Herbert Xu To: Liwei Song Cc: Tom Lendacky , Gary Hook , David , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: ccp - zero the cmd data after use it Message-ID: <20200804042215.GA10939@gondor.apana.org.au> References: <20200803075858.3561-1-liwei.song@windriver.com> <20200803125242.GA7689@gondor.apana.org.au> <87ae939b-4983-4e96-cc3d-1aa1d1b3d3ae@windriver.com> <20200804040420.GA10850@gondor.apana.org.au> <1b6be879-8449-b519-046f-0312e57aa9a4@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1b6be879-8449-b519-046f-0312e57aa9a4@windriver.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Tue, Aug 04, 2020 at 12:20:21PM +0800, Liwei Song wrote: > > Yes, the other process should do this zero work, but the case I met is > this address will appear in the slab_alloc_node() as freelist pointer of slub, > and before slub do zero wrok, even kzalloc() doesn't work with this address. That would be memory corruption which has nothing to do with your patch. If it is occurring then you should fix the place that is corrupting the memory and not work around it like this. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt