Commit 3162d823 authored by Ronnie Sahlberg's avatar Ronnie Sahlberg Committed by Greg Kroah-Hartman
Browse files

ublk: santizize the arguments from userspace when adding a device



[ Upstream commit 8c847285 ]

Sanity check the values for queue depth and number of queues
we get from userspace when adding a device.

Signed-off-by: default avatarRonnie Sahlberg <rsahlberg@whamcloud.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Fixes: 71f28f31 ("ublk_drv: add io_uring based userspace block driver")
Fixes: 62fe99ce ("ublk: add read()/write() support for ublk char device")
Link: https://lore.kernel.org/r/20250619021031.181340-1-ronniesahlberg@gmail.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 66bba1fd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment