]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/3.19.2/flowcache-fix-kernel-panic-in-flow_cache_flush_task.patch
4.14-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 3.19.2 / flowcache-fix-kernel-panic-in-flow_cache_flush_task.patch
1 From foo@baz Wed Mar 11 11:44:33 CET 2015
2 From: Miroslav Urbanek <mu@miroslavurbanek.com>
3 Date: Thu, 5 Feb 2015 16:36:50 +0100
4 Subject: flowcache: Fix kernel panic in flow_cache_flush_task
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 From: Miroslav Urbanek <mu@miroslavurbanek.com>
10
11 [ Upstream commit 233c96fc077d310772375d47522fb444ff546905 ]
12
13 flow_cache_flush_task references a structure member flow_cache_gc_work
14 where it should reference flow_cache_flush_task instead.
15
16 Kernel panic occurs on kernels using IPsec during XFRM garbage
17 collection. The garbage collection interval can be shortened using the
18 following sysctl settings:
19
20 net.ipv4.xfrm4_gc_thresh=4
21 net.ipv6.xfrm6_gc_thresh=4
22
23 With the default settings, our productions servers crash approximately
24 once a week. With the settings above, they crash immediately.
25
26 Fixes: ca925cf1534e ("flowcache: Make flow cache name space aware")
27 Reported-by: Tomáš Charvát <tc@excello.cz>
28 Tested-by: Jan Hejl <jh@excello.cz>
29 Signed-off-by: Miroslav Urbanek <mu@miroslavurbanek.com>
30 Acked-by: Eric Dumazet <edumazet@google.com>
31 Signed-off-by: David S. Miller <davem@davemloft.net>
32 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
33 ---
34 net/core/flow.c | 2 +-
35 1 file changed, 1 insertion(+), 1 deletion(-)
36
37 --- a/net/core/flow.c
38 +++ b/net/core/flow.c
39 @@ -379,7 +379,7 @@ done:
40 static void flow_cache_flush_task(struct work_struct *work)
41 {
42 struct netns_xfrm *xfrm = container_of(work, struct netns_xfrm,
43 - flow_cache_gc_work);
44 + flow_cache_flush_work);
45 struct net *net = container_of(xfrm, struct net, xfrm);
46
47 flow_cache_flush(net);