Ying Yi
9ef536a12e
[UBSan] Disable the function and kcfi sanitizers on an execute-only target.
...
An execute-only target disallows data access to code sections.
-fsanitize=function and -fsanitize=kcfi instrument indirect function
calls to load a type hash before the function label. This results in a
non-execute access to the code section and a runtime error.
To solve the issue, -fsanitize=function should not be included in any
check group (e.g. undefined) on an execute-only target. If a user passes
-fsanitize=undefined, there is no error and no warning. However, if the
user explicitly passes -fsanitize=function or -fsanitize=kcfi on an
execute-only target, an error will be emitted.
Fixes: https://github.com/llvm/llvm-project/issues/64931 .
Reviewed By: MaskRay, probinson, simon_tatham
Differential Revision: https://reviews.llvm.org/D158614
2023-08-30 17:17:37 +01:00
..
2023-05-26 17:35:48 +02:00
2023-08-28 12:13:42 -04:00
2023-05-26 17:35:48 +02:00
2023-01-26 11:33:19 +01:00
2023-08-28 12:13:42 -04:00
2023-01-24 15:17:18 +01:00
2023-08-28 12:13:42 -04:00
2022-12-12 17:11:46 +01:00
2023-05-26 17:35:48 +02:00
2022-12-12 17:11:46 +01:00
2023-05-26 17:35:48 +02:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2023-05-26 17:35:48 +02:00
2023-05-26 17:35:48 +02:00
2022-12-12 17:11:46 +01:00
2023-05-26 17:35:48 +02:00
2023-08-28 12:13:42 -04:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-05-26 17:35:48 +02:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-30 17:17:37 +01:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-02-17 11:16:35 +01:00
2023-08-28 12:13:42 -04:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-05-23 08:29:52 +02:00
2023-05-26 17:35:48 +02:00
2023-08-28 12:13:42 -04:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-05-26 17:35:48 +02:00
2023-05-26 17:35:48 +02:00
2023-02-17 11:16:35 +01:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-05-26 17:35:48 +02:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-06-01 17:04:48 +02:00
2023-06-01 17:04:48 +02:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00
2023-05-26 17:35:48 +02:00
2023-05-26 17:35:48 +02:00
2023-05-26 17:35:48 +02:00
2022-12-12 17:11:46 +01:00
2022-12-12 17:11:46 +01:00
2023-08-28 12:13:42 -04:00
2023-08-28 12:13:42 -04:00