--- mm/mmap.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mm/mmap.c b/mm/mmap.c index dd4b35a25aeb..f927744e6384 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -1464,9 +1464,17 @@ unsigned long mmap_region(struct file *file, unsigned long addr, */ if (unlikely(vm_flags != vma->vm_flags && vmg.prev)) { vmg.flags = vma->vm_flags; + + pr_err("LJS: HIT CASE [%lx, %lx) orig flags=[%lu] flags=[%lu]\n", + vma->vm_start, vma->vm_end, vm_flags, vma->vm_flags); + /* If this fails, state is reset ready for a reattempt. */ merge = vma_merge_new_range(&vmg); + pr_err("LJS: HIT CASE POST MERGE [%lx, %lx) merge=%s\n", + vma->vm_start, vma->vm_end, + merge == NULL ? "false" : "success"); + if (merge) { /* * ->mmap() can change vma->vm_file and fput -- 2.46.2