mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
memory: split and tighten maximum order permitted in memops
Introduce and enforce separate limits for ordinary DomU, DomU with
pass-through device(s), control domain, and hardware domain.
The DomU defaults were determined based on what so far was allowed by
multipage_allocation_permitted().
The x86 hwdom default was chosen based on linux-2.6.18-xen.hg c/s
1102:82782f1361a9 indicating 2Mb is not enough, plus some slack.
The ARM hwdom default was chosen to allow 2Mb (order-9) mappings, plus
a little bit of slack.
This is CVE-2015-8338 / XSA-158.
Reported-by: Julien Grall <julien.grall@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
master commit: 4a578b316e
master date: 2015-12-08 14:00:33 +0100
This commit is contained in:
1 parent
602506b3ef
commit
dcbb31d041
6 files changed
+74
-27
No files matched your search
@@ -653,6 +653,17 @@ which data structures should be deliberately allocated in low memory,
|
||||
so the crash kernel may find find them. Should be used in combination
|
||||
with **crashinfo_maxaddr**.
|
||||
|
||||
### memop-max-order
|
||||
> `= [<domU>][,[<ctldom>][,[<hwdom>][,<ptdom>]]]`
|
||||
|
||||
> x86 default: `9,18,12,12`
|
||||
> ARM default: `9,18,10,10`
|
||||
|
||||
Change the maximum order permitted for allocation (or allocation-like)
|
||||
requests issued by the various kinds of domains (in this order:
|
||||
ordinary DomU, control domain, hardware domain, and - when supported
|
||||
by the platform - DomU with pass-through device assigned).
|
||||
|
||||
### max\_cstate
|
||||
> `= <integer>`
|
||||
|
||||
|
||||