[RFC PATCH v2 13/41] ublk: refuse unprivileged devices to UUID and GUID users

sashiko-bot at kernel.org sashiko-bot at kernel.org
Thu Oct 22 03:17:36 UTC 2026


> The owner of an unprivileged ublk device is recorded in 32 bit fields of
> struct ublksrv_ctrl_dev_info, and only the owner may open the disk. A
> UUID or GUID user comes out as -1 there, like every other one, so they
> could open each other's devices.
> 
> Fail the creation of unprivileged devices by such users with
> -EOVERFLOW, and never let such a user pass the owner check.
> 
> Assisted-by: Claude:claude-opus-5-5
> 
> Signed-off-by: Jan Koester <jan.koester at tuxist.de>

Sashiko has reviewed this patch and found no issues.

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1792552161.git.jan.koester@tuxist.de?part=13




More information about the Linux-security-module-archive mailing list