Skip to content
Snippets Groups Projects
Commit da2d96d3 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Merge tag 'nios2-fixes-v3.19-final' of git://git.rocketboards.org/linux-socfpga-next

Pull nios2 fix from Ley Foon Tan:
 "This fixes incorrect behavior of some user programs"

* tag 'nios2-fixes-v3.19-final' of git://git.rocketboards.org/linux-socfpga-next:
  nios2: fix unhandled signals
parents cdecbb33 a3248d60
No related branches found
No related tags found
No related merge requests found
...@@ -159,9 +159,11 @@ bad_area: ...@@ -159,9 +159,11 @@ bad_area:
bad_area_nosemaphore: bad_area_nosemaphore:
/* User mode accesses just cause a SIGSEGV */ /* User mode accesses just cause a SIGSEGV */
if (user_mode(regs)) { if (user_mode(regs)) {
pr_alert("%s: unhandled page fault (%d) at 0x%08lx, " if (unhandled_signal(current, SIGSEGV) && printk_ratelimit()) {
"cause %ld\n", current->comm, SIGSEGV, address, cause); pr_info("%s: unhandled page fault (%d) at 0x%08lx, "
show_regs(regs); "cause %ld\n", current->comm, SIGSEGV, address, cause);
show_regs(regs);
}
_exception(SIGSEGV, regs, code, address); _exception(SIGSEGV, regs, code, address);
return; return;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment