public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH net v3 0/2] ioam6: fix write to cloned skb's
@ 2024-02-19 13:52 Justin Iurman
  2024-02-19 13:52 ` [PATCH net v3 1/2] Fix write to cloned skb in ipv6_hop_ioam() Justin Iurman
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Justin Iurman @ 2024-02-19 13:52 UTC (permalink / raw)
  To: netdev; +Cc: davem, dsahern, edumazet, kuba, pabeni, linux-kernel,
	justin.iurman

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
-- 
2.34.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-02-22  8:40 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-02-19 13:52 [PATCH net v3 0/2] ioam6: fix write to cloned skb's Justin Iurman
2024-02-19 13:52 ` [PATCH net v3 1/2] Fix write to cloned skb in ipv6_hop_ioam() Justin Iurman
2024-02-19 13:52 ` [PATCH net v3 2/2] selftests: ioam: refactoring to align with the fix Justin Iurman
2024-02-22  8:40 ` [PATCH net v3 0/2] ioam6: fix write to cloned skb's patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox