
26 Sep
2018
26 Sep
'18
11:18 p.m.
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@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