Skip to content

Flexible array for ip tunnel options

Gal Pressman linux-hardening netdev 2 versions – Applied

Status from this message: This series was applied to netdev/net-next.git (main)

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest2 patches 2 repliesApplied 2/2
  2. v32 patches 1 replySuperseded

Patches in v4 All 2 applied

#Subject and filesSizeRepliesApplied
1/2ip_tunnel: Use ip_tunnel_info() helper instead of 'info + 1'include/net/ip_tunnels.h net/sched/act_tunnel_key.c+5 -51 replyApplied
2/2net: Add options as a flexible array to struct ip_tunnel_infoinclude/net/dst_metadata.h include/net/ip_tunnels.h net/core/dst.c+9 -91 replyApplied

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchCosmin RatiuTariq ToukanKees Cook
1/2R-b
2/2R-b R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v4 thread

Cover letter [PATCH net-next v4 0/2] Flexible array for ip tunnel options

Remove the hidden assumption that options are allocated at the end of the struct, and teach the compiler about them using a flexible array.

First patch is converting hard-coded 'info + 1' to use ip_tunnel_info() helper.
Second patch adds the 'options' flexible array and changes the helper to use it.

Changelog -
v3=>v4: https://lore.kernel.org/netdev/[email protected]/
* Remove the casts in first patch (Jakub).

v2->v3: https://lore.kernel.org/netdev/[email protected]/
* Add a precursory patch to convert hard-coded user of options.
* Keep ip_tunnel_info() macro (Alexander).
* Use __aligned_largest (Alexander).

v1->v2: https://lore.kernel.org/netdev/[email protected]/
* Remove change in struct layout, align 'options' field explicitly (Ilya, Kees, Jakub).
* Change allocation I missed in v1 in metadata_dst_alloc_percpu().

Thanks,
Gal

Gal Pressman (2):
ip_tunnel: Use ip_tunnel_info() helper instead of 'info + 1'
net: Add options as a flexible array to struct ip_tunnel_info

 include/net/dst_metadata.h | 7 ++-----
 include/net/ip_tunnels.h   | 7 ++++---
 net/core/dst.c             | 6 ++++--
 net/sched/act_tunnel_key.c | 8 ++++----
 4 files changed, 14 insertions(+), 14 deletions(-)
Signature · 1 line
2.40.1