From 1acb84afbb9ae60f24878c6944e9dca60318f582 Mon Sep 17 00:00:00 2001
From: Jeremy Soller <jackpot51@gmail.com>
Date: Wed, 14 Sep 2016 20:47:55 -0600
Subject: [PATCH] Higher-half kernel mapping. Unmap where possible, freeing up
 lower memory

---
 syscall/process.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/syscall/process.rs b/syscall/process.rs
index 9c3e5b4f..c7ff1ee4 100644
--- a/syscall/process.rs
+++ b/syscall/process.rs
@@ -79,6 +79,7 @@ pub fn clone(flags: usize, stack_base: usize) -> Result<usize> {
                                       stack.start_address().get() as *const u8,
                                       stack.size());
             }
+            new_stack.unmap(true);
             stack_option = Some(new_stack);
         }
     }
-- 
GitLab