linux-stable/arch
Juergen Gross 882213990d xen: fix p2m size in dom0 for disabled memory hotplug case
Since commit 9e2369c06c ("xen: add helpers to allocate unpopulated
memory") foreign mappings are using guest physical addresses allocated
via ZONE_DEVICE functionality.

This will result in problems for the case of no balloon memory hotplug
being configured, as the p2m list will only cover the initial memory
size of the domain. Any ZONE_DEVICE allocated address will be outside
the p2m range and thus a mapping can't be established with that memory
address.

Fix that by extending the p2m size for that case. At the same time add
a check for a to be created mapping to be within the p2m limits in
order to detect errors early.

While changing a comment, remove some 32-bit leftovers.

This is XSA-369.

Fixes: 9e2369c06c ("xen: add helpers to allocate unpopulated memory")
Cc: <stable@vger.kernel.org> # 5.9
Reported-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
2021-03-03 08:32:13 +01:00
..
alpha s390 updates for the 5.12 merge window 2021-02-21 13:40:06 -08:00
arc
arm Xen/gnttab: handle p2m update errors on a per-slot basis 2021-03-03 08:32:10 +01:00
arm64 regulator: Updates for v5.12 2021-02-22 09:16:38 -08:00
csky
h8300 h8300: fix PREEMPTION build, TI_PRE_COUNT undefined 2021-02-13 11:42:40 -08:00
hexagon
ia64 These changes fix MM (soft-)dirty bit management in the procfs code & clean up the API. 2021-02-21 12:19:56 -08:00
m68k m68k updates for v5.11 2021-02-21 13:16:08 -08:00
microblaze
mips x86: 2021-02-21 13:31:43 -08:00
nds32
nios2
openrisc
parisc Merge branch 'parisc-5.12-1' of git://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux 2021-02-21 13:20:41 -08:00
powerpc Devicetree updates for v5.12: 2021-02-22 10:05:12 -08:00
riscv Merge git://git.kernel.org/pub/scm/linux/kernel/git/netdev/net-next 2021-02-20 17:45:32 -08:00
s390 Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6 2021-02-21 17:23:56 -08:00
sh Remove oprofile and dcookies support 2021-02-21 10:40:34 -08:00
sparc x86: 2021-02-21 13:31:43 -08:00
um um: irq.h: include <asm-generic/irq.h> 2021-02-12 21:40:14 +01:00
x86 xen: fix p2m size in dom0 for disabled memory hotplug case 2021-03-03 08:32:13 +01:00
xtensa x86: 2021-02-21 13:31:43 -08:00
.gitignore
Kconfig It has been a relatively quiet cycle in docsland. 2021-02-22 10:57:46 -08:00