Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 40c72f20 authored by Randolph Chung's avatar Randolph Chung Committed by Kyle McMartin
Browse files

[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: default avatarRandolph Chung <tausq@parisc-linux.org>

Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent eba91727
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -490,15 +490,7 @@ setup_rt_frame(int sig, struct k_sigaction *ka, siginfo_t *info,

give_sigsegv:
	DBG(1,"setup_rt_frame: sending SIGSEGV\n");
	if (sig == SIGSEGV)
		ka->sa.sa_handler = SIG_DFL;
	si.si_signo = SIGSEGV;
	si.si_errno = 0;
	si.si_code = SI_KERNEL;
	si.si_pid = current->pid;
	si.si_uid = current->uid;
	si.si_addr = frame;
	force_sig_info(SIGSEGV, &si, current);
	force_sigsegv(sig, current);
	return 0;
}