]> xenbits.xensource.com Git - qemu-upstream-4.4-testing.git/commit
xenfb: avoid reading twice the same fields from the shared page
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 18 Dec 2015 15:45:14 +0000 (15:45 +0000)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 18 Dec 2015 15:45:14 +0000 (15:45 +0000)
commit2264b0c66075cc34c252a1386f019f8be6240890
tree7d26f2137dd216d32db77dfbaf5a86b86895c141
parent75421c82154542e6855bbb98e6cccaacb4b8904c
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: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/display/xenfb.c