linux/drivers/block
Seamus Connor 47bdf1d29c 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: c2c8089f32 ("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>
2026-01-21 07:46:14 -07:00
..
aoe
drbd
mtip32xx
null_blk null_blk: fix kmemleak by releasing references to fault configfs items 2026-01-13 07:24:37 -07:00
rnbd rnbd-clt: fix refcount underflow in device unmap path 2026-01-15 07:22:09 -07:00
rnull
xen-blkback
zram
Kconfig
Makefile
amiflop.c
ataflop.c
brd.c
floppy.c
loop.c loop: add missing bd_abort_claiming in loop_set_status 2026-01-07 08:04:42 -07:00
n64cart.c
nbd.c
ps3disk.c
ps3vram.c
rbd.c
rbd_types.h
sunvdc.c
swim.c
swim3.c
swim_asm.S
ublk_drv.c ublk: fix ublksrv pid handling for pid namespaces 2026-01-21 07:46:14 -07:00
virtio_blk.c
xen-blkfront.c
z2ram.c
zloop.c zloop: use READ_ONCE() to read lo->lo_state in queue_rq path 2025-12-15 09:32:42 -07:00