* Re: [PATCH v2] perf unwind: handle allocation failure in libdw__get_entries()
[not found] <20260818144837.741469-1-triet.hoang.dev@gmail.com>
@ 2026-08-18 19:24 ` Markus Elfring
0 siblings, 0 replies; only message in thread
From: Markus Elfring @ 2026-08-18 19:24 UTC (permalink / raw)
To: Triet Hoang, linux-perf-users, Arnaldo Carvalho de Melo, Ian Rogers
Cc: sashiko-bot, sashiko-reviews, LKML, kernel-janitors,
Aditya Bodkhe, Adrian Hunter, Albert Ou, Alexandre Ghiti,
Andi Kleen, Athira Rajeev, Chun-Tse Shao, Dmitriy Vyukov,
Dr. David Alan Gilbert, Guo Ren, Haibo Xu, Howard Chu,
Ingo Molnar, James Clark, Jiri Olsa, John Garry,
Krzysztof Łopatowski, Leo Yan, Mark Wielaard, Namhyung Kim,
Palmer Dabbelt, Paul Walmsley, Peter Zijlstra,
Sergei Trofimovich, Shimin Guo, Stephen Brennan, Thomas Falcon,
Will Deacon
> Check the return value of zalloc() before dereferencing the allocated
> dwfl_ui_ti structure.
>
> Return -ENOMEM when the allocation fails to avoid a NULL pointer
> dereference.
How do you think about to add any tags (like “Fixes” and “Cc”) accordingly?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v7.2#n145
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/stable-kernel-rules.rst?h=v7.2#n34
https://elixir.bootlin.com/linux/v7.2-rc7/source/tools/perf/util/unwind-libdw.c#L342-L447
Regards,
Markus
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-18 19:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <20260818144837.741469-1-triet.hoang.dev@gmail.com>
2026-08-18 19:24 ` [PATCH v2] perf unwind: handle allocation failure in libdw__get_entries() Markus Elfring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®