Commit 40c72f20e89300dfaea28300ee17aa56d230d63f
Committed by
Kyle McMartin
1 parent
eba917273e
[PARISC] Prevent signal loops if we have a problem setting up a frame
2.6.13-rc6-pa2 use force_sigsegv() if we have a problem setting up a frame. This is required to prevent SIGSEGV loops. Signed-off-by: Randolph Chung <tausq@parisc-linux.org> Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Showing 1 changed file with 1 additions and 9 deletions Side-by-side Diff
arch/parisc/kernel/signal.c
... | ... | @@ -490,15 +490,7 @@ |
490 | 490 | |
491 | 491 | give_sigsegv: |
492 | 492 | DBG(1,"setup_rt_frame: sending SIGSEGV\n"); |
493 | - if (sig == SIGSEGV) | |
494 | - ka->sa.sa_handler = SIG_DFL; | |
495 | - si.si_signo = SIGSEGV; | |
496 | - si.si_errno = 0; | |
497 | - si.si_code = SI_KERNEL; | |
498 | - si.si_pid = current->pid; | |
499 | - si.si_uid = current->uid; | |
500 | - si.si_addr = frame; | |
501 | - force_sig_info(SIGSEGV, &si, current); | |
493 | + force_sigsegv(sig, current); | |
502 | 494 | return 0; |
503 | 495 | } |
504 | 496 |