mirror of https://github.com/dynup/kpatch
26 lines
649 B
Diff
26 lines
649 B
Diff
diff -Nupr src.orig/arch/x86/kernel/ldt.c src/arch/x86/kernel/ldt.c
|
|
--- src.orig/arch/x86/kernel/ldt.c 2016-12-15 19:55:57.560000000 +0000
|
|
+++ src/arch/x86/kernel/ldt.c 2016-12-15 19:57:01.124000000 +0000
|
|
@@ -99,6 +99,12 @@ static void free_ldt_struct(struct ldt_s
|
|
kfree(ldt);
|
|
}
|
|
|
|
+void hi_there(void)
|
|
+{
|
|
+ if (!jiffies)
|
|
+ printk("hi there\n");
|
|
+}
|
|
+
|
|
/*
|
|
* we do not have to muck with descriptors here, that is
|
|
* done in switch_mm() as needed.
|
|
@@ -109,6 +115,8 @@ int init_new_context(struct task_struct
|
|
struct mm_struct *old_mm;
|
|
int retval = 0;
|
|
|
|
+ hi_there();
|
|
+
|
|
mutex_init(&mm->context.lock);
|
|
old_mm = current->mm;
|
|
if (!old_mm) {
|