Files
linux/drivers
Ming Lei 231a49460a block: ublk: make sure that block size is set correctly
[ Upstream commit 1d1665279a ]

block size is one very key setting for block layer, and bad block size
could panic kernel easily.

Make sure that block size is set correctly.

Meantime if ublk_validate_params() fails, clear ub->params so that disk
is prevented from being added.

Fixes: 71f28f3136 ("ublk_drv: add io_uring based userspace block driver")
Reported-and-tested-by: Breno Leitao <leitao@debian.org>
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-04-13 16:55:32 +02:00
..
2023-04-13 16:55:25 +02:00
2023-04-13 16:55:31 +02:00
2023-02-09 11:28:25 +01:00
2023-04-06 12:10:44 +02:00
2023-04-06 12:10:46 +02:00
2023-03-10 09:34:32 +01:00