Re: [PATCH v4 2/4] lockable: Do not cast function pointers

2024-05-27 Thread Philippe Mathieu-Daudé
On 27/5/24 11:57, Philippe Mathieu-Daudé wrote: On 24/5/24 07:35, Akihiko Odaki wrote: -fsanitize=undefined complains if function pointers are casted. It also prevents enabling teh strict mode of CFI which is currently s/teh/the/ (also next patch) disabled with

Re: [PATCH v4 2/4] lockable: Do not cast function pointers

2024-05-27 Thread Philippe Mathieu-Daudé
On 24/5/24 07:35, Akihiko Odaki wrote: -fsanitize=undefined complains if function pointers are casted. It also prevents enabling teh strict mode of CFI which is currently disabled with -fsanitize-cfi-icall-generalize-pointers. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2345

[PATCH v4 2/4] lockable: Do not cast function pointers

2024-05-23 Thread Akihiko Odaki
-fsanitize=undefined complains if function pointers are casted. It also prevents enabling teh strict mode of CFI which is currently disabled with -fsanitize-cfi-icall-generalize-pointers. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2345 Signed-off-by: Akihiko Odaki ---