aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/slab.py
diff options
context:
space:
mode:
authorMike Christie <[email protected]>2023-10-12 10:05:59 -0500
committerJens Axboe <[email protected]>2023-10-17 08:27:24 -0600
commit56974c07f2c77d302fc311b0c6b95f45be76a3ae (patch)
tree666bc36eacf54488d18e783e17bba23fdac0e312 /scripts/gdb/linux/slab.py
parentd451fdd0fe8323bf970b735cf276d4e11ae8cdcc (diff)
ublk: Limit dev_id/ub_number values
The dev_id/ub_number is used for the ublk dev's char device's minor number so it has to fit into MINORMASK. This patch adds checks to prevent userspace from passing a number that's too large and limits what can be allocated by the ublk_index_idr for the case where userspace has the kernel allocate the dev_id/ub_number. Signed-off-by: Mike Christie <[email protected]> Reviewed-by: Ming Lei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/slab.py')
0 files changed, 0 insertions, 0 deletions