From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.9 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id D2C7DC4338F for ; Thu, 12 Aug 2021 11:38:41 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 734D160F91 for ; Thu, 12 Aug 2021 11:38:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 734D160F91 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gondor.apana.org.au Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=dfNNmDabxFMW0hAW44W7htmc2qIF+ORZopYVr/hqmEM=; b=cjH7lL1RJNTTcI yDaFBX2Vd+bEScuPQuvaWCj2k4vxphB9tgJFeiTgY1p0lMgBx4sEaBqZ3R+P9SVLOl3ip3H7Wg7Qe VU0OMLW02O0GVYvyRvbSaD2yRqnkREXQkMuUaM2Yx5DUDq5ROIeh3goFmmcFzaKv6EoW0QjX/OChC RAP3TXT82Z0pLHyFuLix69jNQQRueWB2Uy23FYzYQ1iRgRTPJeGBPST8oFJF3WXohydE3EWDTkDQ+ fuX8AnMeLl9hF/Qh2R+EUE54kF7dXJNRM5dbjTZkuo/nrebAGQIV3VklyqQf3RxDitDaj/tNGHoRg MMI607CguFkap96BvprA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE90b-009qQJ-J4; Thu, 12 Aug 2021 11:36:25 +0000 Received: from helcar.hmeau.com ([216.24.177.18] helo=deadmen.hmeau.com) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mE90T-009qMd-RT for linux-arm-kernel@lists.infradead.org; Thu, 12 Aug 2021 11:36:21 +0000 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.92 #5 (Debian)) id 1mE90J-0003L0-S9; Thu, 12 Aug 2021 19:36:07 +0800 Received: from herbert by gondobar with local (Exim 4.92) (envelope-from ) id 1mE90H-00009T-7U; Thu, 12 Aug 2021 19:36:05 +0800 Date: Thu, 12 Aug 2021 19:36:05 +0800 From: Herbert Xu To: Jason Wang Cc: clabbe.montjoie@gmail.com, davem@davemloft.net, mripard@kernel.org, wens@csie.org, jernej.skrabec@gmail.com, mchehab+huawei@kernel.org, corbet@lwn.net, baijiaju1990@gmail.com, linux-crypto@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] crypto: sun8i-ce - use kfree_sensitive to clear and free sensitive data Message-ID: <20210812113605.GA561@gondor.apana.org.au> References: <20210803125525.72603-1-wangborong@cdjrlc.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210803125525.72603-1-wangborong@cdjrlc.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210812_043617_900767_D651A659 X-CRM114-Status: GOOD ( 12.54 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Tue, Aug 03, 2021 at 12:55:25PM +0000, Jason Wang wrote: > The kfree_sensitive is a kernel API to clear sensitive information > that should not be leaked to other future users of the same memory > objects and free the memory. Its function is the same as the > combination of memzero_explicit and kfree. Thus, we can replace the > combination APIs with the single kfree_sensitive API. > > Signed-off-by: Jason Wang > --- > drivers/crypto/allwinner/sun8i-ce/sun8i-ce-prng.c | 9 +++------ > drivers/crypto/allwinner/sun8i-ce/sun8i-ce-trng.c | 3 +-- > 2 files changed, 4 insertions(+), 8 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel