From: Erhard Furtner <erhard_f@mailbox.org>
To: Rob Herring <robh@kernel.org>
Cc: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org
Subject: Re: Several kmemleak reports + "refcount_t: underflow; use-after-free" at boot when OF_UNITTEST + OF_OVERLAY is set (Kernel v6.6-rc6, PowerMac G5 11,2)
Date: Tue, 31 Oct 2023 17:46:46 +0100 [thread overview]
Message-ID: <20231031174646.3d4e1447@yea> (raw)
In-Reply-To: <CAL_Jsq+qcc7ERmGAywp=7oGT=XGoBsMO839_jtzxeNcCN-dS_A@mail.gmail.com>
On Mon, 30 Oct 2023 11:26:48 -0500
Rob Herring <robh@kernel.org> wrote:
> The test tells you to expect a use-after-free...
>
> > ---[ end trace <<int>> ]--- ### dt-test ### pass of_unittest_lifecycle():3209
> > ------------[ cut here ]------------
> > refcount_t: underflow; use-after-free.
>
> Then you get a use-after-free. Looks like it is working as designed.
>
> I believe it's the same with kmemleak.
>
> Note that running DT unittests also taints the kernel. That's because
> they are not meant to be run on a production system.
>
> Rob
My bad, did not realize this is actually intended behaviour... Sorry for the noise!
Regards,
Erhard
prev parent reply other threads:[~2023-10-31 16:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-18 21:38 Several kmemleak reports + "refcount_t: underflow; use-after-free" at boot when OF_UNITTEST + OF_OVERLAY is set (Kernel v6.6-rc6, PowerMac G5 11,2) Erhard Furtner
2023-10-29 15:40 ` Erhard Furtner
2023-10-30 16:26 ` Rob Herring
2023-10-31 16:46 ` Erhard Furtner [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=20231031174646.3d4e1447@yea \
--to=erhard_f@mailbox.org \
--cc=devicetree@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=robh@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;
as well as URLs for NNTP newsgroup(s).