Antony Antony 3e54e1c3be 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-19 10:27:00 +02:00
..
2018-05-16 10:08:44 +02:00
2016-12-03 23:54:25 -05:00
2018-05-19 10:26:57 +02:00
2017-11-15 15:53:17 +01:00
2018-04-13 19:48:29 +02:00
2018-05-19 10:26:59 +02:00
2018-05-19 10:26:57 +02:00
2016-10-20 11:23:08 -04:00
2018-04-20 08:21:07 +02:00
2018-04-24 09:34:17 +02:00
2016-08-17 19:36:23 -04:00
2016-08-17 19:36:23 -04:00