[PATCH 1/1] cmd: fdt: check fdt address

Simon Glass sjg at chromium.org
Mon Jan 1 23:41:31 CET 2024


Hi Heinrich,

On Sun, Dec 31, 2023 at 9:31 AM Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> On 12/31/23 15:22, Simon Glass wrote:
> > Hi Heinrich,
> >
> > On Wed, Dec 20, 2023 at 5:00 PM Heinrich Schuchardt
> > <heinrich.schuchardt at canonical.com> wrote:
> >>
> >> Trying to read a device-tree from an illegal address leads to a crash.
> >>
> >> Check that the parameter passed to 'fdt addr' is within the RAM area and
> >> non-zero.
> >
> > What is the motivation for this patch? Is something crashing? We don't
> > do this with the 'md' command, for example.
>
> QEMU with too little memory was crashing. But maybe we should write an
> explicit warning about too little memory instead.

Probably.

[..]

Regards,
Simon


More information about the U-Boot mailing list