Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202555
b: refs/heads/master
c: 694f690
h: refs/heads/master
i:
  202553: 9643150
  202551: 7c80a98
v: v3
  • Loading branch information
David Howells authored and Linus Torvalds committed Aug 4, 2010
1 parent 5b55627 commit c091cb7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e75aa85892b2ee78c79edac720868cbef16e62eb
refs/heads/master: 694f690d27dadccc8cb9d90532e76593b61fe098
9 changes: 6 additions & 3 deletions trunk/kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,7 @@ static inline bool si_fromuser(const struct siginfo *info)

/*
* Bad permissions for sending the signal
* - the caller must hold at least the RCU read lock
* - the caller must hold the RCU read lock
*/
static int check_kill_permission(int sig, struct siginfo *info,
struct task_struct *t)
Expand Down Expand Up @@ -1127,11 +1127,14 @@ struct sighand_struct *lock_task_sighand(struct task_struct *tsk, unsigned long

/*
* send signal info to all the members of a group
* - the caller must hold the RCU read lock at least
*/
int group_send_sig_info(int sig, struct siginfo *info, struct task_struct *p)
{
int ret = check_kill_permission(sig, info, p);
int ret;

rcu_read_lock();
ret = check_kill_permission(sig, info, p);
rcu_read_unlock();

if (!ret && sig)
ret = do_send_sig_info(sig, info, p, true);
Expand Down

0 comments on commit c091cb7

Please sign in to comment.