[PATCH 1/7] xen/ubsan: provide helper for clang's -fsanitize=function

2025-03-13 Thread Roger Pau Monne
clang's -fsanitize=function relies on the presence of __ubsan_handle_function_type_mismatch() to print the detection of indirect calls of a function through a function pointer of the wrong type. Implement the helper, inspired on the llvm ubsan lib implementation. Signed-off-by: Roger Pau Monné -

Re: [PATCH 1/7] xen/ubsan: provide helper for clang's -fsanitize=function

2025-03-13 Thread Andrew Cooper
On 13/03/2025 3:30 pm, Roger Pau Monne wrote: > clang's -fsanitize=function relies on the presence of > __ubsan_handle_function_type_mismatch() to print the detection of indirect > calls of a function through a function pointer of the wrong type. > > Implement the helper, inspired on the llvm ubsan