summaryrefslogtreecommitdiff
path: root/lib/gcd.c
diff options
context:
space:
mode:
authorJohn Johansen <john.johansen@canonical.com>2011-06-28 15:06:38 +0100
committerJonas ABERG <jonas.aberg@stericsson.com>2011-10-28 11:15:57 +0200
commit3ea95d46ec44fd8d2eba9bd065d1203f09158bef (patch)
tree7c9edac34445969c1cd51c703e8e8b4dcd5263f2 /lib/gcd.c
parent15498c389ee7534b7b2828ee40eb5efad0b8f037 (diff)
AppArmor: Fix reference to rcu protected pointer outside of rcu_read_lock
commit 04fdc099f9c80c7775dbac388fc97e156d4d47e7 upstream. The pointer returned from tracehook_tracer_task() is only valid inside the rcu_read_lock. However the tracer pointer obtained is being passed to aa_may_ptrace outside of the rcu_read_lock critical section. Mover the aa_may_ptrace test into the rcu_read_lock critical section, to fix this. Kernels affected: 2.6.36 - 3.0 Reported-by: Oleg Nesterov <oleg@redhat.com> Signed-off-by: John Johansen <john.johansen@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Change-Id: I4ce729d8fbcf307c21c65819333ee3a931581d3f Reviewed-on: http://gerrit.lud.stericsson.com/gerrit/35670 Tested-by: Per VAHLNE <per.xx.vahlne@stericsson.com> Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Diffstat (limited to 'lib/gcd.c')
0 files changed, 0 insertions, 0 deletions