mirror of https://gitee.com/openkylin/linux.git
1d6119baf0
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:
|
||
---|---|---|
.. | ||
6lowpan | ||
Kconfig | ||
Makefile | ||
core.c | ||
core.h | ||
header_ops.c | ||
ieee802154.h | ||
netlink.c | ||
nl-mac.c | ||
nl-phy.c | ||
nl802154.c | ||
nl802154.h | ||
nl_policy.c | ||
rdev-ops.h | ||
socket.c | ||
sysfs.c | ||
sysfs.h | ||
trace.c | ||
trace.h |