Re: [PATCH v1 01/11] perf debug: Avoid stack overflow in recursive error message
From: Howard Chu
Date: Thu Feb 27 2025 - 00:40:58 EST
Hi Ian,
On Wed, Jan 8, 2025 at 11:51 PM Ian Rogers <irogers@xxxxxxxxxx> wrote:
>
> In debug_file, pr_warning_once is called on error. As that function
> calls debug_file the function will yield a stack overflow. Switch the
> location of the call so the recursion is avoided.
May I ask how it created the recursion? Too ignorant to understand sorry...
Thanks,
Howard