Fix multiple issues with xsave state handling on migrate
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 4 repliesIn review
- v16 patches 22 repliesSuperseded
Changes in v2 from the cover letter
* Inline and remove get_xsave_addr(). This simplifies the logic.
* Whitespace & alignment fixes.
* Use a shadow variable in hvm_load_cpu_xsave_states()
* Drop the TODO BUG_ON() from compress_xsave_states()
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | x86/domctl: Introduce PV_XSAVE_HDR_SIZE and remove its opencodingxen/ | +12 | 0 replies | |
| 2/6 | x86/domctl: Fix TOCTOU race with the use of XEN_DOMCTL_getvcpuextstatexen/ | +15 | 0 replies | |
| 3/6 | x86/domctl: Simplfy XEN_DOMCTL_getvcpuextstate when xsave is not in usexen/ | +7 | 0 replies | |
| 4/6 | x86/xstate: Fix latent bugs in expand_xsave_states()xen/ | +28 | 2 replies | |
| 5/6 | x86/domctl: Fix migration of guests which are not using xsavexen/ xen/ xen/ +1 more | +37 | 0 replies | |
| 6/6 | x86/xstate: Fix latent bugs in compress_xsave_states()xen/ | +27 | 2 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Jan Beulich |
|---|---|
| 1/6 | R-b |
| 2/6 | R-b |
| 3/6 | R-b |
| 4/6 | R-b |
| 5/6 | R-b |
| 6/6 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] Fix multiple issues with xsave state handling on migrate
Patch 5 is the primary bugfix of this series, which is broken in Xen 4.7 as well as master. There are multiple latent security issues which would be exposed at the point support for the first compressed xsave state was added, but are in currently-dead code.
Changes from v1:
* Inline and remove get_xsave_addr(). This simplifies the logic.
* Whitespace & alignment fixes.
* Use a shadow variable in hvm_load_cpu_xsave_states()
* Drop the TODO BUG_ON() from compress_xsave_states()
Andrew Cooper (6):
x86/domctl: Introduce PV_XSAVE_HDR_SIZE and remove its opencoding x86/domctl: Fix TOCTOU race with the use of XEN_DOMCTL_getvcpuextstate x86/domctl: Simplfy XEN_DOMCTL_getvcpuextstate when xsave is not in use x86/xstate: Fix latent bugs in expand_xsave_states() x86/domctl: Fix migration of guests which are not using xsave x86/xstate: Fix latent bugs in compress_xsave_states()
xen/arch/x86/domctl.c | 62 ++++++++++++++++++++----------- xen/arch/x86/hvm/hvm.c | 27 +++++++++++--- xen/arch/x86/xstate.c | 87 ++++++++++++++++++++++++++++---------------- xen/include/asm-x86/xstate.h | 6 +++ 4 files changed, 124 insertions(+), 58 deletions(-)
--
2.1.4
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel