Re: [PATCH v1] LoongArch: Handle special PC in unwind_next_frame()

From: Tiezhu Yang
Date: Wed Nov 26 2025 - 00:36:32 EST


On 2025/11/25 下午5:05, Huacai Chen wrote:
On Tue, Nov 25, 2025 at 4:54 PM Tiezhu Yang <yangtiezhu@xxxxxxxxxxx> wrote:

...

They are different code paths, the current path is "goto err", it will
set state->error as true, then arch_stack_walk_reliable() will return
-EINVAL.

With this patch, the code path is "goto end" for this case, it will
not set state->error as true, then arch_stack_walk_reliable() will
return 0.
Then can we replace "goto err" with "goto end" at __kernel_text_address()?

No, this "goto err" path is useful to indicate that there is
something wrong.

Thanks,
Tiezhu