mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
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
This commit is contained in:
@@ -159,9 +159,11 @@ bad_area:
|
||||
bad_area_nosemaphore:
|
||||
/* User mode accesses just cause a SIGSEGV */
|
||||
if (user_mode(regs)) {
|
||||
pr_alert("%s: unhandled page fault (%d) at 0x%08lx, "
|
||||
"cause %ld\n", current->comm, SIGSEGV, address, cause);
|
||||
show_regs(regs);
|
||||
if (unhandled_signal(current, SIGSEGV) && printk_ratelimit()) {
|
||||
pr_info("%s: unhandled page fault (%d) at 0x%08lx, "
|
||||
"cause %ld\n", current->comm, SIGSEGV, address, cause);
|
||||
show_regs(regs);
|
||||
}
|
||||
_exception(SIGSEGV, regs, code, address);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user