From: Paul Cercueil <paul@crapouillou.net>
To: Marek Szyprowski <m.szyprowski@samsung.com>,
Christoph Hellwig <hch@lst.de>
Cc: linux-kernel <linux-kernel@vger.kernel.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: of_reserved_mem_device_init() prints kernel memory in dmesg
Date: Sun, 27 Nov 2022 22:28:41 +0000 [thread overview]
Message-ID: <TF21MR.NSQQ6SJI3CJ7@crapouillou.net> (raw)
Hi Christoph, Marek,
Here's what I get in dmesg on a 6.1-rc6 kernel:
OF: fdt: Reserved memory: reserved region for node
'video-memory@1f00000': base 0x01f00000, size 1 MiB
OF: reserved mem: initialized node video-memory@1f00000, compatible id
shared-dma-pool
ingenic-drm 13050000.lcd-controller: assigned reserved memory node
<garbage data...>
I would *think* it's because the name is obtained using fdt_get_name()
in fdt_scan_reserved_mem(), and the pointer becomes invalid as soon as
the FDT is freed (is it freed?).
Not sure how to fix that myself, I tried to kstrdup(uname) in
fdt_reserved_mem_save_node(), but it gives me a NULL pointer, probably
too early in the boot process?
Cheers,
-Paul
reply other threads:[~2022-11-27 22:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=TF21MR.NSQQ6SJI3CJ7@crapouillou.net \
--to=paul@crapouillou.net \
--cc=hch@lst.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=m.szyprowski@samsung.com \
/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