-
Notifications
You must be signed in to change notification settings - Fork 0
ublk: fix ublksrv pid handling for pid namespaces #477
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: linus-master_base
Are you sure you want to change the base?
Conversation
|
Upstream branch: 623fb99 |
f962a4d to
06634b5
Compare
|
Upstream branch: b543459 |
bb77e83 to
8760b36
Compare
06634b5 to
8a473ad
Compare
|
Upstream branch: 944aacb |
8760b36 to
df515cc
Compare
8a473ad to
fa94b37
Compare
|
Upstream branch: 944aacb |
df515cc to
00d934b
Compare
fa94b37 to
41a5848
Compare
|
Upstream branch: 6c79021 |
00d934b to
b4dbc17
Compare
41a5848 to
30680e5
Compare
|
Upstream branch: a66191c |
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: d37a224fc119 ("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>
b4dbc17 to
de0bdb6
Compare
Pull request for series with
subject: ublk: fix ublksrv pid handling for pid namespaces
version: 2
url: https://patchwork.kernel.org/project/linux-block/list/?series=1041446