From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33686CD8C90 for ; Mon, 8 Jun 2026 01:21:04 +0000 (UTC) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id DB66040265; Mon, 8 Jun 2026 03:21:02 +0200 (CEST) Received: from canpmsgout02.his.huawei.com (canpmsgout02.his.huawei.com [113.46.200.217]) by mails.dpdk.org (Postfix) with ESMTP id 236AA40264; Mon, 8 Jun 2026 03:20:59 +0200 (CEST) dkim-signature: v=1; a=rsa-sha256; d=huawei.com; s=dkim; c=relaxed/relaxed; q=dns/txt; h=From; bh=6C7AhezR4g4pYvLzSR6FpyzWJqLbDkfOxyepZ+7YpY4=; b=n5FPCBQkdk3w1LXIzsgSS5j4ClanADdPISxof1zvBYFkScUZBnhfzGmH0Ppmnh+XdoCwZ034s t8dle/fU3JSVTJB7FdtL/EAlCCIQYUuaMgU0A3MHwW8wmzzXVvJKeWye99GJ5ovf5rbdUaD8rtJ +7CF9cBygEBUAEVu4SRnpnY= Received: from mail.maildlp.com (unknown [172.19.162.140]) by canpmsgout02.his.huawei.com (SkyGuard) with ESMTPS id 4gYYtn3r00zcZyH; Mon, 8 Jun 2026 09:12:49 +0800 (CST) Received: from kwepemk500009.china.huawei.com (unknown [7.202.194.94]) by mail.maildlp.com (Postfix) with ESMTPS id 4598E2012A; Mon, 8 Jun 2026 09:20:57 +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; Mon, 8 Jun 2026 09:20:56 +0800 Message-ID: <4ebd874b-1fab-480c-8e8e-4aa93fa0057b@huawei.com> Date: Mon, 8 Jun 2026 09:20:56 +0800 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 3/8] dmadev: validate telemetry parameters To: Stephen Hemminger , CC: , Kevin Laatz , Bruce Richardson , Conor Walsh , Sean Morrissey References: <20260605205253.520196-1-stephen@networkplumber.org> <20260605205253.520196-4-stephen@networkplumber.org> Content-Language: en-US From: fengchengwen In-Reply-To: <20260605205253.520196-4-stephen@networkplumber.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.121.161] X-ClientProxiedBy: kwepems200001.china.huawei.com (7.221.188.67) 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 6/6/2026 4:51 AM, Stephen Hemminger wrote: > Tighten parsing of the dmadev telemetry device and vchan parameters: > reject non-numeric and out-of-range ids through a bounded helper rather > than narrowing strtoul()'s result to int and leaning on the downstream > int16_t/uint16_t API to revalidate. This also drops the thread-unsafe > strtok() in the stats handler. > > Fixes: 39b5ab60df30 ("dmadev: add telemetry") > Cc: stable@dpdk.org > > Signed-off-by: Stephen Hemminger