mirror of https://github.com/dynup/kpatch
14 lines
468 B
Diff
14 lines
468 B
Diff
diff -Nupr src.orig/mm/mmap.c src/mm/mmap.c
|
|
--- src.orig/mm/mmap.c 2020-05-12 11:14:32.110667908 -0400
|
|
+++ src/mm/mmap.c 2020-05-12 11:14:55.529652955 -0400
|
|
@@ -1679,6 +1679,9 @@ unsigned long mmap_region(struct file *f
|
|
struct rb_node **rb_link, *rb_parent;
|
|
unsigned long charged = 0;
|
|
|
|
+ if (!jiffies)
|
|
+ printk("kpatch mmap foo\n");
|
|
+
|
|
/* Check against address space limit. */
|
|
if (!may_expand_vm(mm, vm_flags, len >> PAGE_SHIFT)) {
|
|
unsigned long nr_pages;
|