[PATCH v6 12/13] riscv/kprobe: Move exception related symbols to .kprobe_blacklist

Björn Töpel bjorn at kernel.org
Wed Feb 1 05:30:45 PST 2023


Chen Guokai <chenguokai17 at mails.ucas.ac.cn> writes:

> From: Liao Chang <liaochang1 at huawei.com>
>
> Due to the generic exception entry and exit code is part of the critical
> path for kprobe breakpoint and uprobe syscall entry, set a kprobe on the
> assembly symbols in entry.S result in kernel stack overflow crash, hence
> it has to explicitly blacklist it, requiring a new _ASM_NOKPROBE() asm
> helper.
>
> Signed-off-by: Liao Chang <liaochang1 at huawei.com>

Reviewed-by: Björn Töpel <bjorn at kernel.org>



More information about the linux-riscv mailing list