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 C05B945CFC; Thu, 14 Nov 2024 02:54:17 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4E28940A79; Thu, 14 Nov 2024 02:54:17 +0100 (CET) Received: from mail-pf1-f172.google.com (mail-pf1-f172.google.com [209.85.210.172]) by mails.dpdk.org (Postfix) with ESMTP id 0E499402A1 for ; Thu, 14 Nov 2024 02:54:15 +0100 (CET) Received: by mail-pf1-f172.google.com with SMTP id d2e1a72fcca58-71e61b47c6cso51427b3a.2 for ; Wed, 13 Nov 2024 17:54:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1731549255; x=1732154055; 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=t/0pE/31IUXv74a1+/2eA91ZVqy3g8H7QRTNopSa7kI=; b=eCz5AxBN6XipoJSWVPvb65jGDY/QwaSP+zl3rDbJJv1irqx7Iuh1l4mcvBIWqz2gHx HOkXU/ucPck5BAhAtnRo8bwx17imeLCQiU30fIh8A9BVYtd1U9D5jdOEHB5PsGuBhIIj A9ip6wYbj+XVJWtVYGykmbTtSatEV9EozKiLhDxgD8pqAzhBHVNqsDWOrp7//EcvYo/z EfIevJ1u3g8vGmsZH5b3OHs3DcW73NFNnPLYQYehSoxh3jCPbVBHHVFaSyE0vVZjl/hJ 5CZbCIQDGmWZ7aEbvg6A5Lgk39B05WGzxixBAEEXMWDRi2kH9m/mTlkFNI5QM+amt0S3 TyNQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731549255; x=1732154055; 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=t/0pE/31IUXv74a1+/2eA91ZVqy3g8H7QRTNopSa7kI=; b=dNxN11gIFzo8Tn/tM1aQYqp8X3kPE26sA5cOHuLpBebQtj3FlB9A4LQzMUz9gDbZHm c0MTqF49qzRAHet2XMsDeobXTVDmMe/h6uevCfwZA0ujKrGaYZqbqBUWDsWufe4SxtIN uNP2jPIK+tSTB4fR8eDkaUxnltHvC1WqhHFygg4hHgkOaDkUo9gxt2MHMlSn4NmaqGWv c+KD1ViGJnUgxm4p9LrSWm5YTejVoefE4EYTPJuOh43HPEmSoO3gWTILNi67nm3oLsVG bYhFFc3gVO/qT3hkxFvaCiPvUE9Lx1uQDLz2dQRBEZL8APZ8drPRqukZ6JJHURpnwDgR OP/w== X-Gm-Message-State: AOJu0Ywp+gmR+bvAvW+su1cVaLNrMk6Xd2DqJiHStQFB6DJSlIu52uTg utvoDNdrQW61/xa8qUNcM0M8roLasapOKBpBfnb/7OnttIvZlM2GeozLt3XbAMj7s5h8l7uMVfZ X X-Google-Smtp-Source: AGHT+IHhNy9StGiARHJRCmJhpmrpI7XdN2VhaJblgtht8L3jEAoEXQ/fDyOspRLiv7feAfNbYPJKmw== X-Received: by 2002:a05:6a20:3948:b0:1d8:a29b:8f6f with SMTP id adf61e73a8af0-1dc229440aemr34213718637.16.1731549254962; Wed, 13 Nov 2024 17:54:14 -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.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Nov 2024 17:54:14 -0800 (PST) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Subject: [PATCH v2 0/8] memset security handling Date: Wed, 13 Nov 2024 17:52:14 -0800 Message-ID: <20241114015405.77060-1-stephen@networkplumber.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241114011129.451243-1-stephen@networkplumber.org> References: <20241114011129.451243-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 This series handles memset related bugs indentified by PVS Studio. The root cause is that Gcc and other compilers are free to optimize away memset called before free. Most of the places memset was being used like this were bogus; probably some developer debug habit, and can be safely removed. Stephen Hemminger (8): eal: introduce new secure memory fill eal: add new secure free function crypto/qat: force zero of keys crypto/qat: fix size calculation for memset crypto/qat: use secure memset bus/uacce: remove memset before free compress/octeontx: remove unnecessary memset test: remove unneeded memset app/test/test_cmdline_cirbuf.c | 2 -- drivers/bus/uacce/uacce.c | 1 - drivers/compress/octeontx/otx_zip.c | 1 - drivers/compress/octeontx/otx_zip_pmd.c | 2 -- drivers/crypto/qat/qat_asym.c | 5 +---- drivers/crypto/qat/qat_sym_session.c | 27 +++++++++++----------- 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 +++ 10 files changed, 87 insertions(+), 29 deletions(-) -- 2.45.2