You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openwrt/target/linux/generic
Cong Wang 7735cce0c5 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>
5 years ago
..
backport-4.9 kernel: bump 4.9 to 4.9.190 5 years ago
backport-4.14 kernel: net_sched: fix a NULL pointer deref in ipt action 5 years ago
backport-4.19 kernel: net_sched: fix a NULL pointer deref in ipt action 5 years ago
files kernel: mtdsplit_uimage: add support for okli image 5 years ago
hack-4.9 kernel: add disable_eap_hack sysfs attribute 5 years ago
hack-4.14 kernel: add disable_eap_hack sysfs attribute 5 years ago
hack-4.19 kernel: add disable_eap_hack sysfs attribute 5 years ago
image treewide: replace nbd@openwrt.org with nbd@nbd.name 8 years ago
other-files kernel: move initramfs's init script out of base-files 7 years ago
pending-4.9 kernel: bump 4.9 to 4.9.190 5 years ago
pending-4.14 kernel: bump 4.14 to 4.14.140 5 years ago
pending-4.19 kernel: bump 4.19 to 4.19.68 5 years ago
PATCHES kernel: update PATCHES with a stricter policy 11 years ago
config-4.9 kernel: move crypto-arc4 into a module 5 years ago
config-4.14 kernel: move crypto-arc4 into a module 5 years ago
config-4.19 kernel: move crypto-arc4 into a module 5 years ago