Message ID | 20180801130801.30095-1-kirill.shutemov@linux.intel.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | ia64: Make stack VMA anonymous | expand |
> IA64 allocates stack in a custom way. Stack has to be marked as > anonymous otherwise the process will be killed with SIGBUS on the first > access to the stack. > > Add missing vma_set_anonymous(). That does the trick. Applied this patch on top of -rc7 and ia64 boots again. Tested-by: Tony Luck <tony.luck@intel.com> -Tony
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index e6c6dfd98de2..99044db28040 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c @@ -116,6 +116,7 @@ ia64_init_addr_space (void) */ vma = vm_area_alloc(current->mm); if (vma) { + vma_set_anonymous(vma); vma->vm_start = current->thread.rbs_bot & PAGE_MASK; vma->vm_end = vma->vm_start + PAGE_SIZE; vma->vm_flags = VM_DATA_DEFAULT_FLAGS|VM_GROWSUP|VM_ACCOUNT;
IA64 allocates stack in a custom way. Stack has to be marked as anonymous otherwise the process will be killed with SIGBUS on the first access to the stack. Add missing vma_set_anonymous(). Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Reported-by: Tony Luck <tony.luck@intel.com> Fixes: bfd40eaff5ab ("mm: fix vma_is_anonymous() false-positives") --- arch/ia64/mm/init.c | 1 + 1 file changed, 1 insertion(+)