diff options
| author | Cong Wang <[email protected]> | 2017-11-01 17:23:50 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-11-03 01:30:38 +0000 |
| commit | ceffcc5e254b450e6159f173e4538215cebf1b59 (patch) | |
| tree | e774e0c77b5f8a2979794ed08cc93b6365852114 /net/ipv4/tcp_output.c | |
| parent | net_sched: acquire RTNL in tc_action_net_exit() (diff) | |
| download | kernel-ceffcc5e254b450e6159f173e4538215cebf1b59.tar.gz kernel-ceffcc5e254b450e6159f173e4538215cebf1b59.zip | |
net_sched: hold netns refcnt for each action
TC actions have been destroyed asynchronously for a long time,
previously in a RCU callback and now in a workqueue. If we
don't hold a refcnt for its netns, we could use the per netns
data structure, struct tcf_idrinfo, after it has been freed by
netns workqueue.
Hold refcnt to ensure netns destroy happens after all actions
are gone.
Fixes: ddf97ccdd7cb ("net_sched: add network namespace support for tc actions")
Reported-by: Lucas Bates <[email protected]>
Tested-by: Lucas Bates <[email protected]>
Cc: Jamal Hadi Salim <[email protected]>
Cc: Jiri Pirko <[email protected]>
Signed-off-by: Cong Wang <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
