mirror of
https://github.com/dynup/kpatch
synced 2024-12-13 00:44:34 +00:00
0e0cee369a
Added integration-test patches rebased against rhel-7.7 GA kernel. No conflicts, some fuzz. Signed-off-by: Artem Savkov <asavkov@redhat.com>
15 lines
440 B
Diff
15 lines
440 B
Diff
Index: kernel/mm/mmap.c
|
|
===================================================================
|
|
--- kernel.orig/mm/mmap.c
|
|
+++ kernel/mm/mmap.c
|
|
@@ -1716,6 +1716,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, len >> PAGE_SHIFT)) {
|
|
unsigned long nr_pages;
|