[U-Boot] [PATCH v2] sandbox: Fix set_working_fdt_addr users

Simon Glass sjg at chromium.org
Thu Sep 27 13:41:39 UTC 2018


On 26 September 2018 at 06:02, Alexander Graf <agraf at suse.de> wrote:
> When running sandbox with the new pointer sanitization we just recently
> introduced, we're running into a case with FIT images where we end up
> interpreting pointers as addresses.
>
> What happened is that most callers of set_working_fdt_addr() simply
> convert pointers into addresses without taking into account that they
> might be 2 separate address spaces. Fix the callers up to map their
> pointers into addresses.
>
> This makes sandbox tests pass for me again.
>
> Signed-off-by: Alexander Graf <agraf at suse.de>
>
> ---
>
> v1 -> v2:
>
>   - convert callers instead of API, as the main user of
>     set_working_fdt_addr() is address based
> ---
>  common/bootm.c     | 2 +-
>  common/image-fdt.c | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list