[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180801130801.30095-1-kirill.shutemov@linux.intel.com>
Date: Wed, 1 Aug 2018 16:08:01 +0300
From: "Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Dmitry Vyukov <dvyukov@...gle.com>,
Oleg Nesterov <oleg@...hat.com>,
Andrea Arcangeli <aarcange@...hat.com>,
Tony Luck <tony.luck@...el.com>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org,
"Kirill A. Shutemov" <kirill.shutemov@...ux.intel.com>
Subject: [PATCH] ia64: Make stack VMA anonymous
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@...ux.intel.com>
Reported-by: Tony Luck <tony.luck@...el.com>
Fixes: bfd40eaff5ab ("mm: fix vma_is_anonymous() false-positives")
---
arch/ia64/mm/init.c | 1 +
1 file changed, 1 insertion(+)
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;
--
2.18.0
Powered by blists - more mailing lists