On Wed, Sep 05, 2018 at 09:18:43AM -0400, Mikulas Patocka wrote:
> This patch fixes gcmaes_crypt_by_sg so that it won't use memory
> allocation if the data doesn't cross a page boundary.
> 
> Authenticated encryption may be used by dm-crypt. If the encryption or
> decryption fails, it would result in I/O error and filesystem corruption.
> The function gcmaes_crypt_by_sg is using GFP_ATOMIC allocation that can
> fail anytime. This patch fixes the logic so that it won't attempt the
> failing allocation if the data doesn't cross a page boundary.
> 
> Signed-off-by: Mikulas Patocka <mpato...@redhat.com>
> Cc: sta...@vger.kernel.org

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herb...@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

Reply via email to