linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ia64: Make stack VMA anonymous
@ 2018-08-01 13:08 Kirill A. Shutemov
  2018-08-01 15:32 ` Luck, Tony
  0 siblings, 1 reply; 2+ messages in thread
From: Kirill A. Shutemov @ 2018-08-01 13:08 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds
  Cc: Dmitry Vyukov, Oleg Nesterov, Andrea Arcangeli, Tony Luck,
	linux-mm, linux-kernel, Kirill A. Shutemov

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(+)

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: [PATCH] ia64: Make stack VMA anonymous
  2018-08-01 13:08 [PATCH] ia64: Make stack VMA anonymous Kirill A. Shutemov
@ 2018-08-01 15:32 ` Luck, Tony
  0 siblings, 0 replies; 2+ messages in thread
From: Luck, Tony @ 2018-08-01 15:32 UTC (permalink / raw)
  To: Kirill A. Shutemov, Andrew Morton, Linus Torvalds
  Cc: Dmitry Vyukov, Oleg Nesterov, Andrea Arcangeli, linux-mm, linux-kernel

> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-01 15:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-01 13:08 [PATCH] ia64: Make stack VMA anonymous Kirill A. Shutemov
2018-08-01 15:32 ` Luck, Tony

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox