diff options
| author | Chris Wright <chrisw@osdl.org> | 2004-10-22 19:49:57 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-10-22 19:49:57 -0700 |
| commit | 67a2dad3e8fa684029099fe5ee461cdf9b28e88e (patch) | |
| tree | 064230fdb007e1d0d26ff32785bbde313a8dcbaa /include/linux | |
| parent | 69fbc509599aace0dd75121d993da74c70c619a6 (diff) | |
[PATCH] delay rq_lock acquisition in setscheduler
Doing access control checks with rq_lock held can cause deadlock when
audit messages are created (via printk or audit infrastructure) which
trigger a wakeup and deadlock, as noted by both SELinux and SubDomain
folks. This patch will let the security checks happen w/out lock held,
then re-sample the p->policy in case it was raced.
Originally from John Johansen <johansen@immunix.com>, reworked by me.
AFAIK, this version drew no objections from Ingo or Andrea.
From: John Johansen <johansen@immunix.com>
Acked-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Chris Wright <chrisw@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions
