diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-14 10:09:48 -0600 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-08-14 10:09:48 -0600 |
commit | 311bf6d1cbfc288ccd6e6480cbf104da2447b524 (patch) | |
tree | 1daf6dea42eee46481feef90a66242df9e768f38 /kernel/fork.c | |
parent | 82f05a08e27755835c948b7a45b86fac9e114e1d (diff) | |
parent | 69f6a34bdeea4fec50bb90619bc9602973119572 (diff) | |
download | linux-311bf6d1cbfc288ccd6e6480cbf104da2447b524.tar.gz linux-311bf6d1cbfc288ccd6e6480cbf104da2447b524.tar.bz2 linux-311bf6d1cbfc288ccd6e6480cbf104da2447b524.zip |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull seccomp fix from James Morris.
BUG(!spin_is_locked()) really doesn't work very well in UP
configurations without any actual spinlock state. Which is very much
why we have that "assert_spin_lock()" function for this.
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security:
seccomp: Replace BUG(!spin_is_locked()) with assert_spin_lock
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 1380d8ace334..0cf9cdb6e491 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -1105,7 +1105,7 @@ static void copy_seccomp(struct task_struct *p) * needed because this new task is not yet running and cannot * be racing exec. */ - BUG_ON(!spin_is_locked(¤t->sighand->siglock)); + assert_spin_locked(¤t->sighand->siglock); /* Ref-count the new filter user, and assign it. */ get_seccomp_filter(current); |