Re: [PATCH] xfrm: fix xfrm_do_migrate() with AEAD e.g(AES-GCM)

2017-12-07 Thread Steffen Klassert
On Thu, Dec 07, 2017 at 09:54:27PM +0100, Antony Antony wrote: > 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() >

[PATCH] xfrm: fix xfrm_do_migrate() with AEAD e.g(AES-GCM)

2017-12-07 Thread Antony Antony
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