-From ce70ea1a87d978c96f96d61d59c1779df51a4c57 Mon Sep 17 00:00:00 2001
+From 4aca2c63c7df7b19864939d543b478b100d568f6 Mon Sep 17 00:00:00 2001
 From: Cyrill Gorcunov <gorcunov@gmail.com>
-Date: Mon, 21 Nov 2011 16:27:49 +0400
-Subject: [PATCH 7/7] prctl: Add PR_ codes to restore vDSO and tune up
- mm_struct entires
+Date: Tue, 22 Nov 2011 21:08:43 +0400
+Subject: [PATCH] prctl: Add PR_ codes to restore vDSO and tune up mm_struct
+ entires
 
 To be able to use vDSO facility at process restore time we need it
 being mapped at predefined address (at the address it had at checkpoint

+			if (!vma)
+				goto out;
+
+			switch (arg2) {
+			case PR_SET_MM_START_CODE:
+				current->mm->start_code = arg3;

+
 #endif /* _LINUX_PRCTL_H */
diff --git a/kernel/sys.c b/kernel/sys.c
index 481611f..96ee568 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -123,6 +123,12 @@ EXPORT_SYMBOL(cad_pid);
