diff options
| author | Li Nan <[email protected]> | 2024-03-29 01:23:19 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-04-02 13:43:24 +0000 |
| commit | 22d24a544b0d49bbcbd61c8c0eaf77d3c9297155 (patch) | |
| tree | 57955015f8a4446436f0e7b45a7ed978325e044b /scripts/make_fit.py | |
| parent | nullblk: Fix cleanup order in null_add_dev() error path (diff) | |
| download | kernel-22d24a544b0d49bbcbd61c8c0eaf77d3c9297155.tar.gz kernel-22d24a544b0d49bbcbd61c8c0eaf77d3c9297155.zip | |
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 <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions
