arm: Blacklist ffi_call_int for ASan and HWASan build 15/315515/1 accepted/tizen_9.0_base accepted/tizen_base_asan tizen_9.0_base accepted/tizen/9.0/base/20241030.075921 accepted/tizen/base/20240805.062121 accepted/tizen/base/asan/20240806.231328 accepted/tizen/base/toolchain/20241004.030046 accepted/tizen/base/x/20240822.004147 accepted/tizen/base/x/asan/20241010.014111 tizen_9.0_m2_release
authorSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 2 Aug 2024 03:05:12 +0000 (12:05 +0900)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Fri, 2 Aug 2024 03:35:01 +0000 (12:35 +0900)
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 <sw0312.kim@samsung.com>
src/arm/ffi.c

index 593ab4d48b8b003f606b1f795284823420656d35..b51bbfffad8ca1a99b3f521c4ce8667e123a4008 100644 (file)
@@ -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)
 {