diff options
-rw-r--r-- | debian/patches/fix0001-kern-fix-argument-handling.patch | 61 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 0 insertions, 62 deletions
diff --git a/debian/patches/fix0001-kern-fix-argument-handling.patch b/debian/patches/fix0001-kern-fix-argument-handling.patch deleted file mode 100644 index b505260..0000000 --- a/debian/patches/fix0001-kern-fix-argument-handling.patch +++ /dev/null @@ -1,61 +0,0 @@ -From 6da39e9e955d8eb5420349de7b124857e131044c Mon Sep 17 00:00:00 2001 -From: Justus Winter <4winter@informatik.uni-hamburg.de> -Date: Fri, 29 May 2015 14:44:39 +0200 -Subject: [PATCH gnumach] kern: fix argument handling - -Previously, the processor argument was not checked. If called with a -non-processor argument (like a task), `processor' is set to NULL, -triggering a page fault. Likewise for the other functions. - -* kern/processor.c (processor_get_assignment): Fix argument handling. -* kern/task.c (task_get_assignment): Likewise. -* kern/thread.c (thread_get_assignment): Likewise. ---- - kern/processor.c | 2 ++ - kern/task.c | 3 +++ - kern/thread.c | 2 ++ - 3 files changed, 7 insertions(+) - -diff --git a/kern/processor.c b/kern/processor.c -index 865c324..48e9273 100644 ---- a/kern/processor.c -+++ b/kern/processor.c -@@ -657,6 +657,8 @@ processor_get_assignment( - processor_set_t *pset) - { - int state; -+ if (processor == PROCESSOR_NULL) -+ return KERN_INVALID_ARGUMENT; - - state = processor->state; - if (state == PROCESSOR_SHUTDOWN || state == PROCESSOR_OFF_LINE) -diff --git a/kern/task.c b/kern/task.c -index dcd5371..b384347 100644 ---- a/kern/task.c -+++ b/kern/task.c -@@ -1063,6 +1063,9 @@ kern_return_t task_get_assignment( - task_t task, - processor_set_t *pset) - { -+ if (task == TASK_NULL) -+ return KERN_INVALID_ARGUMENT; -+ - if (!task->active) - return KERN_FAILURE; - -diff --git a/kern/thread.c b/kern/thread.c -index f52c95b..5af0cd5 100644 ---- a/kern/thread.c -+++ b/kern/thread.c -@@ -1974,6 +1974,8 @@ kern_return_t thread_get_assignment( - thread_t thread, - processor_set_t *pset) - { -+ if (thread == THREAD_NULL) -+ return KERN_INVALID_ARGUMENT; - *pset = thread->processor_set; - pset_reference(*pset); - return KERN_SUCCESS; --- -2.1.4 - diff --git a/debian/patches/series b/debian/patches/series index 93f3a68..a0008c7 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -12,7 +12,6 @@ sysenter0001-yyy-sysenter-prototype.patch vm-cache-policy0001-VM-cache-policy-change.patch vm-cache-policy0002-vm-keep-track-of-clean-pages.patch vm-cache-policy0003-vm-evict-clean-pages-first.patch -fix0001-kern-fix-argument-handling.patch docfix0001-Include-the-notify-protocol-in-gnumach.msgids.patch docfix0002-maybefixup_notify_stuff.patch docfix0003-fu.patch |