]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm-stripe: fix a possible integer overflow
authorMikulas Patocka <mpatocka@redhat.com>
Mon, 11 Aug 2025 11:17:32 +0000 (13:17 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2025 09:16:46 +0000 (11:16 +0200)
commitee27658c239b27721397f3e4eb16370b5cce596e
tree6289e39d045b670adc7da380d2d8d9f37f2350db
parentba3a78db47ec93fa765bb973e9b39c5a03f59d59
dm-stripe: fix a possible integer overflow

commit 1071d560afb4c245c2076494226df47db5a35708 upstream.

There's a possible integer overflow in stripe_io_hints if we have too
large chunk size. Test if the overflow happened, and if it did, don't set
limits->io_min and limits->io_opt;

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Suggested-by: Dongsheng Yang <dongsheng.yang@linux.dev>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/md/dm-stripe.c