aboutsummaryrefslogtreecommitdiffstats
path: root/include/verbose.mk
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2019-08-25 05:35:06 -0700
committerHauke Mehrtens <hauke@hauke-m.de>2019-09-08 17:42:39 +0200
commit16985d2aabe3813955bd9dae99cca254198fdd55 (patch)
tree33e2a455d0e7fe22bc26fb9e7ac0da0ab9925581 /include/verbose.mk
parent15292501a1a9ca979b7b92d5187a7b095fe3af66 (diff)
downloadupstream-16985d2aabe3813955bd9dae99cca254198fdd55.tar.gz
upstream-16985d2aabe3813955bd9dae99cca254198fdd55.tar.bz2
upstream-16985d2aabe3813955bd9dae99cca254198fdd55.zip
kernel: net_sched: fix a NULL pointer deref in ipt action
The net pointer in struct xt_tgdtor_param is not explicitly initialized therefore is still NULL when dereferencing it. So we have to find a way to pass the correct net pointer to ipt_destroy_target(). The best way I find is just saving the net pointer inside the per netns struct tcf_idrinfo, which could make this patch smaller. Fixes: 0c66dc1ea3f0 ("netfilter: conntrack: register hooks in netns when needed by ruleset") Reported-and-tested-by: Tony Ambardar <itugrok@xxxxxxxxx> Cc: Jamal Hadi Salim <jhs@xxxxxxxxxxxx> Cc: Jiri Pirko <jiri@xxxxxxxxxxx> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> [Backport for kernel v4.19 and v4.14] [Bug Link: https://bugzilla.kernel.org/show_bug.cgi?id=204681] Signed-off-by: Tony Ambardar <itugrok@yahoo.com> (cherry picked from commit 7735cce0c5c306bd9eea20ca2805e4a492c02be9)
Diffstat (limited to 'include/verbose.mk')
0 files changed, 0 insertions, 0 deletions