openwrt/target/linux/generic/hack-4.14
HsiuWen Yen d344591e72 netfilter: fix crash in flow offload by adding netns support
Commit fcb41decf6 ("config: enable some useful features on
!SMALL_FLASH devices") enabled netns, which in turn lead to the crash in
the flow offload target.

When the flow offloading framework intends to delete a flow from the
hardware table, it is necessary to retrieve the namespace from
nf_flowtable->ft_net. However, no one ever wrote the namespace into
nf_flowtable->ft_net in advance. So the framework will mistakenly use a
NULL namespace to execute dev_get_by_index_rcu(net, ifindex), leading to
the kernel panic.

Ref: FS#2321
Fixes: fcb41decf6 ("config: enable some useful features on !SMALL_FLASH devices")
Tested-by: Simon Tretter <simon@mediaarchitectu.re>
Signed-off-by: HsiuWen Yen <y.hsiuwen@gmail.com>
[merged patch into offload patch, fix for 4.19, SOB fix, commit subj/msg touches]
Signed-off-by: Petr Štetiar <ynezz@true.cz>
2019-06-24 18:34:04 +02:00
..
204-module_strip.patch kernel: bump 4.14 to 4.14.99 2019-02-14 16:45:01 +01:00
207-disable-modorder.patch kernel: bump 4.14 to 4.14.114 2019-05-02 12:59:26 +02:00
210-darwin_scripts_include.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
211-host_tools_portability.patch kernel: bump 4.14 to 4.14.59 2018-07-31 05:11:07 +03:00
212-byteshift_portability.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
214-spidev_h_portability.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
220-gc_sections.patch kernel: bump 4.14 to 4.14.114 2019-05-02 12:59:26 +02:00
221-module_exports.patch kernel: bump 4.14 to 4.14.86 2018-12-10 11:48:44 +01:00
230-openwrt_lzma_options.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
250-netfilter_depends.patch kernel: generic: Fix nftables inet table breakage 2018-09-22 21:20:55 +02:00
251-sound_kconfig.patch kernel: generic: Fix nftables inet table breakage 2018-09-22 21:20:55 +02:00
259-regmap_dynamic.patch kernel: Build: Split kmod-regmap 2019-01-27 00:16:13 +01:00
260-crypto_test_dependencies.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
280-rfkill-stubs.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
300-MIPS-r4k_cache-use-more-efficient-cache-blast.patch kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
301-mips_image_cmdline_hack.patch kernel: bump 4.14 to 4.14.96 2019-01-28 18:17:32 +01:00
321-powerpc_crtsavres_prereq.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
400-mt29f_spinand-fix-memleak.patch kernel: mt29f_spinand: fix memory leak during page program 2019-06-15 19:55:32 +02:00
531-debloat_lzma.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
640-bridge-only-accept-EAP-locally.patch kernel: replace bridge port isolate hack with upstream patch backport on 4.14 2018-07-11 20:59:05 +02:00
647-netfilter-flow-acct.patch generic: add flow_offload accounting 2018-08-28 11:30:39 +02:00
650-netfilter-add-xt_OFFLOAD-target.patch netfilter: fix crash in flow offload by adding netns support 2019-06-24 18:34:04 +02:00
651-wireless_mesh_header.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
660-fq_codel_defaults.patch kernel: merge a pending fix for HFSC warnings/slowdowns (fixes FS#1136) 2018-03-11 08:58:53 +01:00
661-use_fq_codel_by_default.patch kernel: bump 4.14 to 4.14.81 2018-11-14 16:27:43 +01:00
662-remove_pfifo_fast.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
700-swconfig_switch_drivers.patch kernel: Move modifications of b53.h into patch 2018-12-15 12:50:06 +01:00
702-phy_add_aneg_done_function.patch kernel: bump 4.14 to 4.14.93 2019-01-14 02:20:40 +02:00
721-phy_packets.patch kernel: bump 4.14 to 4.14.122 2019-06-03 12:40:53 +02:00
773-bgmac-add-srab-switch.patch kernel: bump 4.14 to 4.14.48 2018-06-05 22:54:00 +03:00
835-misc-owl_loader.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
901-debloat_sock_diag.patch kernel: bump 4.14 to 4.14.96 2019-01-28 18:17:32 +01:00
902-debloat_proc.patch kernel: bump 4.14 to 4.14.127 2019-06-18 14:47:53 +02:00
904-debloat_dma_buf.patch kernel: bump 4.14 to 4.14.54 2018-07-11 16:02:24 +02:00
910-kobject_uevent.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
911-kobject_add_broadcast_uevent.patch kernel: bump 4.14 to 4.14.123 2019-06-03 17:00:29 +02:00
921-always-create-console-node-in-initramfs.patch kernel: generic: Add kernel 4.14 support 2017-12-16 22:11:19 +01:00
930-crashlog.patch kernel: bump 4.14 to 4.14.128 2019-06-20 15:48:48 +02:00