commit | de7c4cc947f9f56f61520ee7edaf380434a98c8d | [log] [tgz] |
---|---|---|
author | John Johansen <john.johansen@canonical.com> | Wed Dec 16 18:09:10 2015 -0800 |
committer | John Johansen <john.johansen@canonical.com> | Tue Jul 12 08:43:10 2016 -0700 |
tree | 8da638b921498bba5fca1fc2b4192166f45700ef | |
parent | 0b938a2e2cf0b0a2c8bac9769111545aff0fee97 [diff] |
apparmor: fix refcount race when finding a child profile When finding a child profile via an rcu critical section, the profile may be put and scheduled for deletion after the child is found but before its refcount is incremented. Protect against this by repeating the lookup if the profiles refcount is 0 and is one its way to deletion. Signed-off-by: John Johansen <john.johansen@canonical.com> Acked-by: Seth Arnold <seth.arnold@canonical.com>