Re: [PATCH] ublk: fix ublksrv pid handling for pid namespaces

From: Seamus Connor

Date: Mon Jan 12 2026 - 13:09:17 EST


> Can we fix it in the following way?
>
> + struct pid *pid = find_vpid(ublksrv_pid);
> +
> + if (!pid || pid_nr(pid) != ub->ublksrv_tgid)
> + return -EINVAL;

Sure that makes sense. Let me try that out.

> Also your patch has patch style issue, please check it before posting out
> by `./scripts/checkpatch.pl`. Or you may have to use `git send-email` to
> send patch file.

Sorry about that.