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 1C0BC4622E; Sat, 15 Feb 2025 16:25:33 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C22B4400D7; Sat, 15 Feb 2025 16:25:32 +0100 (CET) Received: from dkmailrelay1.smartsharesystems.com (smartserver.smartsharesystems.com [77.243.40.215]) by mails.dpdk.org (Postfix) with ESMTP id 0A6BC40041 for ; Sat, 15 Feb 2025 16:25:32 +0100 (CET) Received: from smartserver.smartsharesystems.com (smartserver.smartsharesys.local [192.168.4.10]) by dkmailrelay1.smartsharesystems.com (Postfix) with ESMTP id D1BED2077A; Sat, 15 Feb 2025 16:25:31 +0100 (CET) Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: [PATCH v6 02/11] eal: add new secure free function Date: Sat, 15 Feb 2025 16:25:29 +0100 X-MimeOLE: Produced By Microsoft Exchange V6.5 Message-ID: <98CBD80474FA8B44BF855DF32C47DC35E9FA3F@smartserver.smartshare.dk> In-Reply-To: <20250213221819.1856769-3-stephen@networkplumber.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [PATCH v6 02/11] eal: add new secure free function Thread-Index: Adt+ZT57632VVikbTh+IBeS8/hh/AABWFpyg References: <20241114011129.451243-1-stephen@networkplumber.org> <20250213221819.1856769-1-stephen@networkplumber.org> <20250213221819.1856769-3-stephen@networkplumber.org> From: =?iso-8859-1?Q?Morten_Br=F8rup?= To: "Stephen Hemminger" , Cc: "Anatoly Burakov" , "Tyler Retzlaff" 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 > + > +/** Missing: + * @warning + * @b EXPERIMENTAL: this API may change without prior notice. + * > + * Frees the memory space pointed to by the provided pointer > + * and guarantees it will be zero'd before reuse. Since this > + * function is slower than simple rte_free() it should only > + * be used for security keys and other sensitive data. > + * > + * This pointer must have been returned by a previous call to > + * rte_malloc(), rte_zmalloc(), rte_calloc() or rte_realloc(). The > behaviour of > + * rte_free() is undefined if the pointer does not match this > requirement. > + * > + * If the pointer is NULL, the function does nothing. > + * > + * @param ptr > + * The pointer to memory to be freed. > + */ > +__rte_experimental > +void > +rte_free_sensitive(void *ptr); > + With the warning added to the description, Acked-by: Morten Br=F8rup