Skip to content
Commit ff083d3c authored by Stefano Stabellini's avatar Stefano Stabellini Committed by Michael Roth
Browse files

xenfb: avoid reading twice the same fields from the shared page



Reading twice the same field could give the guest an attack of
opportunity. In the case of event->type, gcc could compile the switch
statement into a jump table, effectively ending up reading the type
field multiple times.

This is part of XSA-155.

Signed-off-by: default avatarStefano Stabellini <stefano.stabellini@eu.citrix.com>
(cherry picked from commit 7ea11bf3)
Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 4d59e78d
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