diff options
author | Mikulas Patocka <mpatocka@redhat.com> | 2025-08-11 13:17:32 +0200 |
---|---|---|
committer | Mikulas Patocka <mpatocka@redhat.com> | 2025-08-11 13:17:32 +0200 |
commit | 1071d560afb4c245c2076494226df47db5a35708 (patch) | |
tree | ea07dce027b8c9bbf94c101a0a0fc649cc32efd7 /rust/helpers/pci.c | |
parent | 8f5ae30d69d7543eee0d70083daf4de8fe15d585 (diff) |
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: 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
Diffstat (limited to 'rust/helpers/pci.c')
0 files changed, 0 insertions, 0 deletions