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 8829F45CFC; Thu, 14 Nov 2024 02:11:42 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 7E5D1402A1; Thu, 14 Nov 2024 02:11:42 +0100 (CET) Received: from mail-pg1-f178.google.com (mail-pg1-f178.google.com [209.85.215.178]) by mails.dpdk.org (Postfix) with ESMTP id EBC9E4025F for ; Thu, 14 Nov 2024 02:11:40 +0100 (CET) Received: by mail-pg1-f178.google.com with SMTP id 41be03b00d2f7-7f12ba78072so14332a12.2 for ; Wed, 13 Nov 2024 17:11:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731546700; x=1732151500; darn=dpdk.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Pv0wMcaCOH8dKD1AA6zFq8F62ubfyyqt7gUxXg1mSX0=; b=JibT1GF7U9Z7phWTIE0kzx5iiDdNU2uuzmTMgWRbhMFzJZTUFUA4wgMAVH3qPxU0QO 8Au2EPWziHNAqXDXEKGxvX/xYLAyQPK5hF4gnXQUOzqxV+QsHoMGRmEInXng4LoZJ7oh MYndwRAXYy7XGxlA0ZVBbe0dvMr4VNJ4KsiosWgp/YpHNiMp/N9J8H11a/kdqpbPJvDq tt9wTPb+J8aEATTbrty1YMVSE33NDrHlqJKwRT6e3xWYsDLjxzprHIfkQUCzdZE5jLqB 2+LTZ6HWZep95Lc5vQQ5d95tx0WfecOjsLFaLuwZFoBOmDeh7E576K7oYn7gw98ulINX W9mA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731546700; x=1732151500; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Pv0wMcaCOH8dKD1AA6zFq8F62ubfyyqt7gUxXg1mSX0=; b=C3Z97YwuCmr+plSl0xueoXBQamyNlkNlYOimG0X3kJK3uaVeF314hDNyHbznExguJf L9BXuqEyYrwzvhDEJ2wLh7lPbllyGax75kZ3RZ3OPDVe5lHwYalq8HlpUjTVLsfxU9x9 uI9xbAP98dlfKU2NgqL3csq6lPau1QAeXzsZrDXJYhktS5wfoLkmx6S4ZlmE97O5/I8k dajvP6q7csBkvbYd9nrj8CVIN0yo17GgL2cn1kx1cBS+QwjfYu/Mwm6iFtT6xyQWtHP2 h90+zz1/0Ax0Jl/1b37ENbwIaVmT5ZPzF9Y5sQ8foWpDjUBCi5qmkWtkopuxRz4H7Zru F8qg== X-Gm-Message-State: AOJu0YxYrstt0TSkDuR9rEXgV4Zmd1A/P1yDcPn7CDJ5d2NsQQ4uWmDF 5LJjfkcmVR2g4yf9PLydUJECEMVPdop4iAoGkVMMkNOhSQZUxFcddfGQ6jy+rGfz/nQxVurjLab s X-Google-Smtp-Source: AGHT+IE33w4rUSeN/cf5km+qzWezz3Blc1fR1EDYnHKxCEz+7yqQaPNmFdYe1t++3Zu0rJs5DP5MOw== X-Received: by 2002:a05:6a20:a124:b0:1db:ef5d:48ef with SMTP id adf61e73a8af0-1dc22937e05mr28578244637.14.1731546700020; Wed, 13 Nov 2024 17:11:40 -0800 (PST) Received: from hermes.local (204-195-96-226.wavecable.com. [204.195.96.226]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7246a9a8102sm60950b3a.125.2024.11.13.17.11.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 17:11:39 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH 0/3] introduce rte_memset_sensative Date: Wed, 13 Nov 2024 17:10:15 -0800 Message-ID: <20241114011129.451243-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 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 The PVS bug list pointed out a number of places where code is trying to do memset() on sensative data which can be optimized away. Introduce som helpers and example usage. Stephen Hemminger (3): eal: introduce rte_memset_sensative crypto/qat: use rte_memset_sensative eal: add rte_free_sensative drivers/crypto/qat/qat_sym_session.c | 17 ++++++++-------- lib/eal/common/rte_malloc.c | 30 ++++++++++++++++++++++------ lib/eal/include/rte_malloc.h | 18 +++++++++++++++++ lib/eal/include/rte_string_fns.h | 27 +++++++++++++++++++++++++ lib/eal/version.map | 3 +++ 5 files changed, 81 insertions(+), 14 deletions(-) -- 2.45.2