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
This commit is contained in:
parent
e74ce9b868
commit
5eadfc1f12
@ -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 <agraf@suse.de>
|
From: Alexander Graf <agraf@suse.de>
|
||||||
Date: Tue, 14 Apr 2015 17:12:29 +0200
|
Date: Tue, 14 Apr 2015 17:12:29 +0200
|
||||||
Subject: [PATCH] linux-user: Allocate thunk size dynamically
|
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.
|
asserts to sanity check whether a thunk is actually part of our array.
|
||||||
|
|
||||||
Signed-off-by: Alexander Graf <agraf@suse.de>
|
Signed-off-by: Alexander Graf <agraf@suse.de>
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
v1 -> v2:
|
||||||
|
|
||||||
|
- alloc with new0 to copy the bss semantics we had before
|
||||||
---
|
---
|
||||||
include/exec/user/thunk.h | 4 +++-
|
include/exec/user/thunk.h | 4 +++-
|
||||||
linux-user/syscall.c | 3 +++
|
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);
|
#define STRUCT_SPECIAL(name) thunk_register_struct_direct(STRUCT_ ## name, #name, &struct_ ## name ## _def);
|
||||||
#include "syscall_types.h"
|
#include "syscall_types.h"
|
||||||
diff --git a/thunk.c b/thunk.c
|
diff --git a/thunk.c b/thunk.c
|
||||||
index c6a78ca..8bb46d0 100644
|
index c6a78ca..b711860 100644
|
||||||
--- a/thunk.c
|
--- a/thunk.c
|
||||||
+++ b/thunk.c
|
+++ b/thunk.c
|
||||||
@@ -25,10 +25,8 @@
|
@@ -25,10 +25,8 @@
|
||||||
@ -113,5 +119,5 @@ index c6a78ca..8bb46d0 100644
|
|||||||
+void thunk_init(unsigned int max_structs)
|
+void thunk_init(unsigned int max_structs)
|
||||||
+{
|
+{
|
||||||
+ max_struct_entries = max_structs;
|
+ max_struct_entries = max_structs;
|
||||||
+ struct_entries = g_new(StructEntry, max_structs);
|
+ struct_entries = g_new0(StructEntry, max_structs);
|
||||||
+}
|
+}
|
||||||
|
@ -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?= <afaerber@suse.de>
|
From: =?UTF-8?q?Andreas=20F=C3=A4rber?= <afaerber@suse.de>
|
||||||
Date: Tue, 14 Apr 2015 18:42:06 +0200
|
Date: Tue, 14 Apr 2015 18:42:06 +0200
|
||||||
Subject: [PATCH] Revert "Revert seccomp tests that allow it to be used on
|
Subject: [PATCH] Revert "Revert seccomp tests that allow it to be used on
|
||||||
|
@ -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 <agraf@suse.de>
|
From: Alexander Graf <agraf@suse.de>
|
||||||
Date: Wed, 15 Apr 2015 02:28:05 +0200
|
Date: Wed, 15 Apr 2015 02:28:05 +0200
|
||||||
Subject: [PATCH] s390x: Fix stoc direction
|
Subject: [PATCH] s390x: Fix stoc direction
|
||||||
|
@ -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
|
Wed Apr 29 14:53:51 UTC 2015 - afaerber@suse.de
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user