[net,v3,0/2] ioam6: fix write to cloned skb's

Message ID 20240219135255.15429-1-justin.iurman@uliege.be
Headers
Series ioam6: fix write to cloned skb's |

Message

Justin Iurman Feb. 19, 2024, 1:52 p.m. UTC
  v3:
 - fix patches tag ("net" and version were removed unexpectedly)

v2:
 - use skb_ensure_writable() instead of skb_cloned()+pskb_expand_head()
 - refresh network header pointer in ip6_parse_tlv() when returning from
   ipv6_hop_ioam()

Make sure the IOAM data insertion is not applied on cloned skb's. As a
consequence, ioam selftests needed a refactoring.

Justin Iurman (2):
  Fix write to cloned skb in ipv6_hop_ioam()
  selftests: ioam: refactoring to align with the fix

 net/ipv6/exthdrs.c                         | 10 +++
 tools/testing/selftests/net/ioam6.sh       | 38 ++++-----
 tools/testing/selftests/net/ioam6_parser.c | 95 +++++++++++-----------
 3 files changed, 76 insertions(+), 67 deletions(-)


base-commit: 166c2c8a6a4dc2e4ceba9e10cfe81c3e469e3210
  

Comments

patchwork-bot+netdevbpf@kernel.org Feb. 22, 2024, 8:40 a.m. UTC | #1
Hello:

This series was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@redhat.com>:

On Mon, 19 Feb 2024 14:52:53 +0100 you wrote:
> v3:
>  - fix patches tag ("net" and version were removed unexpectedly)
> 
> v2:
>  - use skb_ensure_writable() instead of skb_cloned()+pskb_expand_head()
>  - refresh network header pointer in ip6_parse_tlv() when returning from
>    ipv6_hop_ioam()
> 
> [...]

Here is the summary with links:
  - [net,v3,1/2] Fix write to cloned skb in ipv6_hop_ioam()
    https://git.kernel.org/netdev/net/c/f198d933c2e4
  - [net,v3,2/2] selftests: ioam: refactoring to align with the fix
    https://git.kernel.org/netdev/net/c/187bbb6968af

You are awesome, thank you!