]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm-verity: fix unreliable memory allocation
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 17 Nov 2025 20:42:02 +0000 (21:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2025 21:12:43 +0000 (06:12 +0900)
commite39339f32eeb5dd2fc1c8abf66931bacb2d5fdfc
tree8575b9fe268b7add49ff2f0ec7a416137c352446
parent9aa2ab65fb66c58ca992fb063698b3f854615ab4
dm-verity: fix unreliable memory allocation

commit fe680d8c747f4e676ac835c8c7fb0f287cd98758 upstream.

GFP_NOWAIT allocation may fail anytime. It needs to be changed to
GFP_NOIO. There's no need to handle an error because mempool_alloc with
GFP_NOIO can't fail.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Reviewed-by: Eric Biggers <ebiggers@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-verity-fec.c