Skip to content
Commit e0cd4d17 authored by Liao Chang's avatar Liao Chang Committed by Greg Kroah-Hartman
Browse files

csky/kprobe: reclaim insn_slot on kprobe unregistration



[ Upstream commit a2310c74 ]

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: default avatarChen Guokai <chenguokai17@mails.ucas.ac.cn>
Reviewed-by: default avatarMasami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: default avatarLiao Chang <liaochang1@huawei.com>
Signed-off-by: default avatarGuo Ren <guoren@kernel.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 0a5e3683
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment