Commit fa196d76 authored by Liao Chang's avatar Liao Chang Committed by Zheng Zengkai
Browse files

csky/kprobe: reclaim insn_slot on kprobe unregistration

stable inclusion
from stable-v5.10.138
commit fa45327d8c52d82a680cbe48f81ff371a4408514
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I60QFD

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=fa45327d8c52d82a680cbe48f81ff371a4408514



--------------------------------

[ 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>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
Reviewed-by: default avatarWei Li <liwei391@huawei.com>
parent d28467c6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment