Skip to content

Fix issues in xfrm_migrate

Yan Yan netdev oe-kbuild-all 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xfrm: Check if_id in xfrm_migrateinclude/net/xfrm.h net/xfrm/xfrm_policy.c net/xfrm/xfrm_state.c +1 more+22 -100 replies
2/2xfrm: Fix xfrm migrate issues when address family changesnet/xfrm/xfrm_state.c+21 -100 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH v1 0/2] Fix issues in xfrm_migrate

This patch series include two patches to fix two issues in xfrm_migrate.

PATCH 1/2 enables distinguishing SAs and SPs based on if_id during the xfrm_migrate flow. It fixes the problem that when there are multiple existing SPs with the same direction, the same xfrm_selector and different endpoint addresses, xfrm_migrate might fail.

PATCH 2/2 enables xfrm_migrate to handle address family change by breaking the original xfrm_state_clone method into two steps so as to update the props.family before running xfrm_init_state.

Yan Yan (2):
xfrm: Check if_id in xfrm_migrate
xfrm: Fix xfrm migrate issues when address family changes

 include/net/xfrm.h     |  5 +++--
 net/xfrm/xfrm_policy.c | 14 ++++++++------
 net/xfrm/xfrm_state.c  | 38 +++++++++++++++++++++++++++-----------
 net/xfrm/xfrm_user.c   |  6 +++++-
 4 files changed, 43 insertions(+), 20 deletions(-)
Signature · 1 line
2.34.1.307.g9b7440fafd-goog