Skip to content

Commit 675540f

Browse files
committed
xen: patch with XSA-470
https://xenbits.xenproject.org/xsa/advisory-470.html Certain instructions need intercepting and emulating by Xen. In some cases Xen emulates the instruction by replaying it, using an executable stub. Some instructions may raise an exception, which is supposed to be handled gracefully. Certain replayed instructions have additional logic to set up and recover the changes to the arithmetic flags. For replayed instructions where the flags recovery logic is used, the metadata for exception handling was incorrect, preventing Xen from handling the the exception gracefully, treating it as fatal instead. An unprivileged guest can cause a hypervisor crash, causing a Denial of Service (DoS) of the entire host. Signed-off-by: Fernando Rodrigues <[email protected]>
1 parent 3019ed2 commit 675540f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkgs/by-name/xe/xen/package.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ buildXenPackage.override { inherit python3Packages; } {
3636
url = "https://xenbits.xenproject.org/xsa/xsa469/xsa469-4.20-07.patch";
3737
hash = "sha256-+BsCJa01R2lrbu7tEluGrYSAqu2jJcrpFNUoLMY466c=";
3838
})
39+
(fetchpatch {
40+
url = "https://xenbits.xenproject.org/xsa/xsa470.patch";
41+
hash = "sha256-zhMZ6pCZtt0ocgsMFVqthMaof46lMMTaYmlepMXVJqM=";
42+
})
3943
];
4044
rev = "3ad5d648cda5add395f49fc3704b2552aae734f7";
4145
hash = "sha256-v2DRJv+1bym8zAgU74lo1HQ/9rUcyK3qc4Eec4RpcEY=";

0 commit comments

Comments
 (0)