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 2023-05-18 13:26:13.475170596 -0400
|
|
+++ src/mm/mmap.c 2023-05-18 13:26:54.612122123 -0400
|
|
@@ -1691,6 +1691,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;
|