[U-Boot] [PATCH 1/1] sandbox: fix phys_to_virt()

Alexander Graf agraf at suse.de
Wed Sep 26 21:18:26 UTC 2018



On 26.09.18 07:12, Heinrich Schuchardt wrote:
> Allow for pointers not created by map_to_sysmem().
> 
> This fixes the fit image and vboot test.
> 
> Fixes: 8b79c294ec57 ("sandbox: Enhance map_to_sysmem() to handle foreign
> pointers")
> Signed-off-by: Heinrich Schuchardt <xypron.glpk at gmx.de>

Unfortunately I'm afraid this is the wrong approach; we should fix the
users of the mapping API instead and ensure that "addresses" are either
tokens to host memory or inside the sandbox address range.

I've sent an alternative fix that does this. But thanks for your patch
nevertheless - it definitely helped to filter down on what the problem was!


Alex


More information about the U-Boot mailing list