From: Markus Elfring <Markus.Elfring@web.de>
To: Triet Hoang <triet.hoang.dev@gmail.com>,
linux-perf-users@vger.kernel.org,
Arnaldo Carvalho de Melo <acme@redhat.com>,
Ian Rogers <irogers@google.com>
Cc: sashiko-bot@kernel.org, sashiko-reviews@lists.linux.dev,
LKML <linux-kernel@vger.kernel.org>,
kernel-janitors@vger.kernel.org,
"Aditya Bodkhe" <aditya.b1@linux.ibm.com>,
"Adrian Hunter" <adrian.hunter@intel.com>,
"Albert Ou" <aou@eecs.berkeley.edu>,
"Alexandre Ghiti" <alex@ghiti.fr>,
"Andi Kleen" <ak@linux.intel.com>,
"Athira Rajeev" <atrajeev@linux.ibm.com>,
"Chun-Tse Shao" <ctshao@google.com>,
"Dmitriy Vyukov" <dvyukov@google.com>,
"Dr. David Alan Gilbert" <linux@treblig.org>,
"Guo Ren" <guoren@kernel.org>, "Haibo Xu" <haibo1.xu@intel.com>,
"Howard Chu" <howardchu95@gmail.com>,
"Ingo Molnar" <mingo@redhat.com>,
"James Clark" <james.clark@linaro.org>,
"Jiri Olsa" <jolsa@kernel.org>,
"John Garry" <john.g.garry@oracle.com>,
"Krzysztof Łopatowski" <krzysztof.m.lopatowski@gmail.com>,
"Leo Yan" <leo.yan@linux.dev>, "Mark Wielaard" <mark@klomp.org>,
"Namhyung Kim" <namhyung@kernel.org>,
"Palmer Dabbelt" <palmer@dabbelt.com>,
"Paul Walmsley" <pjw@kernel.org>,
"Peter Zijlstra" <peterz@infradead.org>,
"Sergei Trofimovich" <slyich@gmail.com>,
"Shimin Guo" <shimin.guo@skydio.com>,
"Stephen Brennan" <stephen.s.brennan@oracle.com>,
"Thomas Falcon" <thomas.falcon@intel.com>,
"Will Deacon" <will@kernel.org>
Subject: Re: [PATCH v2] perf unwind: handle allocation failure in libdw__get_entries()
Date: Tue, 18 Aug 2026 21:24:13 +0200 [thread overview]
Message-ID: <4cd44a8c-2eee-48a7-86fa-314169973441@web.de> (raw)
In-Reply-To: <20260818144837.741469-1-triet.hoang.dev@gmail.com>
> 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
prev parent reply other threads:[~2026-08-18 19:26 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-18 14:24 [PATCH] perf unwind: handle allocation failure in libdw__get_entries() Triet Hoang
2026-08-18 14:29 ` sashiko-bot
2026-08-18 14:48 ` [PATCH v2] " Triet Hoang
2026-08-18 14:59 ` sashiko-bot
2026-08-18 19:24 ` Markus Elfring [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4cd44a8c-2eee-48a7-86fa-314169973441@web.de \
--to=markus.elfring@web.de \
--cc=acme@redhat.com \
--cc=aditya.b1@linux.ibm.com \
--cc=adrian.hunter@intel.com \
--cc=ak@linux.intel.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=atrajeev@linux.ibm.com \
--cc=ctshao@google.com \
--cc=dvyukov@google.com \
--cc=guoren@kernel.org \
--cc=haibo1.xu@intel.com \
--cc=howardchu95@gmail.com \
--cc=irogers@google.com \
--cc=james.clark@linaro.org \
--cc=john.g.garry@oracle.com \
--cc=jolsa@kernel.org \
--cc=kernel-janitors@vger.kernel.org \
--cc=krzysztof.m.lopatowski@gmail.com \
--cc=leo.yan@linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=linux@treblig.org \
--cc=mark@klomp.org \
--cc=mingo@redhat.com \
--cc=namhyung@kernel.org \
--cc=palmer@dabbelt.com \
--cc=peterz@infradead.org \
--cc=pjw@kernel.org \
--cc=sashiko-bot@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=shimin.guo@skydio.com \
--cc=slyich@gmail.com \
--cc=stephen.s.brennan@oracle.com \
--cc=thomas.falcon@intel.com \
--cc=triet.hoang.dev@gmail.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox