Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apparmor: don't try to replace stale label in ptraceme check
begin_current_label_crit_section() must run in sleepable context because when label_is_stale() is true, aa_replace_current_label() runs, which uses prepare_creds(), which can sleep. Until now, the ptraceme access check (which runs with tasklist_lock held) violated this rule. Fixes: b2d09ae ("apparmor: move ptrace checks to using labels") Reported-by: Cyrill Gorcunov <[email protected]> Reported-by: kernel test robot <[email protected]> Signed-off-by: Jann Horn <[email protected]> Signed-off-by: John Johansen <[email protected]>
- Loading branch information