Re: [PATCH v2 4/6] cfi: Initial support for cfi-icall in QEMU

2020-10-27 Thread Alex Bennée
Daniele Buono writes: > LLVM/Clang, supports runtime checks for forward-edge Control-Flow > Integrity (CFI). > > CFI on indirect function calls (cfi-icall) ensures that, in indirect > function calls, the function called is of the right signature for the > pointer type defined at compile time. >

Re: [PATCH v2 4/6] cfi: Initial support for cfi-icall in QEMU

2020-10-26 Thread Paolo Bonzini
On 23/10/20 22:06, Daniele Buono wrote: > + > +#ifdef CONFIG_CFI > +/* If CFI is enabled, use an attribute to disable cfi-icall on the following > + * function */ > +#define __disable_cfi__ __attribute__((no_sanitize("cfi-icall"))) > +#else > +/* If CFI is not enabled, use an empty define to not ch