summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorSeamus Connor <sconnor@purestorage.com>2026-01-14 18:59:52 -0800
committerJens Axboe <axboe@kernel.dk>2026-01-21 07:46:14 -0700
commit47bdf1d29caec7207b7f112230055db36602dfc0 (patch)
tree7670b226bdfbd20d5954729bc6c3c3ae9c3236b4 /include/uapi
parent07a1bc5c14c9ef6401b21c1873c6c087075ff292 (diff)
ublk: fix ublksrv pid handling for pid namespaces
When ublksrv runs inside a pid namespace, START/END_RECOVERY compared the stored init-ns tgid against the userspace pid (getpid vnr), so the check failed and control ops could not proceed. Compare against the caller’s init-ns tgid and store that value, then translate it back to the caller’s pid namespace when reporting GET_DEV_INFO so ublk list shows a sensible pid. Testing: start/recover in a pid namespace; `ublk list` shows reasonable pid values in init, child, and sibling namespaces. Fixes: c2c8089f325e ("ublk: validate ublk server pid") Signed-off-by: Seamus Connor <sconnor@purestorage.com> Reviewed-by: Caleb Sander Mateos <csander@purestorage.com> Reviewed-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions