Skip to content

Commit ee551b8

Browse files
antonyantonygregkh
authored andcommitted
xfrm: fix xfrm_do_migrate() with AEAD e.g(AES-GCM)
commit 75bf50f upstream. copy geniv when cloning the xfrm state. x->geniv was not copied to the new state and migration would fail. xfrm_do_migrate .. xfrm_state_clone() .. .. esp_init_aead() crypto_alloc_aead() crypto_alloc_tfm() crypto_find_alg() return EAGAIN and failed Signed-off-by: Antony Antony <[email protected]> Signed-off-by: Steffen Klassert <[email protected]> Cc: Ben Hutchings <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 177a981 commit ee551b8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

net/xfrm/xfrm_state.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1159,6 +1159,7 @@ static struct xfrm_state *xfrm_state_clone(struct xfrm_state *orig)
11591159

11601160
if (orig->aead) {
11611161
x->aead = xfrm_algo_aead_clone(orig->aead);
1162+
x->geniv = orig->geniv;
11621163
if (!x->aead)
11631164
goto error;
11641165
}

0 commit comments

Comments
 (0)