Commit b2fba2f3 authored by Linus Torvalds's avatar Linus Torvalds

Follow 2.4.x semantics for in-kernel signal sending.

parent 22e53c65
...@@ -1196,6 +1196,13 @@ send_sig_info(int sig, struct siginfo *info, struct task_struct *p) ...@@ -1196,6 +1196,13 @@ send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
int ret; int ret;
unsigned long flags; unsigned long flags;
/*
* Make sure legacy kernel users don't send in bad values
* (normal paths check this in check_kill_permission).
*/
if (sig < 0 || sig > _NSIG)
return -EINVAL;
/* /*
* We need the tasklist lock even for the specific * We need the tasklist lock even for the specific
* thread case (when we don't need to follow the group * thread case (when we don't need to follow the group
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment