summaryrefslogtreecommitdiff
path: root/libre/qemu-user-static/0006-linux-user-init_guest_commpage-Add-a-comment-about-s.patch
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-12-25 04:40:41 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-12-28 15:08:38 -0500
commit28afb45ff5151bd0e1c6d2796a12fac36b960b1b (patch)
treec175cd03862d5c98cb229f76fdfa9f5a59630fed /libre/qemu-user-static/0006-linux-user-init_guest_commpage-Add-a-comment-about-s.patch
parent55ce24617af467542ae1b07814617fbe2b360e33 (diff)
downloadabslibre-28afb45ff5151bd0e1c6d2796a12fac36b960b1b.tar.gz
abslibre-28afb45ff5151bd0e1c6d2796a12fac36b960b1b.tar.bz2
abslibre-28afb45ff5151bd0e1c6d2796a12fac36b960b1b.zip
libre/{qemu-static => qemu-user-static}: upgpkg 2.11.0-3.parabola1
Diffstat (limited to 'libre/qemu-user-static/0006-linux-user-init_guest_commpage-Add-a-comment-about-s.patch')
-rw-r--r--libre/qemu-user-static/0006-linux-user-init_guest_commpage-Add-a-comment-about-s.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/libre/qemu-user-static/0006-linux-user-init_guest_commpage-Add-a-comment-about-s.patch b/libre/qemu-user-static/0006-linux-user-init_guest_commpage-Add-a-comment-about-s.patch
new file mode 100644
index 000000000..4436b7817
--- /dev/null
+++ b/libre/qemu-user-static/0006-linux-user-init_guest_commpage-Add-a-comment-about-s.patch
@@ -0,0 +1,30 @@
+From ca873a81cc020df0ee0ec072a60678bb83dce9e2 Mon Sep 17 00:00:00 2001
+From: Luke Shumaker <lukeshu@parabola.nu>
+Date: Wed, 27 Dec 2017 21:05:29 -0500
+Subject: [PATCH 06/10] linux-user: init_guest_commpage: Add a comment about
+ size check
+
+Signed-off-by: Luke Shumaker <lukeshu@parabola.nu>
+---
+ linux-user/elfload.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/linux-user/elfload.c b/linux-user/elfload.c
+index 22f2632dfa..b560f5d6fe 100644
+--- a/linux-user/elfload.c
++++ b/linux-user/elfload.c
+@@ -374,6 +374,11 @@ static int init_guest_commpage(unsigned long guest_base,
+
+ /* If the commpage lies within the already allocated guest space,
+ * then there is no way we can allocate it.
++ *
++ * You may be thinking that that this check is redundant because
++ * we already validated the guest size against MAX_RESERVED_VA;
++ * but if qemu_host_page_mask is unusually large, then
++ * test_page_addr may be lower.
+ */
+ if (test_page_addr >= guest_base
+ && test_page_addr < (guest_base + guest_size)) {
+--
+2.15.1
+