summaryrefslogtreecommitdiff
path: root/block/disk-events.c
diff options
context:
space:
mode:
authorIan Rogers <irogers@google.com>2025-02-28 14:22:58 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-04-10 14:44:31 +0200
commita4c70eb0502dca4a3027645f6e694afb407643b0 (patch)
tree91fa867aaeee02f5ab00e0dff01873fe65d2046d /block/disk-events.c
parent9c40a68b7f97fa487e6c7e67fcf4f846a1f96692 (diff)
downloadlinux-a4c70eb0502dca4a3027645f6e694afb407643b0.tar.gz
linux-a4c70eb0502dca4a3027645f6e694afb407643b0.tar.bz2
linux-a4c70eb0502dca4a3027645f6e694afb407643b0.zip
perf debug: Avoid stack overflow in recursive error message
[ Upstream commit bda840191d2aae3b7cadc3ac21835dcf29487191 ] 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. Reviewed-by: Howard Chu <howardchu95@gmail.com> Signed-off-by: Ian Rogers <irogers@google.com> Reviewed-by: Arnaldo Carvalho de Melo <acme@redhat.com> Link: https://lore.kernel.org/r/20250228222308.626803-2-irogers@google.com Fixes: ec49230cf6dda704 ("perf debug: Expose debug file") Signed-off-by: Namhyung Kim <namhyung@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'block/disk-events.c')
0 files changed, 0 insertions, 0 deletions