From 5eadfc1f128c83eb8543dbef9db087c4f9e7d0c3697825feb457e5382bb7dbb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 6 May 2015 21:58:44 +0000 Subject: [PATCH] Accepting request 305644 from home:algraf:branches:Virtualization - Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-2.3 - Fix potential segmentation fault in 0037-linux-user-Allocate-thunk-size-dyna.patch OBS-URL: https://build.opensuse.org/request/show/305644 OBS-URL: https://build.opensuse.org/package/show/Virtualization/qemu?expand=0&rev=255 --- 0037-linux-user-Allocate-thunk-size-dyna.patch | 12 +++++++++--- 0038-Revert-Revert-seccomp-tests-that-al.patch | 2 +- 0039-s390x-Fix-stoc-direction.patch | 2 +- qemu-linux-user.changes | 7 +++++++ 4 files changed, 18 insertions(+), 5 deletions(-) diff --git a/0037-linux-user-Allocate-thunk-size-dyna.patch b/0037-linux-user-Allocate-thunk-size-dyna.patch index 7a9fcfa1..e7795ac7 100644 --- a/0037-linux-user-Allocate-thunk-size-dyna.patch +++ b/0037-linux-user-Allocate-thunk-size-dyna.patch @@ -1,4 +1,4 @@ -From cead420737c71cbf46775b02815ff1ef7f7ee257 Mon Sep 17 00:00:00 2001 +From 82465ccc24bd795f29c63e850c539717f1ea8a4f Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Tue, 14 Apr 2015 17:12:29 +0200 Subject: [PATCH] linux-user: Allocate thunk size dynamically @@ -16,6 +16,12 @@ Also, to ensure we don't accidently overwrite random memory, add some asserts to sanity check whether a thunk is actually part of our array. Signed-off-by: Alexander Graf + +--- + +v1 -> v2: + + - alloc with new0 to copy the bss semantics we had before --- include/exec/user/thunk.h | 4 +++- linux-user/syscall.c | 3 +++ @@ -64,7 +70,7 @@ index 4917e20..49c0659 100644 #define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def); #include "syscall_types.h" diff --git a/thunk.c b/thunk.c -index c6a78ca..8bb46d0 100644 +index c6a78ca..b711860 100644 --- a/thunk.c +++ b/thunk.c @@ -25,10 +25,8 @@ @@ -113,5 +119,5 @@ index c6a78ca..8bb46d0 100644 +void thunk_init(unsigned int max_structs) +{ + max_struct_entries = max_structs; -+ struct_entries = g_new(StructEntry, max_structs); ++ struct_entries = g_new0(StructEntry, max_structs); +} diff --git a/0038-Revert-Revert-seccomp-tests-that-al.patch b/0038-Revert-Revert-seccomp-tests-that-al.patch index 79a8b9eb..963a88cc 100644 --- a/0038-Revert-Revert-seccomp-tests-that-al.patch +++ b/0038-Revert-Revert-seccomp-tests-that-al.patch @@ -1,4 +1,4 @@ -From 0cf7218bdc4ee50a2554db9074c3366a09ca16ce Mon Sep 17 00:00:00 2001 +From 454fc5a3bc19e8b6a2b5dcb0aa202cd03e313f19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 14 Apr 2015 18:42:06 +0200 Subject: [PATCH] Revert "Revert seccomp tests that allow it to be used on diff --git a/0039-s390x-Fix-stoc-direction.patch b/0039-s390x-Fix-stoc-direction.patch index a3dc78b1..dc13ea5c 100644 --- a/0039-s390x-Fix-stoc-direction.patch +++ b/0039-s390x-Fix-stoc-direction.patch @@ -1,4 +1,4 @@ -From a8187b81c7ac84123ac4e4fb78d9219473fae1fa Mon Sep 17 00:00:00 2001 +From 67098aac3a33ba6bf79088ac4bc4068637637dd9 Mon Sep 17 00:00:00 2001 From: Alexander Graf Date: Wed, 15 Apr 2015 02:28:05 +0200 Subject: [PATCH] s390x: Fix stoc direction diff --git a/qemu-linux-user.changes b/qemu-linux-user.changes index 4ae160c9..abab70c7 100644 --- a/qemu-linux-user.changes +++ b/qemu-linux-user.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed May 6 21:54:05 UTC 2015 - agraf@suse.com + +- Patch queue updated from git://github.com/openSUSE/qemu.git opensuse-2.3 +- Fix potential segmentation fault in + 0037-linux-user-Allocate-thunk-size-dyna.patch + ------------------------------------------------------------------- Wed Apr 29 14:53:51 UTC 2015 - afaerber@suse.de