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 DA5B945CB3; Fri, 8 Nov 2024 15:37:04 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C7327433D9; Fri, 8 Nov 2024 15:37:04 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 39F404025C for ; Fri, 8 Nov 2024 15:37:03 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731076622; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=aym06pEjmoh1OZ/TBIPqVDebmOkRYDfAyHzQhjthn34=; b=OYLCPMDfgM8q5CkOTkCZsHCa69KOuIMOtpwFEDvrBda2RucKATG7rbLQAgkdclopKxnPo/ inocpSV4XGikgFoyMtAhe2PPFOPoa6PKYbSZhRTVkY3aIoo/GLoJLmGA331cOdBcpe+D4q LY9U6u0cMXxxf3ZNvlKeB0UdjBJTwYI= Received: from mail-lf1-f72.google.com (mail-lf1-f72.google.com [209.85.167.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-500-A2HBN-56M2Gy32Mbqh2X4Q-1; Fri, 08 Nov 2024 09:37:01 -0500 X-MC-Unique: A2HBN-56M2Gy32Mbqh2X4Q-1 X-Mimecast-MFC-AGG-ID: A2HBN-56M2Gy32Mbqh2X4Q Received: by mail-lf1-f72.google.com with SMTP id 2adb3069b0e04-539f49f23ddso1503064e87.1 for ; Fri, 08 Nov 2024 06:37:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731076620; x=1731681420; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aym06pEjmoh1OZ/TBIPqVDebmOkRYDfAyHzQhjthn34=; b=obLTIsb8l+dkgKd7IrZ3iZrluOePqagvSa/WyjO3Z7/X3BctcZjkX+9e8jhskCs8Q2 JzokTXqge5dJYxxGF/02LEhu5LuUPuS0kPEhS25+4AvMq57YV74KIHCV7y3+lWLgEhFw XTneMUWrF7qbielmlGdc4LnNncuRyZyX5MJFZwQVxTy+d7VBarDaBvFAc8/oumwuc9Eh xx0mTOFOpOewtaM0i6pHws/WeUYHocPnJ2pVvxc70cpgyMJqlxJukCfeTJ31ifUddj3H 78zfmF6McLpk3DzaK9dDn5rNtr7mvn4IgBgqaVg6ZWxz/ZKDakX1XXblmO6o6AU+pXqt 8a3g== X-Gm-Message-State: AOJu0Yw7ZRtwVZgHdgCATxl4C8IVjSqyNVW0IP40/W+pA7t3BbYd9TC+ waA78nijDgm4L15e7hWv7NrWFzSkKNAS6/lpkQ3r5bZE6AyS+75f7AspNmHcfrp42CQI8UtWKhj A3fvgsTvzzQs18f9dteZPmGWC0/JTcqmRJXXiHFYe5Isl9dDxYhchkbsPj9wCTLMfdDt4PA/thH s3wQ4WfrvQAQdir1nOrC9sEu0= X-Received: by 2002:a2e:9a16:0:b0:2fb:3881:35d8 with SMTP id 38308e7fff4ca-2ff201513dbmr18968911fa.14.1731076620031; Fri, 08 Nov 2024 06:37:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IFpcfWnWIikxb/Wlf3caF32x73R25YufJPJL4EvfzdeZRULh4zEJ8ezxWYMil9Op9EPyHdO814ez29uwecAnDc= X-Received: by 2002:a2e:9a16:0:b0:2fb:3881:35d8 with SMTP id 38308e7fff4ca-2ff201513dbmr18968691fa.14.1731076619650; Fri, 08 Nov 2024 06:36:59 -0800 (PST) MIME-Version: 1.0 References: <20241017225844.235401-1-stephen@networkplumber.org> <20241028190301.264378-1-stephen@networkplumber.org> In-Reply-To: <20241028190301.264378-1-stephen@networkplumber.org> From: David Marchand Date: Fri, 8 Nov 2024 15:36:48 +0100 Message-ID: Subject: Re: [PATCH v2 0/2] gpudev: annotate memory allocation functions To: Stephen Hemminger Cc: dev@dpdk.org X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: aXYB0f0bTDB-_0X3dpGG_FpGxx-uARbMqA9d8yZCpt0_1731076620 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 On Mon, Oct 28, 2024 at 8:03=E2=80=AFPM Stephen Hemminger wrote: > > Use function attributes to catch misuse of GPU memory > at compile time. > > v2 - remove test case where invalid pointer was being passed. > The test is now caught at compile time, making a runtime test > no longer necessary. > > Stephen Hemminger (2): > test-gpudev: avoid use-after-free and free-non-heap warnings > gpudev: add malloc annotations to rte_gpu_mem_alloc > > app/test-gpudev/main.c | 16 +++----------- > lib/gpudev/rte_gpudev.h | 46 +++++++++++++++++++++-------------------- > 2 files changed, 27 insertions(+), 35 deletions(-) There is a build error due to referencing experimental symbol in annotation= . --=20 David Marchand