Files
linux/net/ipv6
Eric Dumazet 8ae8a9f21e inet: frags: call inet_frags_fini() after unregister_pernet_subsys()
[ Upstream commit ae7352d384 ]

Both IPv6 and 6lowpan are calling inet_frags_fini() too soon.

inet_frags_fini() is dismantling a kmem_cache, that might be needed
later when unregister_pernet_subsys() eventually has to remove
frags queues from hash tables and free them.

This fixes potential use-after-free, and is a prereq for the following patch.

Fixes: d4ad4d22e7 ("inet: frags: use kmem_cache for inet_frag_queue")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-01-29 10:24:25 +01:00
..
2016-11-28 16:13:01 -05:00
2017-09-20 08:19:56 +02:00
2016-05-31 14:07:49 -07:00
2016-06-27 15:06:17 -04:00
2015-11-03 10:52:13 -05:00
2016-09-21 10:09:14 +02:00