Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp496770pxa; Thu, 27 Aug 2020 07:58:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2BR62xE/LSgWDlQOMNxZRjB4N9LsR+WW2YTI/Nx7DuqYSliVZ6i0kgWN/HXYst8bAZu+7 X-Received: by 2002:a17:907:206a:: with SMTP id qp10mr22080937ejb.497.1598540328790; Thu, 27 Aug 2020 07:58:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598540328; cv=none; d=google.com; s=arc-20160816; b=Vt4ktC4d2SuCvjlbIQ4SyJCjRPIUJk2QOaXpnmDIabi//kvfgdQVo6xJDArDzX8WAU fWNXu1zoPX2oqp+fEZIJnbxEchuHP4LW/h3abdemzTaoBRMhlnbUYqXYT2tCDHLMdLSa d8UOTZxSTQKsMJKuHMluZNGWnhh1WG0chZYCSIAgifXvY9ehknEUhfEM0/l9UFAvoLaZ QKeqz5qJhhHnK4cFx+zgwjsRLY4yt5tRV9DLt0AI0++LqGtClguXux83tPwvzFJqV7MW D2f9pzW2UaImwtZEkXhneN+uO1PbbsqVKwEvztCXnuN/5xZTVat0x7VU40OWN7YVQ2lp BTLg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Vdm5bOPgHGnazrV/Kf0E8YPoyr6BTDTZTERvVKKiRHM=; b=Cov/OHqnnlKzJQ3Vp8dxJskGQVxa9KnTB6J/LIsz/UWHHKoJJf71u9dAIOCqz1uLdG Sxk0XrebdJ9kYxBjMToI3L6m6B/R1tlJ4e97TFGw+ga/cxdV8ZwAoJOEtP/VL400UbzT zKur56r8DJB9PEWykW5j3YJz40Xpy1rZBHdmYCsSGQu0QwyA5NLYIUksvk3xyizBeUn+ xxqarwQ9ca6ccZLReJB7EtyZukADku2csq3NErF7No6/5jhmrzk68FxPNhEYYZTx7lqB XrhY9ArZ5/a5T8DO7bE6cgvwXoPkogAsJMeExg0IMaGaweEmgBeutxTaqxmhDderordo Rkiw== 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 j20si1594829edr.321.2020.08.27.07.58.25; Thu, 27 Aug 2020 07:58:48 -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 S1728410AbgH0O5v (ORCPT + 99 others); Thu, 27 Aug 2020 10:57:51 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:44006 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728979AbgH0MYa (ORCPT ); Thu, 27 Aug 2020 08:24:30 -0400 Received: by mail-ed1-f68.google.com with SMTP id f24so4709454edw.10; Thu, 27 Aug 2020 05:24:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=Vdm5bOPgHGnazrV/Kf0E8YPoyr6BTDTZTERvVKKiRHM=; b=Nv2eLtFi7qUWI+BkaMRgMDzKansk6py7a6fhEsVw3637DYVhatbDiGdLhBaQug0Mb3 db58+FBogSBiPKcIu6n/unzweD/musmlbHPvejuAr4Wc9oMcPqeNtII5O+zI0Orn/31B KIl8kILId48IKVsKE2VKR4vON6r1Yz3WDYM27MwG7wtMZo9BZlHkgozkkR575Y1gROMg tr/xmbbv9U7YNsIBQ2nZb8YSRcTq1sOIX+72Mc41D5hvD+uOkDAO8hJIKlKSXeTgb5QF /VR9+7kWhYBEp5jy+GNSW2URQVuZGqmJgKOLuZP8hfEm813DmPsoe2/Snoc0q1NNcBXl Knhw== X-Gm-Message-State: AOAM533df0Z7kEdlBNzMPEORMCqTnU/QHVaAYjg0ax08q1plhiMoDxga inFq45B4/aweSFI6CPC5Z8FFdmxh/+M= X-Received: by 2002:a2e:1417:: with SMTP id u23mr10159832ljd.44.1598530582939; Thu, 27 Aug 2020 05:16:22 -0700 (PDT) Received: from localhost.localdomain ([213.87.147.111]) by smtp.googlemail.com with ESMTPSA id 85sm434871ljj.61.2020.08.27.05.16.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Aug 2020 05:16:22 -0700 (PDT) From: Denis Efremov To: Corentin Labbe Cc: Denis Efremov , Herbert Xu , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] crypto: sun8i-ss - remove redundant memzero_explicit() Date: Thu, 27 Aug 2020 15:16:11 +0300 Message-Id: <20200827121611.18308-1-efremov@linux.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200827080310.GA29222@Red> References: <20200827080310.GA29222@Red> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove redundant memzero_explicit() in sun8i_ss_cipher() before calling kfree_sensitive(). kfree_sensitive() will zero the memory with memzero_explicit(). Fixes: 453431a54934 ("mm, treewide: rename kzfree() to kfree_sensitive()") Signed-off-by: Denis Efremov --- Changes in v2: - fixes tag added drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c index deb8b39a86db..ed2a69f82e1c 100644 --- a/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c +++ b/drivers/crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c @@ -248,7 +248,6 @@ static int sun8i_ss_cipher(struct skcipher_request *areq) offset = areq->cryptlen - ivsize; if (rctx->op_dir & SS_DECRYPTION) { memcpy(areq->iv, backup_iv, ivsize); - memzero_explicit(backup_iv, ivsize); kfree_sensitive(backup_iv); } else { scatterwalk_map_and_copy(areq->iv, areq->dst, offset, -- 2.26.2