File: gcc-static-local-var.patch

package info (click to toggle)
kpatch 0.9.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,716 kB
  • sloc: ansic: 9,716; sh: 2,592; makefile: 260; asm: 35
file content (25 lines) | stat: -rw-r--r-- 653 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff -Nupr src.orig/arch/x86/kernel/ldt.c src/arch/x86/kernel/ldt.c
--- src.orig/arch/x86/kernel/ldt.c	2017-09-22 15:27:20.847052651 -0400
+++ src/arch/x86/kernel/ldt.c	2017-09-22 15:27:35.573113632 -0400
@@ -98,6 +98,12 @@ static inline int copy_ldt(mm_context_t
 	return 0;
 }
 
+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.
@@ -107,6 +113,8 @@ int init_new_context(struct task_struct
 	struct mm_struct *old_mm;
 	int retval = 0;
 
+	hi_there();
+
 	mutex_init(&mm->context.lock);
 	mm->context.size = 0;
 	old_mm = current->mm;