Re: [PATCH 2/6] fscrypt: Release fscrypt context on in-place encryption

2016-12-02 Thread Eric Biggers
On Thu, Dec 01, 2016 at 11:14:54PM +0100, Richard Weinberger wrote: > From: David Gstir > > In case of in-place encryption ctx must be released right away. > Otherwise ctx is never freed. > I didn't notice this before, but the fscrypt_ctx isn't actually used at all in the

Re: [PATCH 2/6] fscrypt: Release fscrypt context on in-place encryption

2016-12-02 Thread Eric Biggers
On Thu, Dec 01, 2016 at 11:14:54PM +0100, Richard Weinberger wrote: > From: David Gstir > > In case of in-place encryption ctx must be released right away. > Otherwise ctx is never freed. > I didn't notice this before, but the fscrypt_ctx isn't actually used at all in the "own pages" crypto

[PATCH 2/6] fscrypt: Release fscrypt context on in-place encryption

2016-12-01 Thread Richard Weinberger
From: David Gstir In case of in-place encryption ctx must be released right away. Otherwise ctx is never freed. Fixes: 1c7dcf69eea3 ("fscrypt: Add in-place encryption mode") Signed-off-by: David Gstir Signed-off-by: Richard Weinberger

[PATCH 2/6] fscrypt: Release fscrypt context on in-place encryption

2016-12-01 Thread Richard Weinberger
From: David Gstir In case of in-place encryption ctx must be released right away. Otherwise ctx is never freed. Fixes: 1c7dcf69eea3 ("fscrypt: Add in-place encryption mode") Signed-off-by: David Gstir Signed-off-by: Richard Weinberger --- fs/crypto/crypto.c | 2 ++ 1 file changed, 2