Files
linux/drivers/block
Jens Axboe bc811f05d7 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: stable@vger.kernel.org
Reported-by: syzbot <syzbot+25dbecbec1e62c6b0dd4@syzkaller.appspotmail.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-09-04 11:54:58 -06:00
..
2018-07-09 09:07:55 -06:00
2018-07-09 09:07:55 -06:00
2018-05-11 15:08:03 -06:00
2018-06-12 16:19:22 -07:00
2017-08-18 08:45:29 -06:00
2018-06-12 16:19:22 -07:00