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.

signal: Replace force_sigsegv(SIGSEGV) with force_fatal_sig(SIGSEGV)

Now that force_fatal_sig exists it is unnecessary and a bit confusing
to use force_sigsegv in cases where the simpler force_fatal_sig is
wanted. So change every instance we can to make the code clearer.

Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Link: https://lkml.kernel.org/r/877de7jrev.fsf@disp2133
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>

+9 -9
+1 -1
arch/arc/kernel/process.c
··· 294 294 eflags = x->e_flags; 295 295 if ((eflags & EF_ARC_OSABI_MSK) != EF_ARC_OSABI_CURRENT) { 296 296 pr_err("ABI mismatch - you need newer toolchain\n"); 297 - force_sigsegv(SIGSEGV); 297 + force_fatal_sig(SIGSEGV); 298 298 return 0; 299 299 } 300 300
+1 -1
arch/m68k/kernel/traps.c
··· 1150 1150 */ 1151 1151 asmlinkage void fpsp040_die(void) 1152 1152 { 1153 - force_sigsegv(SIGSEGV); 1153 + force_fatal_sig(SIGSEGV); 1154 1154 } 1155 1155 1156 1156 #ifdef CONFIG_M68KFPU_EMU
+1 -1
arch/powerpc/kernel/signal_32.c
··· 1063 1063 * We kill the task with a SIGSEGV in this situation. 1064 1064 */ 1065 1065 if (do_setcontext(new_ctx, regs, 0)) { 1066 - force_sigsegv(SIGSEGV); 1066 + force_fatal_sig(SIGSEGV); 1067 1067 return -EFAULT; 1068 1068 } 1069 1069
+2 -2
arch/powerpc/kernel/signal_64.c
··· 704 704 */ 705 705 706 706 if (__get_user_sigset(&set, &new_ctx->uc_sigmask)) { 707 - force_sigsegv(SIGSEGV); 707 + force_fatal_sig(SIGSEGV); 708 708 return -EFAULT; 709 709 } 710 710 set_current_blocked(&set); ··· 713 713 return -EFAULT; 714 714 if (__unsafe_restore_sigcontext(current, NULL, 0, &new_ctx->uc_mcontext)) { 715 715 user_read_access_end(); 716 - force_sigsegv(SIGSEGV); 716 + force_fatal_sig(SIGSEGV); 717 717 return -EFAULT; 718 718 } 719 719 user_read_access_end();
+1 -1
arch/s390/kernel/traps.c
··· 84 84 { 85 85 if (user_mode(regs)) { 86 86 report_user_fault(regs, SIGSEGV, 0); 87 - force_sigsegv(SIGSEGV); 87 + force_fatal_sig(SIGSEGV); 88 88 } else 89 89 die(regs, "Unknown program exception"); 90 90 }
+1 -1
arch/um/kernel/trap.c
··· 158 158 159 159 void fatal_sigsegv(void) 160 160 { 161 - force_sigsegv(SIGSEGV); 161 + force_fatal_sig(SIGSEGV); 162 162 do_signal(&current->thread.regs); 163 163 /* 164 164 * This is to tell gcc that we're not returning - do_signal
+1 -1
arch/x86/kernel/vm86_32.c
··· 160 160 user_access_end(); 161 161 Efault: 162 162 pr_alert("could not access userspace vm86 info\n"); 163 - force_sigsegv(SIGSEGV); 163 + force_fatal_sig(SIGSEGV); 164 164 goto exit_vm86; 165 165 } 166 166
+1 -1
fs/exec.c
··· 1852 1852 * SIGSEGV. 1853 1853 */ 1854 1854 if (bprm->point_of_no_return && !fatal_signal_pending(current)) 1855 - force_sigsegv(SIGSEGV); 1855 + force_fatal_sig(SIGSEGV); 1856 1856 1857 1857 out_unmark: 1858 1858 current->fs->in_exec = 0;