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

From: Björn Töpel
Date: Wed Feb 01 2023 - 08:31:42 EST


Chen Guokai <chenguokai17@xxxxxxxxxxxxxxxx> writes:

> From: Liao Chang <liaochang1@xxxxxxxxxx>
>
> 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@xxxxxxxxxx>

Reviewed-by: Björn Töpel <bjorn@xxxxxxxxxx>