android_kernel_samsung_a7y1.../net/ieee802154
Eric Dumazet 6c19fd7108 inet: frags: call inet_frags_fini() after unregister_pernet_subsys()
[ Upstream commit ae7352d384a552d8c799c242e74a934809990a71 ]

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: d4ad4d22e7ac ("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-04-07 13:42:09 +02:00
..
6lowpan inet: frags: call inet_frags_fini() after unregister_pernet_subsys() 2020-04-07 13:42:09 +02:00
core.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
core.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
header_ops.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ieee802154.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Kconfig A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
netlink.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nl_policy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nl-mac.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nl-phy.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nl802154.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
nl802154.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
rdev-ops.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
socket.c ieee802154: enforce CAP_NET_RAW for raw sockets 2020-04-07 07:37:35 +02:00
sysfs.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sysfs.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
trace.h A750FXXU4CTBC 2020-03-27 21:51:54 +05:30