From 77df4e341d83d788a4dc4ba735db87fabb5c0fed Mon Sep 17 00:00:00 2001 From: Seung-Woo Kim Date: Fri, 2 Aug 2024 12:05:12 +0900 Subject: [PATCH] arm: Blacklist ffi_call_int for ASan and HWASan build The same dynamic-stack-buffer-overflow issues are reported from armv7l asan runtime. So, port the commit bdea00c1c77d to arm also. Change-Id: I3334c64961c69a69f19bc0e527eafcc8efe0293d Ref: https://github.com/libffi/libffi/issues/255 Ref: https://git.tizen.org/cgit/platform/upstream/libffi/commit/?id=bdea00c1c77d Signed-off-by: Seung-Woo Kim --- src/arm/ffi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/arm/ffi.c b/src/arm/ffi.c index 593ab4d..b51bbff 100644 --- a/src/arm/ffi.c +++ b/src/arm/ffi.c @@ -358,6 +358,9 @@ extern void ffi_call_VFP (void *vfp_space, struct call_frame *, void (*fn) (void), unsigned vfp_used) FFI_HIDDEN; static void +#if defined(__SANITIZE_ADDRESS__) || defined(__SANITIZE_HWADDRESS__) +__attribute__((__noinline__,__no_sanitize_address__,__no_sanitize_hwaddress__)) +#endif ffi_call_int (ffi_cif * cif, void (*fn) (void), void *rvalue, void **avalue, void *closure) { -- 2.34.1