mirror of
https://github.com/dynup/kpatch
synced 2024-12-30 09:12:01 +00:00
76ebcd2fa4
This commit contains centos-7 patches rebased and adjusted to work with recent rhel minors so that integration tests actually pass on those. Signed-off-by: Artem Savkov <asavkov@redhat.com>
15 lines
458 B
Diff
15 lines
458 B
Diff
Index: kernel-rhel7/mm/mmap.c
|
|
===================================================================
|
|
--- kernel-rhel7.orig/mm/mmap.c
|
|
+++ kernel-rhel7/mm/mmap.c
|
|
@@ -1715,6 +1715,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;
|