Re: [PATCH v2 3/4] xfrm: clone XFRMA_SEC_CTX in xfrm_do_migrate

2020-08-27 Thread Steffen Klassert
On Wed, Aug 26, 2020 at 09:40:09PM +0200, Antony Antony wrote: > XFRMA_SEC_CTX was not cloned from the old to the new. > Migrate this attribute during XFRMA_MSG_MIGRATE > > v1->v2: > - return -ENOMEM on error > > Fixes: 80c9abaabf42 ("[XFRM]: Extension for dynamic update of endpoint > address(e

[PATCH v2 3/4] xfrm: clone XFRMA_SEC_CTX in xfrm_do_migrate

2020-08-26 Thread Antony Antony
XFRMA_SEC_CTX was not cloned from the old to the new. Migrate this attribute during XFRMA_MSG_MIGRATE v1->v2: - return -ENOMEM on error Fixes: 80c9abaabf42 ("[XFRM]: Extension for dynamic update of endpoint address(es)") Signed-off-by: Antony Antony --- net/xfrm/xfrm_state.c | 28