Skip to content

net_sched: fix a use-after-free for tc actions

Cong Wang netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2net_sched: acquire RTNL in tc_action_net_exit()include/net/act_api.h net/sched/act_api.c+4 -00 replies
2/2net_sched: hold netns refcnt for each actioninclude/net/act_api.h net/sched/act_api.c net/sched/act_bpf.c +15 more+22 -181 reply

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchLucas Bates
1/2T-b
2/2T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Patch net 0/2] net_sched: fix a use-after-free for tc actions

This patchset fixes a use-after-free reported by Lucas and closes potential races too.

Please see each patch for details.

Cc Jamal Hadi Salim <[email protected]>
Cc Jiri Pirko <[email protected]>

Cong Wang (2):
net_sched: acquire RTNL in tc_action_net_exit()
net_sched: hold netns refcnt for each action

 include/net/act_api.h      | 6 +++++-
 net/sched/act_api.c        | 4 ++++
 net/sched/act_bpf.c        | 2 +-
 net/sched/act_connmark.c   | 2 +-
 net/sched/act_csum.c       | 2 +-
 net/sched/act_gact.c       | 2 +-
 net/sched/act_ife.c        | 2 +-
 net/sched/act_ipt.c        | 4 ++--
 net/sched/act_mirred.c     | 2 +-
 net/sched/act_nat.c        | 2 +-
 net/sched/act_pedit.c      | 2 +-
 net/sched/act_police.c     | 2 +-
 net/sched/act_sample.c     | 2 +-
 net/sched/act_simple.c     | 2 +-
 net/sched/act_skbedit.c    | 2 +-
 net/sched/act_skbmod.c     | 2 +-
 net/sched/act_tunnel_key.c | 2 +-
 net/sched/act_vlan.c       | 2 +-
 18 files changed, 26 insertions(+), 18 deletions(-)
Signature · 1 line
2.13.0