Liao Chang e0cd4d17ce 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:45:46 +02:00
..
2022-02-25 09:36:06 +01:00
2022-04-06 22:37:58 +08:00
2022-05-19 19:30:30 +02:00
2022-03-28 17:29:53 -07:00
2021-10-20 13:37:24 -05:00
2018-10-25 23:36:19 +08:00
2018-10-25 23:36:19 +08:00