Jann Horn ca3fde5214 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: b2d09ae449ced ("apparmor: move ptrace checks to using labels")
Reported-by: Cyrill Gorcunov <gorcunov@gmail.com>
Reported-by: kernel test robot <rong.a.chen@intel.com>
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: John Johansen <john.johansen@canonical.com>
2018-10-03 06:29:22 -07:00
..
2018-10-03 06:18:38 -07:00
2017-04-07 08:58:35 +10:00
2018-02-09 11:30:01 -08:00
2018-05-03 00:50:12 -07:00
2018-05-03 00:50:30 -07:00
2018-10-03 06:18:38 -07:00
2018-10-03 06:18:38 -07:00
2018-02-09 11:30:01 -08:00
2018-06-07 01:51:01 -07:00
2018-10-03 06:18:17 -07:00