From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id EA86745CFC; Thu, 14 Nov 2024 02:54:50 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 11ADC427D4; Thu, 14 Nov 2024 02:54:25 +0100 (CET) Received: from mail-pj1-f47.google.com (mail-pj1-f47.google.com [209.85.216.47]) by mails.dpdk.org (Postfix) with ESMTP id 0988D427B0 for ; Thu, 14 Nov 2024 02:54:21 +0100 (CET) Received: by mail-pj1-f47.google.com with SMTP id 98e67ed59e1d1-2e2a97c2681so106871a91.2 for ; Wed, 13 Nov 2024 17:54:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731549260; x=1732154060; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=lDFmLce37/eNhfMVqNAPckxZcydmG8M03bveBjksQBE=; b=RalLqEGnUQrDl7Xty7BjZRxGLD/Dz7SouNFYTQFtzHluSBYavGoXRoHb07PaQZv+le a6HpyosLjO9O4NsDpdiU4rJ4vx/9JTC21utjGiWY0M4wUcC4Jg7NJ1/sgyiiLyd5H7oL lXMClpC8Vx4+U8KiBUdZLZKFXVbdRIBTlLe1wjB/HVIWFUgfgM1g8YUvXSlWy+ng0gDB 246OMJlpVuEBdlsaYiujc3Dzv6BxrxaOHoVJ81b4ls5EHuJny9C9TUHZt8XBzn/Z3gUN yDudv8/FTgEoAk0ynQfz/aMbTO9JG6cu1d3r61VEkyLRlASoiuKlKr/Q1Al+1DSgr4Ak lpvQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731549260; x=1732154060; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=lDFmLce37/eNhfMVqNAPckxZcydmG8M03bveBjksQBE=; b=D0w4PQkHzHZyVk/SAWwHDA86gHyl2FRhOO/9eoarneqT8ayIAVO3gmR3hn0WHY4aLi tsSWWZ1uYp3febNNEdC5PlvSVV2FyKa/voVjrnNgxuGZGFBIHn/9D+UvVJPCUYE8tD+V c3fEOQtzXOzWb2QFAkPg0/Bq6JTvSlgA6gGEZQCvV1ueUHLxzezs/2F2brCqTh5n7Mwi /GwE80nzDcb6sg6K8O+T7DybzpBcA4WfK5XYYmCfowI8DzdL8Tyd7LYxwRaqXLqyw4ng llxla/5jf8N3kil0XT8pvukIPlAiHBYnOf/jHVgVwbMns5QuaVM8+25vcuMjreDeAJeO CHdg== X-Gm-Message-State: AOJu0Yw/hUFcnnIhLfJ+uY9l8wzNw93Add0Ymw+rcVIuTUlfCfNvjv0W dxhq8+PyS/v6vTrS7GJ9uhEY/qbYwqJG0O1GSBIuhDpUAQ4zEFBbrkZ3O9gdsX9U1Dml4ewEXxq f X-Google-Smtp-Source: AGHT+IHj4ZwmYVWSAqRlutb4S8cqqcRaoCwIMO4yOQ4DyyqGEIzjRCdNv9fWZAHFa10Mlj95ZG/26w== X-Received: by 2002:a17:90b:3149:b0:2d3:da6d:8330 with SMTP id 98e67ed59e1d1-2e9e4aa8c6emr10787268a91.4.1731549260229; Wed, 13 Nov 2024 17:54:20 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2ea02496eedsm210050a91.18.2024.11.13.17.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 17:54:19 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger , Kai Ji Subject: [PATCH v2 5/8] crypto/qat: use secure memset Date: Wed, 13 Nov 2024 17:52:19 -0800 Message-ID: <20241114015405.77060-6-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114015405.77060-1-stephen@networkplumber.org> References: <20241114011129.451243-1-stephen@networkplumber.org> <20241114015405.77060-1-stephen@networkplumber.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Regular memset maybe removed by compiler if done before a free function. Use new rte_free_sensative instead. Signed-off-by: Stephen Hemminger --- drivers/crypto/qat/qat_asym.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/crypto/qat/qat_asym.c b/drivers/crypto/qat/qat_asym.c index f5b56b2f71..336e7ec0e5 100644 --- a/drivers/crypto/qat/qat_asym.c +++ b/drivers/crypto/qat/qat_asym.c @@ -102,10 +102,7 @@ static const struct rte_driver cryptodev_qat_asym_driver = { curve.p.data, curve.bytesize) #define PARAM_CLR(what) \ - do { \ - memset(what.data, 0, what.length); \ - rte_free(what.data); \ - } while (0) + rte_free_sensative(what.data) static void request_init(struct icp_qat_fw_pke_request *qat_req) -- 2.45.2