Antony Antony ee551b8e00 xfrm: fix xfrm_do_migrate() with AEAD e.g(AES-GCM)
commit 75bf50f4aaa1c78d769d854ab3d975884909e4fb 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 <antony@phenome.org>
Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-26 08:48:50 +02:00
..
2018-05-16 10:06:51 +02:00
2018-05-26 08:48:46 +02:00
2017-11-15 17:13:11 +01:00
2015-11-23 14:56:15 -05:00
2018-05-26 08:48:48 +02:00
2015-10-07 04:27:43 -07:00
2018-05-26 08:48:46 +02:00
2015-10-21 00:49:24 +02:00
2018-04-24 09:32:11 +02:00
2018-02-25 11:03:37 +01:00