linux-stable/arch/csky
Liao Chang 3645ed60ac csky/kprobe: reclaim insn_slot on kprobe unregistration
[ Upstream commit a2310c74d4 ]

On kprobe registration kernel allocate one insn_slot for new kprobe,
but it forget to reclaim the insn_slot on unregistration, leading to a
potential leakage.

Reported-by: Chen Guokai <chenguokai17@mails.ucas.ac.cn>
Reviewed-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Liao Chang <liaochang1@huawei.com>
Signed-off-by: Guo Ren <guoren@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-08-25 11:40:38 +02:00
..
abiv1 mm: remove flush_kernel_dcache_page 2021-09-03 09:58:13 -07:00
abiv2 csky: Fixup compile error 2021-02-27 22:04:14 +08:00
boot treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
configs csky: Minimize defconfig to support buildroot config.fragment 2020-02-21 15:43:25 +08:00
include uaccess: fix integer overflow on access_ok() 2022-03-28 09:58:45 +02:00
kernel csky/kprobe: reclaim insn_slot on kprobe unregistration 2022-08-25 11:40:38 +02:00
lib csky: use generic strncpy/strnlen from_user 2021-07-23 14:40:01 +02:00
mm csky: syscache: Fixup duplicate cache flush 2021-07-04 17:39:54 +08:00
Kbuild kbuild: require all architectures to have arch/$(SRCARCH)/Kbuild 2021-05-26 23:10:37 +09:00
Kconfig csky: Make HAVE_TCM depend on !COMPILE_TEST 2021-10-16 07:20:12 +08:00
Kconfig.debug treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Kconfig.platforms csky/Kconfig: Add Kconfig.platforms to support some drivers 2020-02-21 15:43:24 +08:00
Makefile csky: Fixup calltrace panic 2020-05-13 17:55:06 +08:00