android_kernel_motorola_sm6375/net/ieee802154
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Eric Dumazet 1d6119baf0 net: fix percpu memory leaks
This patch fixes following problems :

1) percpu_counter_init() can return an error, therefore
  init_frag_mem_limit() must propagate this error so that
  inet_frags_init_net() can do the same up to its callers.

2) If ip[46]_frags_ns_ctl_register() fail, we must unwind
   properly and free the percpu_counter.

Without this fix, we leave freed object in percpu_counters
global list (if CONFIG_HOTPLUG_CPU) leading to crashes.

This bug was detected by KASAN and syzkaller tool
(http://github.com/google/syzkaller)

Fixes: 6d7b857d54 ("net: use lib/percpu_counter API for fragmentation mem accounting")
Signed-off-by: Eric Dumazet <[email protected]>
Reported-by: Dmitry Vyukov <[email protected]>
Cc: Hannes Frederic Sowa <[email protected]>
Cc: Jesper Dangaard Brouer <[email protected]>
Acked-by: Hannes Frederic Sowa <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
2015-11-02 22:47:14 -05:00
..
6lowpan net: fix percpu memory leaks 2015-11-02 22:47:14 -05:00
core.c
core.h
header_ops.c
ieee802154.h
Kconfig
Makefile
netlink.c
nl-mac.c
nl-phy.c
nl802154.c nl802154: Missing return in nl802154_add_llsec_key() 2015-10-02 23:34:37 +02:00
nl802154.h
nl_policy.c
rdev-ops.h
socket.c
sysfs.c
sysfs.h
trace.c
trace.h