]> git.baikalelectronics.ru Git - kernel.git/commit
dm crypt: fix GFP flags passed to skcipher_request_alloc()
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 2 Jan 2020 13:23:32 +0000 (08:23 -0500)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2020 17:07:32 +0000 (12:07 -0500)
commitc92eb16e78b24114ed88381bd1d7572f49d2078f
treea2876b4f882b0ae15d4db7cbb5d9f9ebf06fe0b2
parent66e8ae0861c2c69fb53878e2d7548cf3d90b1ca5
dm crypt: fix GFP flags passed to skcipher_request_alloc()

GFP_KERNEL is not supposed to be or'd with GFP_NOFS (the result is
equivalent to GFP_KERNEL). Also, we use GFP_NOIO instead of GFP_NOFS
because we don't want any I/O being submitted in the direct reclaim
path.

Fixes: d28b2eb34f34 ("dm crypt: reuse eboiv skcipher for IV generation")
Cc: stable@vger.kernel.org # v5.4+
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-crypt.c