Patch "vm: make stack guard page errors return VM_FAULT_SIGSEGV rather than SIGBUS" has been added to the 3.14-stable tree
Subsystems (3)
This is a note to let you know that I've just added the patch titled
vm: make stack guard page errors return VM_FAULT_SIGSEGV rather than SIGBUS
to the 3.14-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
vm-make-stack-guard-page-errors-return-vm_fault_sigsegv-rather-than-sigbus.patch
and it can be found in the queue-3.14 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
9c145c56d0c8a0b62e48c8d71e055ad0fb2012baMon Sep 17 00:00:00 2001
From: Linus Torvalds <[email protected]>
Date: Thu, 29 Jan 2015 11:15:17 -0800
Subject: vm: make stack guard page errors return VM_FAULT_SIGSEGV rather than SIGBUS
From: Linus Torvalds <[email protected]>
commit 9c145c56d0c8a0b62e48c8d71e055ad0fb2012ba upstream.
The stack guard page error case has long incorrectly caused a SIGBUS rather than a SIGSEGV, but nobody actually noticed until commit fee7e49d4514 ("mm: propagate error from stack expansion even for guard page") because that error case was never actually triggered in any normal situations.
Now that we actually report the error, people noticed the wrong signal that resulted. So far, only the test suite of libsigsegv seems to have actually cared, but there are real applications that use libsigsegv, so let's not wait for any of those to break.
--- mm/memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory.c +1 -1
@@ -3236,7 +3236,7 @@ static int do_anonymous_page(struct mm_s/* Check if we need to add a guard page to the stack */ if (check_stack_guard_page (vma, address) <0 ) -return VM_FAULT_SIGBUS ; +return VM_FAULT_SIGSEGV ;/* Use the zero-page for reads */ if (!(flags &FAULT_FLAG_WRITE )) {
Patches currently in stable-queue which might be from [email protected] are
queue-3.14/vm-make-stack-guard-page-errors-return-vm_fault_sigsegv-rather-than-sigbus.patch queue-3.14/x86-mm-move-mmap_sem-unlock-from-mm_fault_error-to-caller.patch queue-3.14/mm-hwpoison-drop-lru_add_drain_all-in-__soft_offline_page.patch queue-3.14/vm-add-vm_fault_sigsegv-handling-support.patch