Skip to content

Fix sanitizer errors with clang 18.1.1

Akihiko Odaki qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected] change-id 20240501-xkb-258483ccc5d8

Versions newest first

  1. v4 Latest4 patches 5 repliesIn review
  2. v33 patches 9 repliesSuperseded
  3. v23 patches 1 replySuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v11 patch2 repliesSuperseded

Changes in v4 from the cover letter

- Fixed function pointer problems instead of ignoring them.
- Made references to allocations static instead of incompletely freeing them for qemu-keymap.
- s/prefix/suffix/ for patch "meson: Drop the .fa library suffix".
- Link to v3: https://lore.kernel.org/r/[email protected]

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4qemu-keymap: Make references to allocations staticqemu-keymap.c+3 -51 reply
2/4lockable: Do not cast function pointersinclude/qemu/lockable.h+19 -42 replies
3/4qapi: Do not cast function pointersinclude/qapi/clone-visitor.h qapi/qapi-clone-visitor.c+28 -391 reply
4/4meson: Drop the .fa library suffix.gitlab-ci.d/buildtest-template.yml .gitlab-ci.d/buildtest.yml docs/devel/build-system.rst +6 more+4 -310 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéMarkus Armbruster
1/4R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v4 thread

Cover letter [PATCH v4 0/4] Fix sanitizer errors with clang 18.1.1

I upgraded my Fedora Asahi Remix from 39 to 40 and found new sanitizer errors with clang it ships so here are fixes.

The patch "meson: Drop the .fa library prefix" may have a broad impact to the build system so please tell me if you have a concern with it.

To: Michael Tokarev <[email protected]>
To: Laurent Vivier <[email protected]>
To: Paolo Bonzini <[email protected]>
To: Marc-André Lureau <[email protected]>
To: Daniel P. Berrangé <[email protected]>
To: Thomas Huth <[email protected]>
To: Philippe Mathieu-Daudé <[email protected]>
To: Alex Bennée <[email protected]>
To: Wainer dos Santos Moschetta <[email protected]>
To: Beraldo Leal <[email protected]>
To: Richard Henderson <[email protected]>
To: Laurent Vivier <[email protected]>

Changes in v4:
- Fixed function pointer problems instead of ignoring them.
- Made references to allocations static instead of incompletely freeing them for qemu-keymap.
- s/prefix/suffix/ for patch "meson: Drop the .fa library suffix".
- Link to v3: https://lore.kernel.org/r/[email protected]

Changes in v3:
- Moved changes that should belong to patch "meson: Drop the .fa library prefix" from patch "meson: Add -fno-sanitize=function".
- Link to v2: https://lore.kernel.org/r/[email protected]

Changes in v2:
- Added more patches and converted them to a series.
- Link to v1: https://lore.kernel.org/r/[email protected]

---
Akihiko Odaki (4):
qemu-keymap: Make references to allocations static
lockable: Do not cast function pointers
qapi: Do not cast function pointers
meson: Drop the .fa library suffix

 docs/devel/build-system.rst         |  5 -----
 meson.build                         | 17 ++---------------
 include/qapi/clone-visitor.h        | 37 ++++++++++++++++++++++++-------------
 include/qemu/lockable.h             | 23 +++++++++++++++++++----
 qapi/qapi-clone-visitor.c           | 30 ++++--------------------------
 qemu-keymap.c                       |  8 +++-----
 stubs/blk-exp-close-all.c           |  2 +-
 .gitlab-ci.d/buildtest-template.yml |  2 --
 .gitlab-ci.d/buildtest.yml          |  2 --
 gdbstub/meson.build                 |  2 --
 tcg/meson.build                     |  2 --
 tests/Makefile.include              |  2 +-
 tests/qtest/libqos/meson.build      |  1 -
 13 files changed, 54 insertions(+), 79 deletions(-)

---
base-commit: c25df57ae8f9fe1c72eee2dab37d76d904ac382e
change-id: 20240501-xkb-258483ccc5d8

Best regards,

Signature · 1 line
Akihiko Odaki <[email protected]>