[DTrace-devel] [PATCH] cg: fix return value of copyin()

Nick Alcock nick.alcock at oracle.com
Mon Feb 20 16:32:38 UTC 2023


On 18 Feb 2023, Kris Van Hees via DTrace-devel outgrape:

> The copyin() function was returning the resolved alloca pointer rather
> than the offset into scratchmem (as it should have).  Now that the
> function is correctly marked as returning an alloca-pointer, it needs
> to return the native representation of an alloca-pointer, i.e. as an
> offset into scratchmem.

Presumably this was invisible before because of the incorrect marking
(except for being more likely to spray verifier failures).

> Signed-off-by: Kris Van Hees <kris.van.hees at oracle.com>

Reviewed-by: Nick Alcock <nick.alcock at oracle.com>

-- 
NULL && (void)



More information about the DTrace-devel mailing list