Searched hist:"466162 e20fbc0f06c390629bd75e352bb047fcc3" (Results 1 – 2 of 2) sorted by relevance
| /optee_os/lib/libutils/isoc/ |
| H A D | bget.c | 466162e20fbc0f06c390629bd75e352bb047fcc3 Tue Apr 12 15:35:25 UTC 2022 Jens Wiklander <jens.wiklander@linaro.org> libutils: refactor heap tagging
Refactors the heap tagging with CFG_CORE_SANITIZE_KADDRESS to use two new hooks maybe_tag_buf() and maybe_untag_buf().
maybe_tag_buf() is called from raw_malloc_return_hook() which is called after bget(). maybe_untag_buf() is called before brel() is called.
This removes some of the local modifications to bget.c.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|
| H A D | bget_malloc.c | 466162e20fbc0f06c390629bd75e352bb047fcc3 Tue Apr 12 15:35:25 UTC 2022 Jens Wiklander <jens.wiklander@linaro.org> libutils: refactor heap tagging
Refactors the heap tagging with CFG_CORE_SANITIZE_KADDRESS to use two new hooks maybe_tag_buf() and maybe_untag_buf().
maybe_tag_buf() is called from raw_malloc_return_hook() which is called after bget(). maybe_untag_buf() is called before brel() is called.
This removes some of the local modifications to bget.c.
Acked-by: Jerome Forissier <jerome.forissier@linaro.org> Acked-by: Etienne Carriere <etienne.carriere@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
|