Commit 5a1296a
ublk: santizize the arguments from userspace when adding a device
BugLink: https://bugs.launchpad.net/bugs/2120812
[ Upstream commit 8c8472855884355caf3d8e0c50adf825f83454b2 ]
Sanity check the values for queue depth and number of queues
we get from userspace when adding a device.
Signed-off-by: Ronnie Sahlberg <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Fixes: 71f28f3 ("ublk_drv: add io_uring based userspace block driver")
Fixes: 62fe99c ("ublk: add read()/write() support for ublk char device")
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
Signed-off-by: Noah Wager <[email protected]>
Signed-off-by: Stefan Bader <[email protected]>1 parent 2318fd3 commit 5a1296a
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2618 | 2618 | | |
2619 | 2619 | | |
2620 | 2620 | | |
| 2621 | + | |
| 2622 | + | |
| 2623 | + | |
2621 | 2624 | | |
2622 | 2625 | | |
2623 | 2626 | | |
| |||
0 commit comments