From: Madhavan Srinivasan <maddy@linux.ibm.com>
To: Hyunjung Ko <hj351016@gmail.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Ritesh Harjani <ritesh.list@gmail.com>,
linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH] powerpc/papr_scm: initialise metadata_size before reading it
Date: Mon, 30 Nov 2026 17:56:25 +0530 [thread overview]
Message-ID: <179604151698.510846.3688813035745786379.b4-ty@linux.ibm.com> (raw)
In-Reply-To: <20261119034745.1460361-1-hj351016@gmail.com>
On Thu, 19 Nov 2026 12:47:45 +0900, Hyunjung Ko wrote:
> papr_scm_probe() reads "ibm,metadata-size" into metadata_size without
> checking the return value, and the property is optional, as the comment
> right above the call says. of_property_read_u32() only writes the output
> when it can decode a value, so for a device tree without that property
> p->metadata_size is set from an uninitialised stack value.
>
> p->metadata_size is the bound for the metadata get/set commands:
>
> [...]
Applied to powerpc/next.
[1/1] powerpc/papr_scm: initialise metadata_size before reading it
https://git.kernel.org/powerpc/c/cf5c56b7b11bec941befd913fbb0732d1d227db3
cheers
prev parent reply other threads:[~2026-11-30 12:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 3:47 Hyunjung Ko
2026-11-20 4:09 ` Ritesh Harjani
2026-11-30 12:26 ` Madhavan Srinivasan [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=179604151698.510846.3688813035745786379.b4-ty@linux.ibm.com \
--to=maddy@linux.ibm.com \
--cc=hj351016@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=ritesh.list@gmail.com \
--cc=stable@vger.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
all inboxes | Powered by JetHome®