mirrored from git://xenbits.xen.org/xen.git
-
Notifications
You must be signed in to change notification settings - Fork 325
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gnttab: add preemption check to gnttab_release_mappings()
A guest may die with many grant mappings still in place, or simply with a large maptrack table. Iterating through this may take more time than is reasonable without intermediate preemption (to run softirqs and perhaps the scheduler). Move the invocation of the function to the section where other restartable functions get invoked, and have the function itself check for preemption every once in a while. Have it iterate the table backwards, such that decreasing the maptrack limit is all it takes to convey restart information. In domain_teardown() introduce PROG_none such that inserting at the front will be easier going forward. This is part of CVE-2021-28698 / XSA-380. Reported-by: Andrew Cooper <andrew.cooper3@citrix.com> Signed-off-by: Jan Beulich <jbeulich@suse.com> Reviewed-by: Julien Grall <jgrall@amazon.com>
- Loading branch information
Showing
3 changed files
with
50 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters