mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-03-14 23:09:45 +01:00
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>
|
||
|---|---|---|
| .. | ||
| 010-Kbuild-don-t-hardcode-path-to-awk-in-scripts-ld-vers.patch | ||
| 011-kbuild-export-SUBARCH.patch | ||
| 020-backport_netfilter_rtcache.patch | ||
| 047-v4.21-mtd-keep-original-flags-for-every-struct-mtd_info.patch | ||
| 048-v4.21-mtd-improve-calculating-partition-boundaries-when-ch.patch | ||
| 080-v5.1-0001-bcma-keep-a-direct-pointer-to-the-struct-device.patch | ||
| 080-v5.1-0002-bcma-use-dev_-printing-functions.patch | ||
| 095-Allow-class-e-address-assignment-via-ifconfig-ioctl.patch | ||
| 101-arm-cns3xxx-use-actual-size-reads-for-PCIe.patch | ||
| 200-v5.2-usb-dwc2-Set-lpm-mode-parameters-depend-on-HW-configuration.patch | ||
| 343-netfilter-nft_flow_offload-handle-netdevice-events-f.patch | ||
| 366-netfilter-nf_flow_table-clean-up-and-fix-dst-handlin.patch | ||
| 370-netfilter-nf_flow_table-fix-offloaded-connection-tim.patch | ||
| 371-netfilter-nf_flow_table-fix-up-ct-state-of-flows-aft.patch | ||
| 380-v5.3-net-sched-Introduce-act_ctinfo-action.patch | ||
| 390-v5.3-net-sched-fix-action-ipt-crash.patch | ||
| 450-v5.0-mtd-spinand-add-support-for-GigaDevice-GD5FxGQ4xA.patch | ||
| 451-v5.1-mtd-spinand-Add-support-for-GigaDevice-GD5F1GQ4UExxG.patch | ||
| 460-v5.0-mtd-spi-nor-Add-support-for-mx25u12835f.patch | ||
| 500-v4.20-ubifs-Fix-default-compression-selection-in-ubifs.patch | ||