[PATCH v2] nvme: pass partition flags to passthrough checks
Keith Busch
kbusch at kernel.org
Tue Oct 13 08:44:58 PDT 2026
On Tue, Oct 13, 2026 at 03:53:24PM +0800, Yao Sang wrote:
> nvme_user_cmd() handles NVME_IOCTL_IO_CMD on namespace block devices,
> including partitions. It receives flags identifying a partition, but
> passes 0 to nvme_cmd_allowed(), bypassing the partition guard and
> allowing unprivileged passthrough commands to access sectors outside
> the partition.
>
> Pass flags to the permission check, rejecting unprivileged commands on
> partitions.
Thanks, applied to nvme-7.4.
More information about the Linux-nvme
mailing list