diff options
author | Li Nan <linan122@huawei.com> | 2024-03-29 04:23:19 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2024-04-02 16:43:24 +0300 |
commit | 22d24a544b0d49bbcbd61c8c0eaf77d3c9297155 (patch) | |
tree | 57955015f8a4446436f0e7b45a7ed978325e044b /drivers/nvme | |
parent | fbbd5d3ad9435748b8ae6451bc004ee9ac49b6b7 (diff) | |
download | linux-22d24a544b0d49bbcbd61c8c0eaf77d3c9297155.tar.xz |
block: fix overflow in blk_ioctl_discard()
There is no check for overflow of 'start + len' in blk_ioctl_discard().
Hung task occurs if submit an discard ioctl with the following param:
start = 0x80000000000ff000, len = 0x8000000000fff000;
Add the overflow validation now.
Signed-off-by: Li Nan <linan122@huawei.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20240329012319.2034550-1-linan666@huaweicloud.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/nvme')
0 files changed, 0 insertions, 0 deletions