Mailinglist Archive: opensuse-bugs (4644 mails)

< Previous Next >
[Bug 1045340] regression: java segfaults on latest kernels caused by the stack gap fix
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Thu, 22 Jun 2017 07:25:12 +0000
  • Message-id: <>

--- Comment #14 from Michal Hocko <mhocko@xxxxxxxx> ---
Thank you Vlastimil! Very helpful. So it doesn't look like an accounting bug
which I was suspecting. I am really surprised the mapping in the middle doesn't
have VM_GROWSDOWN. mprotect should preserve VM_GROWS* flag.

And indeed mprotect does the following
vm_flags = calc_vm_prot_bits(prot);
newflags = vm_flags;
newflags |= (vma->vm_flags & ~(VM_READ | VM_WRITE | VM_EXEC));

so it should preserve everything but RWX which are taken from the given prot
parameter. Maybe I am missing something though. I will be staring into the code
some more.

You are receiving this mail because:
You are on the CC list for the bug.
< Previous Next >