diff options
| author | Jens Axboe <[email protected]> | 2018-09-04 17:52:34 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2018-09-04 17:54:58 +0000 |
| commit | bc811f05d77f47059c197a98b6ad242eb03999cb (patch) | |
| tree | e96cabff009625665432d1b98fba898eabaa89ba /tools/testing/radix-tree/xarray.c | |
| parent | blkcg: use tryget logic when associating a blkg with a bio (diff) | |
| download | kernel-bc811f05d77f47059c197a98b6ad242eb03999cb.tar.gz kernel-bc811f05d77f47059c197a98b6ad242eb03999cb.zip | |
nbd: don't allow invalid blocksize settings
syzbot reports a divide-by-zero off the NBD_SET_BLKSIZE ioctl.
We need proper validation of the input here. Not just if it's
zero, but also if the value is a power-of-2 and in a valid
range. Add that.
Cc: [email protected]
Reported-by: syzbot <[email protected]>
Reviewed-by: Josef Bacik <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/xarray.c')
0 files changed, 0 insertions, 0 deletions
