Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

frv: avoid infinite loop of SIGSEGV delivery

Use force_sigsegv() rather than force_sig(SIGSEGV, ...) as the former
resets the SEGV handler pointer which will kill the process, rather than
leaving it open to an infinite loop if the SEGV handler itself caused a
SEGV signal.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Al Viro and committed by
Linus Torvalds
ad0acab4 5f4ad04a

+2 -2
+2 -2
arch/frv/kernel/signal.c
··· 329 329 return 0; 330 330 331 331 give_sigsegv: 332 - force_sig(SIGSEGV, current); 332 + force_sigsegv(sig, current); 333 333 return -EFAULT; 334 334 335 335 } /* end setup_frame() */ ··· 431 431 return 0; 432 432 433 433 give_sigsegv: 434 - force_sig(SIGSEGV, current); 434 + force_sigsegv(sig, current); 435 435 return -EFAULT; 436 436 437 437 } /* end setup_rt_frame() */