Liao Chang fa45327d8c csky/kprobe: reclaim insn_slot on kprobe unregistration
[ Upstream commit a2310c74d418deca0f1d749c45f1f43162510f51 ]

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:38:16 +02:00
..
2020-08-01 08:17:51 +00:00
2018-10-26 00:54:22 +08:00
2020-05-13 17:55:06 +08:00
2018-10-26 00:54:24 +08:00
2021-10-20 11:44:58 +02:00
2018-10-25 23:36:19 +08:00
2018-10-25 23:36:19 +08:00
2021-12-14 11:32:45 +01:00