diff options
| author | Stanislav Fomichev <sdf@fomichev.me> | 2025-08-18 08:40:26 -0700 |
|---|---|---|
| committer | Jakub Kicinski <kuba@kernel.org> | 2025-08-19 17:54:13 -0700 |
| commit | c3f0c02997c7f8489fec259e28e0e04e9811edac (patch) | |
| tree | 3ec6463a3aa14015e41cc3ef657826cba8b100ef /rust/helpers/helpers.c | |
| parent | 0e041220ea064585d3d667b70e03bad0f31f86bb (diff) | |
net: Add skb_dstref_steal and skb_dstref_restore
Going forward skb_dst_set will assert that skb dst_entry
is empty during skb_dst_set to prevent potential leaks. There
are few places that still manually manage dst_entry not using
the helpers. Convert them to the following new helpers:
- skb_dstref_steal that resets dst_entry and returns previous dst_entry
value
- skb_dstref_restore that restores dst_entry previously reset via
skb_dstref_steal
Signed-off-by: Stanislav Fomichev <sdf@fomichev.me>
Link: https://patch.msgid.link/20250818154032.3173645-2-sdf@fomichev.me
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions
