signal: Remove the signal number and task parameters from force_sig_info
force_sig_info always delivers to the current task and the signal parameter always matches info.si_signo. So remove those parameters to make it a simpler less error prone interface, and to make it clear that none of the callers are doing anything clever. This guarantees that force_sig_info will not grow any new buggy callers that attempt to call force_sig on a non-current task, or that pass an signal number that does not match info.si_signo. Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
@@ -355,7 +355,7 @@ static inline void user_single_step_report(struct pt_regs *regs)
|
||||
info.si_code = SI_USER;
|
||||
info.si_pid = 0;
|
||||
info.si_uid = 0;
|
||||
force_sig_info(info.si_signo, &info, current);
|
||||
force_sig_info(&info);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user