dm-stripe: fix a possible integer overflow
commit 1071d560 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>
Loading