🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #2260

Re: [PATCH net] net/mlx5: HWS, fix modify header pool match for copy actions

#2260
From: Alexandre Cassen
Date: Mon, 12 Oct 2026 10:16
22 lines
6814 bytes
full review at: 
https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261010120147.135825-1-acassen%40corp.free.fr

On 10/11/26 14:02, netdev-bot+sashiko@kernel.org wrote:
 > On big-endian hosts, does mlx5hws_pat_compare_pattern() actually compare
 > the control dword?

It does not. On big-endian the cast keeps the data dword, which HWS 
clears from the pattern of set and add actions. The same cast sits in 
the loop this patch removes, so it predates the patch. v2 adds a patch 
that reads the first dword of each action from memory. The SWS pattern 
cache has the same cast and I will fix it separately.

 > This is a pre-existing issue, but can mh_pool already be freed when it is
 > dereferenced here?

Yes, when that error path runs after xa_insert(). Patch 2 of "net/mlx5:
HWS, fix pool creation races" removes it so pools live until cleanup:
https://lore.kernel.org/netdev/20261008204230.3222198-1-acassen@corp.free.fr/

pw-bot: cr
Technical Details
Message-ID: <32eaed95-992c-493d-8aa5-f0a4648367a8@corp.free.fr>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344890-linux-kernel-netdev=dewy.ru
References: <20261010120147.135825-1-acassen@corp.free.fr> <179172015106.434549.17424370509568875552@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-344890-linux-kernel-netdev=dewy.ru
From: acassen@corp.free.fr (Alexandre Cassen)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] net/mlx5: HWS, fix modify header pool match for copy
 actions
Date: Mon, 12 Oct 2026 12:16:50 +0200
Organization: Usenet Network
Message-ID: <32eaed95-992c-493d-8aa5-f0a4648367a8@corp.free.fr>
References: <20261010120147.135825-1-acassen@corp.free.fr>
 <179172015106.434549.17424370509568875552@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="1747914"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:zZ+NPZdsjSuh51GbQUCvvYKYu0Y= sha256:OUYj5yaszTmPEbptzeKnvqurKkc6k0iieTzLYC6psCQ=
	sha1:SdIrZeicEt5IoshIHsKL6JKh9s0= sha256:QMgDAMcLBczeFBNiIpc9A/ZWnSbBRL51d/ubNs7DPlI=
Content-Language: en-US
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id CABFB10FB92; Mon, 12 Oct 2026 13:38:13 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -0.75
X-Spam-Status: No, score=-0.75 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=corp.free.fr
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id GUWZ3QG9NI50;
	Mon, 12 Oct 2026 13:38:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-344890-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=corp.free.fr
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 6DD6F10F81D; Mon, 12 Oct 2026 13:37:56 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1])
	by sea.lore.kernel.org (Postfix) with ESMTP id 9DCCE2996F; Mon, 12 Oct 2026 10:17:08 +0000 (UTC)
X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id F15AB3E4106;
	Mon, 12 Oct 2026 10:17:07 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=corp.free.fr header.i=@corp.free.fr header.b="W//EZyOL"
X-Received: from rcs.proxad.net (rcs.proxad.net [212.27.60.169])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 18D703A0E99;
	Mon, 12 Oct 2026 10:16:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.27.60.169
X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;
	t=1791800227; cv=none; b=OHepTF++abUIkT6a6SmrorFGRg1hlO2nj3iU2ChjVhNV6ppvb9W54iV0ALQ1v0WJomZ82MEmqVSxS6aZS2eNwoU8A24scYFgOlr1szxjKqGvYOIoEvKW22vVMsVPSSA15cd36iHvgM8cEQs9uyz7xG8nD5slb1SBi0LgVHjXqfU=
X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org;
	s=arc-20240116; t=1791800227; c=relaxed/simple;
	bh=7tA7xpvV+w3K+s1d3A7rIfvkphffKAuzcmkOIyY0NNc=;
	h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From:
	 In-Reply-To:Content-Type; b=QlhJZkUAvTDFXb7oVML/KEAYPYqx57DQLB7pJn+3EzguKU42eHILK+4s5+Z+71n0YJ7rUTfcQmc4XK4cp5E+/XnjkdZ8+fvNAQIzvkeeZhPOuzCJdmDhI+0QGm8WyBJvm8efDJcJZkcdYzwRnhUtrFXCeFLhaB2RymTmP3W685Q=
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corp.free.fr; spf=pass smtp.mailfrom=corp.free.fr; dkim=pass (2048-bit key) header.d=corp.free.fr header.i=@corp.free.fr header.b=W//EZyOL; arc=none smtp.client-ip=212.27.60.169
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=corp.free.fr
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=corp.free.fr
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=corp.free.fr; s=rcs;
	t=1791800211; bh=7tA7xpvV+w3K+s1d3A7rIfvkphffKAuzcmkOIyY0NNc=;
	h=Date:Subject:To:Cc:References:From:In-Reply-To:From;
	b=W//EZyOLxvPw1VZhn9FYsvy/w7XuztUoiCAPvV75dUZ5TLbJwQiD8+IbY5fbnWZtL
	 dmMQ0f3bZn2qGK1hYGrWIIXK0BvVX6mtPjcwKZ9Q/O8CejUS8+ajz1A88jj7+7JSZl
	 /xmoeqGmZDaSfB7gmhc5UgapnduGldXZ6iCyVy7Ajn7J4cxzb5YYGq95IXky6RbqFC
	 hseljufSV8mD9cxa0F5hHo5i9nKtNKRbDJGTQNS3XO1GOMCFyFFRff0ldhmuOPm4X6
	 7sPI4ff3ijVU6Pp/OxR7SGvz5BhYEL2YlkdxRqGhsrs2BNMMYlmC7iE1GjymW7W6ns
	 ZpvYL4VqcppJw==
X-Received: from [0.0.0.0] (unknown [213.228.1.188])
	by rcs.proxad.net (Postfix) with ESMTPSA id 09B0844C08F0;
	Mon, 12 Oct 2026 12:16:50 +0200 (CEST)
X-Precedence: bulk
X-Mailing-List: netdev@vger.kernel.org
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-User-Agent: Mozilla Thunderbird
X-Cc: saeedm@nvidia.com, leon@kernel.org, tariqt@nvidia.com, mbloch@nvidia.com,
 andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org,
 kuba@kernel.org, pabeni@redhat.com, moshe@nvidia.com, kliteyn@nvidia.com,
 netdev@vger.kernel.org, linux-rdma@vger.kernel.org
X-In-Reply-To: <179172015106.434549.17424370509568875552@kernel.org>