openwrt/target/linux/generic
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
..
backport-4.9 kernel: bump 4.9 to 4.9.182 2019-06-18 14:47:53 +02:00
backport-4.14 kernel: bump 4.14 to 4.14.129 2019-06-24 16:36:30 +02:00
backport-4.19 kernel: bump 4.19 to 4.19.55 2019-06-24 16:36:30 +02:00
files generic: ar8216: group MIB counters and use two basic ones only by default 2019-05-20 21:17:57 +02:00
hack-4.9 kernel: bump 4.9 to 4.9.183 2019-06-24 16:36:30 +02:00
hack-4.14 netfilter: fix crash in flow offload by adding netns support 2019-06-24 18:34:04 +02:00
hack-4.19 netfilter: fix crash in flow offload by adding netns support 2019-06-24 18:34:04 +02:00
image treewide: replace nbd@openwrt.org with nbd@nbd.name 2016-06-07 08:58:42 +02:00
other-files kernel: move initramfs's init script out of base-files 2017-04-04 14:06:40 +02:00
pending-4.9 kernel: bump 4.9 to 4.9.183 2019-06-24 16:36:30 +02:00
pending-4.14 kernel: bump 4.14 to 4.14.128 2019-06-20 15:48:48 +02:00
pending-4.19 kernel: bump 4.19 to 4.19.55 2019-06-24 16:36:30 +02:00
config-4.9 kernel: Remove CONFIG_COMPAT 2019-05-11 17:15:41 +02:00
config-4.14 kernel: package Broadcom BNX2X driver 2019-06-20 20:02:29 +02:00
config-4.19 kernel: package Broadcom BNX2X driver 2019-06-20 20:02:29 +02:00
PATCHES kernel: update PATCHES with a stricter policy 2013-07-09 20:52:07 +00:00