summaryrefslogtreecommitdiffstats
path: root/scripts/subarch.include
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2019-08-15 11:38:29 +0300
committerDoug Ledford <dledford@redhat.com>2019-08-20 13:44:44 -0400
commit60c78668ae50d6b815ead4a62216822a92097125 (patch)
tree654c4222c4f37b1e17beb4d1249bb5bf36358112 /scripts/subarch.include
parentc8b32408b4074232d93e64b6c23b2aa96dde448e (diff)
downloadlinux-60c78668ae50d6b815ead4a62216822a92097125.tar.bz2
RDMA/restrack: Rewrite PID namespace check to be reliable
task_active_pid_ns() is wrong API to check PID namespace because it posses some restrictions and return PID namespace where the process was allocated. It created mismatches with current namespace, which can be different. Rewrite whole rdma_is_visible_in_pid_ns() logic to provide reliable results without any relation to allocated PID namespace. Fixes: 8be565e65fa9 ("RDMA/nldev: Factor out the PID namespace check") Fixes: 6a6c306a09b5 ("RDMA/restrack: Make is_visible_in_pid_ns() as an API") Reviewed-by: Mark Zhang <markz@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Link: https://lore.kernel.org/r/20190815083834.9245-4-leon@kernel.org Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'scripts/subarch.include')
0 files changed, 0 insertions, 0 deletions