aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorParav Pandit <[email protected]>2018-09-05 12:54:23 +0300
committerJason Gunthorpe <[email protected]>2018-09-12 16:32:16 -0600
commitc31d4b2ddf07ba74388cb8799517a7010e3e0c89 (patch)
tree0abba89ab6efdc0f7bcb6f2503650f3f88aad038 /tools/perf/scripts/python
parent307edde8efb75cd39326f0f603c9693a5b2af019 (diff)
RDMA/core: Protect against changing dst->dev during destination resolve
During resolving address process, during route lookup and while performing src address translation in case of loopback mode, hold the rcu lock so that if netdevice is moving to different net namespace, or being unregistered, it can be synchronized with net/core/dev.c, ie change_net_namespace() ->dev_close_many() ->rt6_uncached_list_flush_dev() who would change dst->dev to loopback device of the given net namespace. Therefore, hold the rcu lock and sync with synchronize_net() of change_net_namespace() to ensure that netdevice cannot get freed while dst->dev is being used. Signed-off-by: Parav Pandit <[email protected]> Reviewed-by: Daniel Jurgens <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions