Skip to content

Bugfix: TCG cross-page overflow for 32 bit guest

~percival_foss qemu-devel qemu-riscv 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 1 replyIn review
  2. v12 patches 0 repliesSuperseded

Changes in v2 from the cover letter

-Updated git commits to have proper signed off by tags/messages

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2accel/tcg: Fixed cross-page overflow for 32 bit guestaccel/tcg/cputlb.c+7 -01 reply
2/2tests/functional: Added cross page overflow testtests/functional/meson.build tests/functional/test_ppc_pegasos2.py+70 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH qemu v2 0/2] Bugfix: TCG cross-page overflow for 32 bit guest

Since v1:
-Updated git commits to have proper signed off by tags/messages

Our company found and fixed a bug in TCG that caused 32 bit guests running on 64 bit hosts to crash. If a 32 bit host has a page translation that crosses beyond the last page. This causes a invalid translation to be added to the translation table causing a crash.

Since this is our first patch we tried following the wiki guidelines and broke the patch into a fix and test. More info about each is given in their respective commits. Any feedback is appreciated!

Signed off by: Percival Engineering <[email protected]>

Percival Foss (2):
accel/tcg: Fixed cross-page overflow for 32 bit guest tests/functional: Added cross page overflow test

 accel/tcg/cputlb.c                    |  7 +++
 tests/functional/meson.build          |  1 +
 tests/functional/test_ppc_pegasos2.py | 69 +++++++++++++++++++++++++++
 3 files changed, 77 insertions(+)
 create mode 100755 tests/functional/test_ppc_pegasos2.py
Signature · 1 line
2.45.3