Commit 1071d560 authored by Mikulas Patocka's avatar Mikulas Patocka
Browse files

dm-stripe: fix a possible integer overflow



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: default avatarMikulas Patocka <mpatocka@redhat.com>
Reviewed-by: default avatarJohn Garry <john.g.garry@oracle.com>
Suggested-by: default avatarDongsheng Yang <dongsheng.yang@linux.dev>
Cc: stable@vger.kernel.org
parent 8f5ae30d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment