Fix some undefined behaviour
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 2 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | virtio/mmio: avoid unaligned accessesinclude/ | +1 | 0 replies | |
| 2/4 | virtio/mmio: access header members normallyinclude/ virtio/ | +16 | 2 replies | |
| 3/4 | virtio/mmio: remove unneeded virtio_mmio_hdr membersinclude/ | +0 | 0 replies | |
| 4/4 | x86/cpuid: fix undefined behaviourx86/ | +3 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH kvmtool 0/4] Fix some undefined behaviour
Hi,
triggered by some integer overflow issues, discovered through Alex' "set RAM base address" series, I enabled "-fsanitize=undefined -fsanitize=address" in the Makefile, and enjoyed the fireworks. This series is cheekily just picking the lowest hanging fruits:
Some needlessly unaligned accesses in the virtio-mmio code, and signed shifts in the x86 CPUID code.
There are more issues, but they take more time fixing.
Please have a look!
Cheers,
Andre
Andre Przywara (4):
virtio/mmio: avoid unaligned accesses virtio/mmio: access header members normally virtio/mmio: remove unneeded virtio_mmio_hdr members x86/cpuid: fix undefined behaviour
include/kvm/virtio-mmio.h | 12 ++---------- virtio/mmio.c | 19 +++++++++++++++---- x86/cpuid.c | 6 +++--- 3 files changed, 20 insertions(+), 17 deletions(-)
Signature · 1 line
2.25.1