netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v1 0/2] Fix issues in xfrm_migrate
@ 2022-01-06  0:52 Yan Yan
  2022-01-06  0:52 ` [PATCH v1 1/2] xfrm: Check if_id " Yan Yan
  2022-01-06  0:52 ` [PATCH v1 2/2] xfrm: Fix xfrm migrate issues when address family changes Yan Yan
  0 siblings, 2 replies; 6+ messages in thread
From: Yan Yan @ 2022-01-06  0:52 UTC (permalink / raw)
  To: Steffen Klassert
  Cc: netdev, Herbert Xu, David S . Miller, Jakub Kicinski, lorenzo,
	maze, nharold, benedictwong, Yan Yan

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/key/af_key.c       |  2 +-
 net/xfrm/xfrm_policy.c | 14 ++++++++------
 net/xfrm/xfrm_state.c  | 40 ++++++++++++++++++++++++++++------------
 net/xfrm/xfrm_user.c   |  6 +++++-
 5 files changed, 45 insertions(+), 22 deletions(-)


base-commit: 18343b80691560f41c3339119a2e9314d4672c77
-- 
2.34.1.448.ga2b2bfdf31-goog


^ permalink raw reply	[flat|nested] 6+ messages in thread
* [PATCH v1 0/2] Fix issues in xfrm_migrate
@ 2021-12-23  0:45 Yan Yan
  0 siblings, 0 replies; 6+ messages in thread
From: Yan Yan @ 2021-12-23  0:45 UTC (permalink / raw)
  To: steffen.klassert
  Cc: herbert, davem, netdev, nharold, benedictwong, maze, lorenzo,
	Yan Yan

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(-)

-- 
2.34.1.307.g9b7440fafd-goog


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

end of thread, other threads:[~2022-01-19  0:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-06  0:52 [PATCH v1 0/2] Fix issues in xfrm_migrate Yan Yan
2022-01-06  0:52 ` [PATCH v1 1/2] xfrm: Check if_id " Yan Yan
2022-01-06  0:52 ` [PATCH v1 2/2] xfrm: Fix xfrm migrate issues when address family changes Yan Yan
2022-01-12  7:57   ` Steffen Klassert
2022-01-19  0:03     ` Yan Yan
  -- strict thread matches above, loose matches on Subject: below --
2021-12-23  0:45 [PATCH v1 0/2] Fix issues in xfrm_migrate Yan Yan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).