]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Merge branch 'net-convert-to-skb_dstref_steal-and-skb_dstref_restore'
authorJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 00:53:30 +0000 (17:53 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 20 Aug 2025 00:54:47 +0000 (17:54 -0700)
commit9efd5152e32bb446752ead726a4621a50a95c11f
treee59b1568849dd3915b097159462998e8f3110e2c
parent0e041220ea064585d3d667b70e03bad0f31f86bb
parenta890348adcc993f48d1ae38f1174dc8de4c3c5ac
Merge branch 'net-convert-to-skb_dstref_steal-and-skb_dstref_restore'

Stanislav Fomichev says:

====================
net: Convert to skb_dstref_steal and skb_dstref_restore

To diagnose and prevent issues similar to [0], emit warning
(CONFIG_DEBUG_NET) from skb_dst_set and skb_dst_set_noref when
overwriting non-null reference-counted entry. Two new helpers
are added to handle special cases where the entry needs to be
reset and restored: skb_dstref_steal/skb_dstref_restore. The bulk of
the patches in the series converts manual _skb_refst manipulations
to these new helpers.

0: https://lore.kernel.org/netdev/20250723224625.1340224-1-sdf@fomichev.me/T/#u
====================

Link: https://patch.msgid.link/20250818154032.3173645-1-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>