All of lore.kernel.org
 help / color / mirror / Atom feed
diff for duplicates of <87o8mco7el.fsf@linaro.org>

diff --git a/a/1.txt b/N1/1.txt
index 487d6ce..8fc46b6 100644
--- a/a/1.txt
+++ b/N1/1.txt
@@ -1,4 +1,3 @@
-
 Hansni Bu <1895080@bugs.launchpad.net> writes:
 
 > No, it's not set by CentOS-7.5.
@@ -135,3 +134,58 @@ to give us.
 
 -- 
 Alex Bennée
+
+-- 
+You received this bug notification because you are a member of qemu-
+devel-ml, which is subscribed to QEMU.
+https://bugs.launchpad.net/bugs/1895080
+
+Title:
+  pgb_reserved_va: Assertion `addr == test' failed
+
+Status in QEMU:
+  New
+
+Bug description:
+  This problem occurs on CentOS-7.5 (64-bit) with qemu-5.1.0, qemu head
+  (commit 9435a8b3dd35f1f926f1b9127e8a906217a5518a) for riscv32-linux-
+  user.
+
+  Firstly, compile fails:
+  Compiling C object libqemu-riscv32-linux-user.fa.p/linux-user_strace.c.o
+  ../qemu.git/linux-user/strace.c:1210:18: error: ‘FALLOC_FL_KEEP_SIZE’ undeclared here (not in a function)
+       FLAG_GENERIC(FALLOC_FL_KEEP_SIZE),
+
+  I have to add below include to linux-user/strace.c
+  diff --git a/linux-user/strace.c b/linux-user/strace.c
+  index 11fea14fba..22e51d4a8a 100644
+  --- a/linux-user/strace.c
+  +++ b/linux-user/strace.c
+  @@ -7,6 +7,7 @@
+   #include <sys/mount.h>
+   #include <arpa/inet.h>
+   #include <netinet/tcp.h>
+  +#include <linux/falloc.h>
+   #include <linux/if_packet.h>
+   #include <linux/netlink.h>
+   #include <sched.h>
+
+  Then trying qemu-riscv32 with a simple ELF, I get:
+  linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed.
+
+  strace shows that:
+  mmap(0x1000, 4294963200, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x10000
+  write(2, "qemu-riscv32: ../qemu.git/linux-"..., 103qemu-riscv32: ../qemu.git/linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed.
+  ) = 103
+
+  The source code is in the function pgb_reserved_va (linux-
+  user/elfload.c). I think mmap cannot guarantee that the returned
+  pointer (test) equals to the parameter of addr. So is this a bug to
+  assert (addr == test)?
+
+  Attached configure script and test ELF file.
+
+  Thanks.
+
+To manage notifications about this bug go to:
+https://bugs.launchpad.net/qemu/+bug/1895080/+subscriptions
diff --git a/a/content_digest b/N1/content_digest
index c9d7e50..77e5adc 100644
--- a/a/content_digest
+++ b/N1/content_digest
@@ -3,14 +3,12 @@
  "ref\087tuw4odwk.fsf@linaro.org\0"
  "ref\087r1r8odph.fsf@linaro.org\0"
  "ref\0CAGTPX+DAoJcw2y9gPjkP6kGXEQW7=e1tohM8vND9j9Qtxuc5vw@mail.gmail.com\0"
- "From\0Alex Benn\303\251e <alex.bennee@linaro.org>\0"
+ "From\0Alex Benn\303\251e <1895080@bugs.launchpad.net>\0"
  "Subject\0Re: [Bug 1895080] [NEW] pgb_reserved_va: Assertion `addr == test' failed\0"
- "Date\0Fri, 11 Sep 2020 12:54:42 +0100\0"
- "To\0Bug 1895080 <1895080@bugs.launchpad.net>\0"
- "Cc\0qemu-devel@nongnu.org\0"
+ "Date\0Fri, 11 Sep 2020 11:54:42 -0000\0"
+ "To\0qemu-devel@nongnu.org\0"
  "\00:1\0"
  "b\0"
- "\n"
  "Hansni Bu <1895080@bugs.launchpad.net> writes:\n"
  "\n"
  "> No, it's not set by CentOS-7.5.\n"
@@ -146,6 +144,61 @@
  "\n"
  "\n"
  "-- \n"
- "Alex Benn\303\251e"
+ "Alex Benn\303\251e\n"
+ "\n"
+ "-- \n"
+ "You received this bug notification because you are a member of qemu-\n"
+ "devel-ml, which is subscribed to QEMU.\n"
+ "https://bugs.launchpad.net/bugs/1895080\n"
+ "\n"
+ "Title:\n"
+ "  pgb_reserved_va: Assertion `addr == test' failed\n"
+ "\n"
+ "Status in QEMU:\n"
+ "  New\n"
+ "\n"
+ "Bug description:\n"
+ "  This problem occurs on CentOS-7.5 (64-bit) with qemu-5.1.0, qemu head\n"
+ "  (commit 9435a8b3dd35f1f926f1b9127e8a906217a5518a) for riscv32-linux-\n"
+ "  user.\n"
+ "\n"
+ "  Firstly, compile fails:\n"
+ "  Compiling C object libqemu-riscv32-linux-user.fa.p/linux-user_strace.c.o\n"
+ "  ../qemu.git/linux-user/strace.c:1210:18: error: \342\200\230FALLOC_FL_KEEP_SIZE\342\200\231 undeclared here (not in a function)\n"
+ "       FLAG_GENERIC(FALLOC_FL_KEEP_SIZE),\n"
+ "\n"
+ "  I have to add below include to linux-user/strace.c\n"
+ "  diff --git a/linux-user/strace.c b/linux-user/strace.c\n"
+ "  index 11fea14fba..22e51d4a8a 100644\n"
+ "  --- a/linux-user/strace.c\n"
+ "  +++ b/linux-user/strace.c\n"
+ "  @@ -7,6 +7,7 @@\n"
+ "   #include <sys/mount.h>\n"
+ "   #include <arpa/inet.h>\n"
+ "   #include <netinet/tcp.h>\n"
+ "  +#include <linux/falloc.h>\n"
+ "   #include <linux/if_packet.h>\n"
+ "   #include <linux/netlink.h>\n"
+ "   #include <sched.h>\n"
+ "\n"
+ "  Then trying qemu-riscv32 with a simple ELF, I get:\n"
+ "  linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed.\n"
+ "\n"
+ "  strace shows that:\n"
+ "  mmap(0x1000, 4294963200, PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS|MAP_NORESERVE, -1, 0) = 0x10000\n"
+ "  write(2, \"qemu-riscv32: ../qemu.git/linux-\"..., 103qemu-riscv32: ../qemu.git/linux-user/elfload.c:2341: pgb_reserved_va: Assertion `addr == test' failed.\n"
+ "  ) = 103\n"
+ "\n"
+ "  The source code is in the function pgb_reserved_va (linux-\n"
+ "  user/elfload.c). I think mmap cannot guarantee that the returned\n"
+ "  pointer (test) equals to the parameter of addr. So is this a bug to\n"
+ "  assert (addr == test)?\n"
+ "\n"
+ "  Attached configure script and test ELF file.\n"
+ "\n"
+ "  Thanks.\n"
+ "\n"
+ "To manage notifications about this bug go to:\n"
+ https://bugs.launchpad.net/qemu/+bug/1895080/+subscriptions
 
-1941a5567788d3773cc23de60ed434bad863ed380e9a89e3f79617d353256458
+e4282f03454bab8972b2b9307a21371c76611f903067d7a5238816550c35165d

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.