linux-stable/arch/csky
Liao Chang e0cd4d17ce 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:45:46 +02:00
..
abiv1 csky: abiv1: Fixup compile error 2022-08-17 15:16:06 +02:00
abiv2 csky: Add C based string functions 2022-04-18 21:23:55 +08:00
boot csky: Remove unused $(dtb-y) from boot/Makefile 2022-05-13 14:45:09 +08:00
configs csky: Minimize defconfig to support buildroot config.fragment 2020-02-21 15:43:25 +08:00
include csky/tlb: Remove tlb_flush() define 2022-07-21 10:50:13 -07:00
kernel csky/kprobe: reclaim insn_slot on kprobe unregistration 2022-08-25 11:45:46 +02:00
lib csky: Add C based string functions 2022-04-18 21:23:55 +08:00
mm csky: Fix versioncheck warnings 2022-04-08 15:05:23 +08:00
Kbuild csky: Move $(core-y) into arch/csky/Kbuild 2022-05-13 15:09:28 +08:00
Kconfig csky: Add C based string functions 2022-04-18 21:23:55 +08:00
Kconfig.debug
Kconfig.platforms csky/Kconfig: Add Kconfig.platforms to support some drivers 2020-02-21 15:43:24 +08:00
Makefile csky: Move $(core-y) into arch/csky/Kbuild 2022-05-13 15:09:28 +08:00