Re: [PATCH] dm-stripe: fix a possible integer overflow

2025-07-07 Thread Mikulas Patocka
On Mon, 7 Jul 2025, Dongsheng Yang wrote: > > 在 7/7/2025 6:39 PM, Mikulas Patocka 写道: > > 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-of

Re: [PATCH] dm-stripe: fix a possible integer overflow

2025-07-07 Thread Dongsheng Yang
在 7/7/2025 6:39 PM, Mikulas Patocka 写道: 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 Cc: sta...@vger.kernel.org --- drivers/m

Re: [PATCH] dm-stripe: fix a possible integer overflow

2025-07-07 Thread John Garry
On 07/07/2025 11:39, Mikulas Patocka wrote: 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 Cc: sta...@vger.kernel.org Seems fine,