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 8B44246D11; Wed, 13 Aug 2025 04:21:32 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id A57CA4068E; Wed, 13 Aug 2025 04:21:31 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 18DA2400EF; Wed, 13 Aug 2025 04:21:30 +0200 (CEST) Received: from mail.maildlp.com (unknown [172.19.88.105]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4c1sXr0HFFztTBF; Wed, 13 Aug 2025 10:20:28 +0800 (CST) Received: from kwepemk500009.china.huawei.com (unknown [7.202.194.94]) by mail.maildlp.com (Postfix) with ESMTPS id 46992140202; Wed, 13 Aug 2025 10:21:28 +0800 (CST) Received: from [10.67.121.161] (10.67.121.161) by kwepemk500009.china.huawei.com (7.202.194.94) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Wed, 13 Aug 2025 10:21:27 +0800 Message-ID: Date: Wed, 13 Aug 2025 10:21:27 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v5 15/22] eventdev: fix listing timer adapters with telemetry To: David Marchand , CC: , Erik Gabriel Carrillo , Jerin Jacob , Ankur Dwivedi References: <20250619071037.37325-1-david.marchand@redhat.com> <20250723133157.159825-1-david.marchand@redhat.com> <20250723133157.159825-16-david.marchand@redhat.com> Content-Language: en-US From: fengchengwen In-Reply-To: <20250723133157.159825-16-david.marchand@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: kwepems500001.china.huawei.com (7.221.188.70) To kwepemk500009.china.huawei.com (7.202.194.94) 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 Acked-by: Chengwen Feng On 7/23/2025 9:31 PM, David Marchand wrote: > If no timer adapter is created, listing with telemetry can lead to crash > and is reported by UBSan as an undefined behavior: > > ../lib/eventdev/rte_event_timer_adapter.c:1418:13: > runtime error: applying zero offset to null pointer > > ../lib/eventdev/rte_event_timer_adapter.c:1464:13: > runtime error: applying zero offset to null pointer > > Fixes: 791dfec24d00 ("eventdev/timer: add telemetry") > Cc: stable@dpdk.org > > Signed-off-by: David Marchand