Skip to content
Commit d8dea6fb authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Michael Roth
Browse files

cpu-exec: fix icount out-of-bounds access



When icount is active, tb_add_jump is surprisingly called with an
out of bounds basic block index.  I have no idea how that can work,
but it does not seem like a good idea.  Clear *last_tb for all
TB_EXIT_ICOUNT_EXPIRED cases, even when all you have to do is
refill icount_extra.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit 43d70ddf)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent f054cead
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment