[Qemu-devel] [PATCH] Don't translate pointer when in restore_sigcontext

2011-05-31 Thread Mike McCormack
Fixes crash in i386 when user emulation base address is non-zero. 21797 rt_sigreturn(8,1082124603,1,0,1082126048,1082126248)Exit reason and status: signal 11 Signed-off-by: Mike McCormack --- linux-user/signal.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH] Don't translate pointer when in restore_sigcontext

2011-04-20 Thread Mike McCormack
Fixes crash in i386 when user emulation base address is non-zero. 21797 rt_sigreturn(8,1082124603,1,0,1082126048,1082126248)Exit reason and status: signal 11 Signed-off-by: Mike McCormack --- linux-user/signal.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux

Re: [Qemu-devel] [PATCH/RFC] Port Wine preloader to QEMU

2011-04-19 Thread Mike McCormack
On 04/20/2011 12:33 AM, Richard Henderson wrote: > Did you try --enable-user-pie? It may not really help, but I'm curious. No. I don't think it will help because placement of the executable probably doesn't account for how large its heap will grow. You'll still run out of memory as the heap gro

[Qemu-devel] [PATCH/RFC] Port Wine preloader to QEMU

2011-04-19 Thread Mike McCormack
ux-user/preloader.c new file mode 100644 index 000..9ab59fb --- /dev/null +++ b/linux-user/preloader.c @@ -0,0 +1,1161 @@ +/* + * Preloader for ld.so + * + * Copyright (C) 1995,96,97,98,99,2000,2001,2002 Free Software Foundation, Inc. + * Copyright (C) 2004 Mike McCormack for CodeWeavers + * Copyright

[Qemu-devel] [PATCH 2/2] Don't zero out buffer in sched_getaffinity

2011-04-18 Thread Mike McCormack
The kernel doesn't fill the buffer provided to sched_getaffinity with zero bytes, so neither should QEMU. Signed-off-by: Mike McCormack Reviewed-by: Stefan Hajnoczi --- linux-user/syscall.c | 13 + 1 files changed, 1 insertions(+), 12 deletions(-) diff --git a/linux

[Qemu-devel] [PATCH 1/2] Fix buffer overrun in sched_getaffinity

2011-04-18 Thread Mike McCormack
Zeroing of the cpu array should start from &cpus[kernel_ret] not &cpus[num_zeros_to_fill]. This fixes a crash in EFL's edje_cc running under qemu-arm. Signed-off-by: Mike McCormack Reviewed-by: Stefan Hajnoczi Acked-by: Mike Frysinger --- linux-user/syscall.c |2 +- 1 fil

[Qemu-devel] [PATCH] Don't zero out buffer in sched_getaffinity

2011-04-18 Thread Mike McCormack
The kernel doesn't fill the buffer provided to sched_getaffinity with zero bytes, so neither should QEMU. Depends on sched_getaffinity buffer overrun fix, but submitted separately to make rollback easier. --- linux-user/syscall.c | 13 + 1 files changed, 1 insertions(+), 12 deletio

[Qemu-devel] [PATCH] Fix buffer overrun in sched_getaffinity

2011-04-11 Thread Mike McCormack
Zeroing of the cpu array should start from &cpus[kernel_ret] not &cpus[num_zeros_to_fill]. This fixes a crash in EFL's edje_cc running under qemu-arm. Signed-off-by: Mike McCormack --- linux-user/syscall.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[Qemu-devel] [PATCH 1/1] Remove unused eventfd.h

2010-07-28 Thread Mike McCormack
This header is not present on my system and causes a build failure, but is also not used in these files, so remove it. Signed-off-by: Mike McCormack --- hw/vhost.c |1 - hw/vhost_net.c |1 - 2 files changed, 0 insertions(+), 2 deletions(-) diff --git a/hw/vhost.c b/hw/vhost.c index

[Qemu-devel] [PATCH] Use existing config check when including eventfd.h

2010-07-21 Thread Mike McCormack
Signed-off-by: Mike McCormack --- hw/vhost.c |2 ++ hw/vhost_net.c |2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/vhost.c b/hw/vhost.c index d37a66e..e1cd4d2 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -11,7 +11,9 @@ */ #include +#ifdef CONFIG_EVENTFD

[Qemu-devel] [PATCH] Fix null pointer dereference when parsing chardevs without a backend option.

2010-06-29 Thread Mike McCormack
qemu_opt_get may return NULL, so handle that rather than crashing. Signed-off-by: Mike McCormack --- qemu-char.c |9 - 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/qemu-char.c b/qemu-char.c index 9b69d92..f292ee7 100644 --- a/qemu-char.c +++ b/qemu-char.c