Received: by 2002:a05:6a10:6006:0:0:0:0 with SMTP id w6csp222502pxa; Wed, 26 Aug 2020 23:44:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8uhV5dOenAycCDT3Pp3WNA2hx9ebr1/B6Jx34Gg/7u1S9wz97UAmTS0uI5qO4nw72x6Kw X-Received: by 2002:a17:906:390d:: with SMTP id f13mr1291461eje.86.1598510696396; Wed, 26 Aug 2020 23:44:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598510696; cv=none; d=google.com; s=arc-20160816; b=P9oOc9Yh8hGh9i5A0ZTcQi+GOV3U1wuW60M66GkZ8BZQqu40IMVUay260rb+Kbg8yX 7HbDsV9I5jqE3OGrmUGGvYxzpVoho3oPmZyWUhmS2aTsO9EtZN5kTtSVey0jPOURtLYl JWqWvjafRg3iB9EOeRwRW9Bfa5K3W7MXEmkkLARHIsYH0JvLdsMyFwbJLPt2/ZvDZET5 EJDOQEqmyairNE3HwwVg7pleW7Yuj8L5UVqK/g4FuqOH8eMTBUX8djdTEi/66T1NH8oJ D3kmyUlStXScssLZZRYoJttshPFV/Szb7M0nKk5wWE4uz2FnLE3EKbGFrY3rSBXMnyNR C+0w== 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 :message-id:date:subject:cc:to:from; bh=Hw2dSqOLu8TQUANLy3gyHtGtPAE8XLEwqainP8LxieE=; b=P5O5eQHx9ZRFgWvEAgWfKp4AgBMTErVAOG24savDS6wYn1ATiA7vLrvJFOPFbFiGtl Vh93E2iLu5yRt7Wi/PYRj767TA4H3UwyHuGn8rEAtdIw5kG0mfvLxybkyNUsJXD22Ugk 5A9sSjZnM3vTAgfkw7j4SfWd0z1p0xIRDeShrky6f+6K5HWX9FTSOt5CbQ6OKSh3OncT nHiTD3WSMoTM+KHqmuH86/qydqvXQp636V4h8V7CSwa7SnUiSD6Z9cix52Hmd7MPax+f INzaxqOgV7T8rffzUnsDW/2P7wRc61Jl6BvbCJukXnPPYQx5pLE/m384JdL1hh6fbYKF /u6Q== 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 o9si790737ejr.637.2020.08.26.23.44.32; Wed, 26 Aug 2020 23:44:56 -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 S1726826AbgH0Goa (ORCPT + 99 others); Thu, 27 Aug 2020 02:44:30 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:35778 "EHLO mail-lf1-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726266AbgH0Go3 (ORCPT ); Thu, 27 Aug 2020 02:44:29 -0400 Received: by mail-lf1-f52.google.com with SMTP id y26so2338023lfe.2; Wed, 26 Aug 2020 23:44: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:mime-version :content-transfer-encoding; bh=Hw2dSqOLu8TQUANLy3gyHtGtPAE8XLEwqainP8LxieE=; b=sXRagVWLRNZFMx1gNOAD2zg4SEMSKPTKT7lCWxc+oaWIuC64F84MAel9lb2E19vLzv ZvnJ9mCqMfWbNhBoh8CaGMt+6w6Q88dtqr7rHYaxXEO3CdJ4Eq+m8cjIaCKGPo33c62l 5sP6GkzIVmd6MLOuugx9j9fsEKxR5Fnhu+R1r4LaOR9MHw+leluZpSRBjI7L8QCPaQmE imimngvK3jpNn0h5Kpb4idL8ly2j0tmUqOPnY0jYqfdRnOqkUeb3QC/+rBkBhLpjH6QX GA3RD4f3tWxmSuPBdk4sSJqwPGfqzesrXlBMdY3w0UIEVoiyt/09DF5OyFMvjL8eKcHu To1Q== X-Gm-Message-State: AOAM532OOZq67cFT8/lGOANKF1rqT8mM/3RcV1PNR0rr846Q6Rva17pY b9PilydhUZglOHSHmB7aZSUHo+iH590= X-Received: by 2002:a19:58c:: with SMTP id 134mr9063271lff.215.1598510667284; Wed, 26 Aug 2020 23:44:27 -0700 (PDT) Received: from localhost.localdomain ([213.87.147.111]) by smtp.googlemail.com with ESMTPSA id j17sm282159lfr.32.2020.08.26.23.44.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Aug 2020 23:44:26 -0700 (PDT) From: Denis Efremov To: linux-crypto@vger.kernel.org Cc: Denis Efremov , Corentin Labbe , Herbert Xu , linux-kernel@vger.kernel.org Subject: [PATCH v2 0/4] crypto: use kfree_sensitive() Date: Thu, 27 Aug 2020 09:43:58 +0300 Message-Id: <20200827064402.7130-1-efremov@linux.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org kfree_sensitive() is introduced in commit 453431a54934 ("mm, treewide: rename kzfree() to kfree_sensitive()") and uses memzero_explicit() internally. Thus, we can switch to this API instead of open-coding memzero_explicit() && kfree(). Changes in v2: - if (op->len) check removed Denis Efremov (4): crypto: inside-secure - use kfree_sensitive() crypto: amlogic - use kfree_sensitive() crypto: sun8i-ce - use kfree_sensitive() crypto: sun8i-ss - use kfree_sensitive() .../crypto/allwinner/sun8i-ce/sun8i-ce-cipher.c | 15 +++------------ .../crypto/allwinner/sun8i-ss/sun8i-ss-cipher.c | 15 +++------------ drivers/crypto/amlogic/amlogic-gxl-cipher.c | 10 ++-------- drivers/crypto/inside-secure/safexcel_hash.c | 3 +-- 4 files changed, 9 insertions(+), 34 deletions(-) -- 2.26.2