diff options
| author | Shao Mingyin <shao.mingyin@zte.com.cn> | 2026-11-15 00:33:49 +0800 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2026-11-15 08:42:26 -0700 |
| commit | 78c4f290e2637f8039e2124a174a24a341b38b1e (patch) | |
| tree | 56acdf3ab1811369ea830e42cb52916c08dbcb44 /kernel/debug | |
| parent | a56d5a485be4a9d52f0d7b3ed0dc3521367cb986 (diff) | |
ublk: validate all parameters for zoned devices
ublk_validate_params() returns as soon as zoned parameters are valid,
skipping the subsequent DMA alignment, segment and integrity checks.
SET_PARAMS therefore accepts combinations that it rejects for a
non-zoned device, including integrity parameters without UBLK_F_INTEGRITY.
Invalid parameters may reach disk creation or advertise an integrity
format that the server cannot access.
Continue checking the remaining parameter types after successful zoned
validation. Preserve the zoned validator's errors and the requirement
for zoned devices to supply zoned parameters.
Fixes: e84025d2a9cb ("ublk: add DMA alignment limit")
Signed-off-by: Shao Mingyin <shao.mingyin@zte.com.cn>
Reviewed-by: Ming Lei <tom.leiming@gmail.com>
Reviewed-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://patch.msgid.link/20261115003349683IFDCSTYhPzQtBozUiO8qN@zte.com.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'kernel/debug')
0 files changed, 0 insertions, 0 deletions
