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

Commit 3cf5d076 authored by Eric W. Biederman's avatar Eric W. Biederman
Browse files

signal: Remove task parameter from force_sig



All of the remaining callers pass current into force_sig so
remove the task parameter to make this obvious and to make
misuse more difficult in the future.

This also makes it clear force_sig passes current into force_sig_info.

Signed-off-by: default avatar"Eric W. Biederman" <ebiederm@xmission.com>
parent cb44c9a0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -225,7 +225,7 @@ do_sigreturn(struct sigcontext __user *sc)
	return;

give_sigsegv:
	force_sig(SIGSEGV, current);
	force_sig(SIGSEGV);
}

asmlinkage void
@@ -253,7 +253,7 @@ do_rt_sigreturn(struct rt_sigframe __user *frame)
	return;

give_sigsegv:
	force_sig(SIGSEGV, current);
	force_sig(SIGSEGV);
}


+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ SYSCALL_DEFINE3(arc_usr_cmpxchg, int *, uaddr, int, expected, int, new)
		 goto again;

fail:
	force_sig(SIGSEGV, current);
	force_sig(SIGSEGV);
	return ret;
}

+1 −1
Original line number Diff line number Diff line
@@ -197,7 +197,7 @@ SYSCALL_DEFINE0(rt_sigreturn)
	return regs->r0;

badframe:
	force_sig(SIGSEGV, current);
	force_sig(SIGSEGV);
	return 0;
}

+2 −2
Original line number Diff line number Diff line
@@ -250,7 +250,7 @@ asmlinkage int sys_sigreturn(struct pt_regs *regs)
	return regs->ARM_r0;

badframe:
	force_sig(SIGSEGV, current);
	force_sig(SIGSEGV);
	return 0;
}

@@ -283,7 +283,7 @@ asmlinkage int sys_rt_sigreturn(struct pt_regs *regs)
	return regs->ARM_r0;

badframe:
	force_sig(SIGSEGV, current);
	force_sig(SIGSEGV);
	return 0;
}

+1 −1
Original line number Diff line number Diff line
@@ -257,7 +257,7 @@ void arm64_force_sig_fault(int signo, int code, void __user *addr,
{
	arm64_show_signal(signo, str);
	if (signo == SIGKILL)
		force_sig(SIGKILL, current);
		force_sig(SIGKILL);
	else
		force_sig_fault(signo, code, addr, current);
}
Loading