Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2032083pxa; Mon, 3 Aug 2020 05:54:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzCkjL5WUhnn+PWzx1utzyV/KbMlMVFCj57JEZd947FPNE5fdo0GyZSLl2UgZ7LSItJ96r6 X-Received: by 2002:a17:906:fc26:: with SMTP id ov38mr15655537ejb.99.1596459246385; Mon, 03 Aug 2020 05:54:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596459246; cv=none; d=google.com; s=arc-20160816; b=c184GXthJeJcY9LmynlErQPhvJzW/pOklor8gdqXjjmfqb6Pslr8ctzVrZkK3h7P0V PhOIU47L/C/R99xCr0J4q5d7jHulZhq4Wr9r0o8vKFOORVetryTQT7y6h6ScpDECjoo4 v8fKWbPFKJTnGF8DmyJjOFViGiZ6BRML0C4A2R6fl4Kp1Z8Wx4Ad+vzhXWeSBWfMm5+J po8vBLjYcfUd+gBiE7Npg5W0CbO1kdjhGc17V6ynvMYF6ql0XEMnSI1p83VIxJfCzkzA Q/Xt8ZwNEba2Q1F/BSNYRyngGT3z3HAu3Mp7d1jx1at+4/kPat8u3J+mQOsmQGnRfg9z 2hMA== 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=upR/cxPV5vSJH+dZOkpdBInNFsOfNXKV3ou6cmoL+wU=; b=khMqOEK3+zb4zUXw9FAewUGE2FJrRvngsy0u26+4+mInTmTR+lNGT8+JPve4WE56G8 qU9gdvlbu69OS4HWFvroSiAWs5JlHWgrQENVR72HFI/A4mHZIRVijCDOm1bmnsGcPYZI TRmx/r5fDjN2JHqKTi696MoTvQe3y2PQR06mTwwkWq2vklCy/ivXxDRV2cd92GP/h0HJ 0qlZGp/EtvuQ8xx5fney1mKLkeGKZktM+c1lsW2SGJv+BfhSTjshO2fHbEDT+58ZwgVi FkSw+6dGbidyJOVXgYQuW5J6wbLPuTK/upobexDzY0Z091FTqaJYCmLZzueXQC14xnhg PnWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-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 c14si11419562edr.41.2020.08.03.05.53.44; Mon, 03 Aug 2020 05:54:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728185AbgHCMxi (ORCPT + 99 others); Mon, 3 Aug 2020 08:53:38 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:52316 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727933AbgHCMxN (ORCPT ); Mon, 3 Aug 2020 08:53:13 -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 1k2ZxL-0006Zw-4H; Mon, 03 Aug 2020 22:52:44 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Mon, 03 Aug 2020 22:52:43 +1000 Date: Mon, 3 Aug 2020 22:52:43 +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: <20200803125242.GA7689@gondor.apana.org.au> References: <20200803075858.3561-1-liwei.song@windriver.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200803075858.3561-1-liwei.song@windriver.com> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 03, 2020 at 03:58:58PM +0800, Liwei Song wrote: > exist the following assignment in ccp(ignore the force > convert of the struct) by list_del in ccp_dequeue_cmd(): > req->__ctx->cmd->entry->next = LIST_POISON1; > > after use the req, kzfree(req) can not zero the entry > entry->next = LIST_POISON1 of the ccp_cmd(cmd) struct > when this address available as slub freelist pointer, this will cause > the following "general protection fault" error if some process meet > this LIST_POISON1 value address when request memory: Your description makes no sense. Please rewrite it and explain the problem properly. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt