]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ethtool: rss: avoid modifying the RSS context response
authorJakub Kicinski <kuba@kernel.org>
Fri, 22 May 2026 23:06:42 +0000 (16:06 -0700)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 May 2026 15:17:56 +0000 (08:17 -0700)
commitc75b6f6eaacd0b74b832414cc3b9289c3686e941
tree149558b220a3fe5cf3c2c1684c188f9ae526757f
parent2e357f002c61fd76fd8f12468744a06a5ec48eaa
ethtool: rss: avoid modifying the RSS context response

Gemini says that we're modifying the RSS_CREATE response skb.
I think it's right, the comment says that unicast() should
unshare the skb but I'm not entirely sure what I meant there.
netlink_trim() does a copy but only if skb is not well sized
(it's at least 2x larger than necessary for the payload).

Fixes: a166ab7816c5 ("ethtool: rss: support creating contexts via Netlink")
Link: https://patch.msgid.link/20260522230647.1705600-2-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethtool/rss.c