Re: [PATCH] [PATCH v2] gdbstub: add support to Xfer:auxv:read: packet

2020-08-03 Thread Lirong Yuan
On Mon, Aug 3, 2020 at 4:27 AM Alex Bennée wrote: > > > Lirong Yuan writes: > > > This allows gdb to access the target’s auxiliary vector, > > which can be helpful for telling system libraries important details > > about the hardware, operating system, and process.

Re: [PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-07-30 Thread Lirong Yuan
On Tue, Jul 21, 2020 at 1:29 PM Lirong Yuan wrote: > > On Tue, Jul 21, 2020 at 12:50 PM Alex Bennée wrote: > > > > > > Lirong Yuan writes: > > > > > On Tue, Mar 31, 2020 at 12:20 AM Alex Bennée > > > wrote: > > >> > > >>

[PATCH] [PATCH v2] gdbstub: add support to Xfer:auxv:read: packet

2020-07-30 Thread Lirong Yuan
This allows gdb to access the target’s auxiliary vector, which can be helpful for telling system libraries important details about the hardware, operating system, and process. Signed-off-by: Lirong Yuan --- Changelog since v1: - Added a multiarch gdbstub test to verify this is working properly

Re: [PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-07-21 Thread Lirong Yuan
On Tue, Jul 21, 2020 at 12:50 PM Alex Bennée wrote: > > > Lirong Yuan writes: > > > On Tue, Mar 31, 2020 at 12:20 AM Alex Bennée wrote: > >> > >> > >> Lirong Yuan writes: > >> > >> > On Mon, Mar 30, 2020 at 12:47 PM Alex

Re: [PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-07-21 Thread Lirong Yuan
On Tue, Mar 31, 2020 at 12:20 AM Alex Bennée wrote: > > > Lirong Yuan writes: > > > On Mon, Mar 30, 2020 at 12:47 PM Alex Bennée wrote: > > > >> > >> Lirong Yuan writes: > >> > >> > On Sat, Mar 21, 2020 at 6:56 AM Alex

Re: [PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-03-30 Thread Lirong Yuan
On Mon, Mar 30, 2020 at 12:47 PM Alex Bennée wrote: > > Lirong Yuan writes: > > > On Sat, Mar 21, 2020 at 6:56 AM Alex Bennée > wrote: > > > >> > >> Lirong Yuan writes: > >> > >> > On Fri, Mar 20, 2020 at 2:17 AM Alex Bennée &g

Re: [PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-03-30 Thread Lirong Yuan
On Sat, Mar 21, 2020 at 6:56 AM Alex Bennée wrote: > > Lirong Yuan writes: > > > On Fri, Mar 20, 2020 at 2:17 AM Alex Bennée > wrote: > > >> > >> Sorry I missed this on my radar. There was a minor re-factor of gdbstub > >> that was just merged w

[PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-03-30 Thread Lirong Yuan
This allows gdb to access the target’s auxiliary vector, which can be helpful for telling system libraries important details about the hardware, operating system, and process. Signed-off-by: Lirong Yuan --- gdbstub.c | 56 +++ 1 file changed

Re: [PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-03-20 Thread Lirong Yuan
On Fri, Mar 20, 2020 at 2:17 AM Alex Bennée wrote: > > Lirong Yuan writes: > > > On Fri, Mar 6, 2020 at 5:01 PM Lirong Yuan wrote: > > > >> This allows gdb to access the target’s auxiliary vector, > >> which can be helpful for telling system libraries im

Re: [PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-03-18 Thread Lirong Yuan
On Fri, Mar 6, 2020 at 5:01 PM Lirong Yuan wrote: > This allows gdb to access the target’s auxiliary vector, > which can be helpful for telling system libraries important details > about the hardware, operating system, and process. > > Signed-off-by: Lirong Yuan > ---

Re: [PATCH] linux-user: Update TASK_UNMAPPED_BASE for aarch64

2020-03-16 Thread Lirong Yuan
Vivier wrote: > Le 14/03/2020 à 18:01, Aleksandar Markovic a écrit : > > On Sat, Mar 14, 2020 at 11:45 AM Laurent Vivier > wrote: > >> > >> Le 14/03/2020 à 04:06, Aleksandar Markovic a écrit : > >>> On Fri, Mar 13, 2020 at 1:28 AM Lirong Yuan

Re: [PATCH] linux-user: Update TASK_UNMAPPED_BASE for aarch64

2020-03-13 Thread Lirong Yuan
On Fri, Mar 13, 2020 at 2:45 PM Laurent Vivier wrote: > Le 13/03/2020 à 01:28, Lirong Yuan a écrit : > > This change updates TASK_UNMAPPED_BASE (the base address for guest > programs) for aarch64. It is needed to allow qemu to work with Thread > Sanitizer (TSan), which has sp

[PATCH] linux-user: Update TASK_UNMAPPED_BASE for aarch64

2020-03-12 Thread Lirong Yuan
/compiler-rt/lib/tsan/rtl/tsan_platform.h Signed-off-by: Lirong Yuan --- linux-user/mmap.c | 4 1 file changed, 4 insertions(+) diff --git a/linux-user/mmap.c b/linux-user/mmap.c index 8685f02e7e..e378033797 100644 --- a/linux-user/mmap.c +++ b/linux-user/mmap.c @@ -184,7 +184,11 @@ static int

Re: [PATCH] linux-user: Add an argument QEMU_MMAP_BASE to set custom mmap base address in qemu user mode

2020-03-12 Thread Lirong Yuan
On Thu, Mar 12, 2020 at 1:42 AM Laurent Vivier wrote: > Le 09/03/2020 à 19:07, Lirong Yuan a écrit : > > > > On Mon, Mar 2, 2020 at 11:51 AM Lirong Yuan > <mailto:yua...@google.com>> wrote: > > > > On Mon, Mar 2, 2020 at 10:39 AM Laurent Vivier

Re: [PATCH] linux-user: Add an argument QEMU_MMAP_BASE to set custom mmap base address in qemu user mode

2020-03-09 Thread Lirong Yuan
On Mon, Mar 2, 2020 at 11:51 AM Lirong Yuan wrote: > On Mon, Mar 2, 2020 at 10:39 AM Laurent Vivier wrote: > > > > Le 02/03/2020 à 18:53, Lirong Yuan a écrit : > > > On Mon, Mar 2, 2020 at 6:56 AM Laurent Vivier > wrote: > > >> > > >> Le 29/02

[PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-03-06 Thread Lirong Yuan
This allows gdb to access the target’s auxiliary vector, which can be helpful for telling system libraries important details about the hardware, operating system, and process. Signed-off-by: Lirong Yuan --- gdbstub.c | 55 +++ 1 file changed

[PATCH] gdbstub: add support to Xfer:auxv:read: packet

2020-03-06 Thread Lirong Yuan
This allows gdb to access the target’s auxiliary vector, which can be helpful for telling system libraries important details about the hardware, operating system, and process. Signed-off-by: Lirong Yuan --- gdbstub.c | 50 ++ 1 file changed, 50

Re: [PATCH v2] linux-user: Add AT_EXECFN auxval

2020-03-03 Thread Lirong Yuan
On Tue, Mar 3, 2020 at 1:40 AM Laurent Vivier wrote: > > Le 02/03/2020 à 20:31, Lirong Yuan a écrit : > > This change adds the support for AT_EXECFN auxval. > > > > Signed-off-by: Lirong Yuan > > --- > > Changelog since v1: > > - remove implementation

Re: [PATCH] linux-user: Add AT_EXECFN and AT_EXECFD auxval

2020-03-02 Thread Lirong Yuan
On Mon, Mar 2, 2020 at 10:31 AM Laurent Vivier wrote: > > Le 02/03/2020 à 19:18, Lirong Yuan a écrit : > > On Mon, Mar 2, 2020 at 6:39 AM Laurent Vivier wrote: > >> > >> Le 21/02/2020 à 21:28, Lirong Yuan a écrit : > >>> This change adds the

Re: [PATCH] linux-user: Add an argument QEMU_MMAP_BASE to set custom mmap base address in qemu user mode

2020-03-02 Thread Lirong Yuan
On Mon, Mar 2, 2020 at 10:39 AM Laurent Vivier wrote: > > Le 02/03/2020 à 18:53, Lirong Yuan a écrit : > > On Mon, Mar 2, 2020 at 6:56 AM Laurent Vivier wrote: > >> > >> Le 29/02/2020 à 01:43, Lirong Yuan a écrit : > >>> On Fri, Feb 21, 2020 at 5:09

[PATCH v2] linux-user: Add AT_EXECFN auxval

2020-03-02 Thread Lirong Yuan
This change adds the support for AT_EXECFN auxval. Signed-off-by: Lirong Yuan --- Changelog since v1: - remove implementation for AT_EXECFD auxval. linux-user/elfload.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index

Re: [PATCH] linux-user: Add AT_EXECFN and AT_EXECFD auxval

2020-03-02 Thread Lirong Yuan
On Mon, Mar 2, 2020 at 6:39 AM Laurent Vivier wrote: > > Le 21/02/2020 à 21:28, Lirong Yuan a écrit : > > This change adds the support for AT_EXECFN and AT_EXECFD auxval. > > Why do we need AT_EXECFD? > > AT_EXECFD is normally only used with binfmt_misc so I don't se

Re: [PATCH] linux-user: Add an argument QEMU_MMAP_BASE to set custom mmap base address in qemu user mode

2020-03-02 Thread Lirong Yuan
On Mon, Mar 2, 2020 at 6:56 AM Laurent Vivier wrote: > > Le 29/02/2020 à 01:43, Lirong Yuan a écrit : > > On Fri, Feb 21, 2020 at 5:09 PM Lirong Yuan wrote: > >> > >> This change allows us to set custom base address for guest programs. It is > >> n

Re: [PATCH] linux-user: Add an argument QEMU_MMAP_BASE to set custom mmap base address in qemu user mode

2020-02-28 Thread Lirong Yuan
On Fri, Feb 21, 2020 at 5:09 PM Lirong Yuan wrote: > > This change allows us to set custom base address for guest programs. It is > needed to allow qemu to work with Thread Sanitizer (TSan), which has specific > boundary definitions for memory mappings on different platfo

Re: [PATCH] linux-user: Add AT_EXECFN and AT_EXECFD auxval

2020-02-28 Thread Lirong Yuan
On Fri, Feb 21, 2020 at 12:29 PM Lirong Yuan wrote: > > This change adds the support for AT_EXECFN and AT_EXECFD auxval. > > Signed-off-by: Lirong Yuan > --- > linux-user/elfload.c | 13 + > 1 file changed, 9 insertions(+), 4 deletions(-) > > diff --g

[PATCH] linux-user: Add an argument QEMU_MMAP_BASE to set custom mmap base address in qemu user mode

2020-02-21 Thread Lirong Yuan
/tsan_platform.h Signed-off-by: Lirong Yuan --- linux-user/main.c | 12 linux-user/mmap.c | 3 ++- linux-user/qemu.h | 5 + 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index fba833aac9..c01af6bfee 100644 --- a/linux-user

[PATCH] linux-user: Add an argument QEMU_MMAP_BASE to set custom mmap base address in qemu user mode

2020-02-21 Thread Lirong Yuan
/tsan_platform.h Signed-off-by: Lirong Yuan --- linux-user/main.c | 12 linux-user/mmap.c | 3 ++- linux-user/qemu.h | 5 + 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/linux-user/main.c b/linux-user/main.c index fba833aac9..dfcd867399 100644 --- a/linux-user

[PATCH] linux-user: Add AT_EXECFN and AT_EXECFD auxval

2020-02-21 Thread Lirong Yuan
This change adds the support for AT_EXECFN and AT_EXECFD auxval. Signed-off-by: Lirong Yuan --- linux-user/elfload.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index f3080a1635..7e0f3042f1 100644 --- a/linux-user