aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
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 /tools/perf/scripts/python/bin
parentblock: Fix an error path in disk_update_zone_resources() (diff)
downloadlinux-47bdf1d29caec7207b7f112230055db36602dfc0.tar.gz
linux-47bdf1d29caec7207b7f112230055db36602dfc0.zip
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 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions