kernel-fxtec-pro1x/security
Jann Horn 4834eabf1d 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: b2d09ae449 ("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>
Git-commit: ca3fde5214e1d24f78269b337d3f22afd6bf445e
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Change-Id: I3d750f0e457a1755b2fa37aea14df2221c3aa2fc
Signed-off-by: Jiangjiang Shen <jiangjia@codeaurora.org>
2020-06-11 21:13:57 +08:00
..
apparmor apparmor: don't try to replace stale label in ptraceme check 2020-06-11 21:13:57 +08:00
integrity ima: fix freeing ongoing ahash_request 2019-10-11 18:21:11 +02:00
keys Merge remote-tracking branch 'aosp/upstream-f2fs-stable-linux-4.19.y' into android-4.19 2020-02-21 08:11:19 -08:00
loadpin module: replace the existing LSM hook in init_module 2018-07-16 12:31:57 -07:00
selinux Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
smack LSM: generalize flag passing to security_capable 2020-01-23 08:21:29 +01:00
tomoyo tomoyo: Use atomic_t for statistics counter 2020-02-05 14:43:38 +00:00
yama Yama: Check for pid death before checking ancestry 2019-01-22 21:40:32 +01:00
commoncap.c Merge android-4.19.110 (1984fff) into msm-4.19 2020-05-23 05:08:22 -07:00
device_cgroup.c device_cgroup: fix RCU imbalance in error case 2019-04-27 09:36:40 +02:00
inode.c This is the 4.19.46 stable release 2019-05-25 19:09:59 +02:00
Kconfig Restore "ANDROID: security,perf: Allow further restriction of perf_event_open" 2020-06-01 03:37:43 -07:00
Kconfig.hardening ANDROID: Fix allmodconfig build with CC=clang 2019-11-14 10:56:08 -08:00
lsm_audit.c missing barriers in some of unix_sock ->addr and ->path accesses 2019-03-19 13:12:41 +01:00
Makefile Revert existing FBE changes for ICE FBE 2020-04-24 15:19:09 -07:00
min_addr.c
security.c Revert existing FBE changes for ICE FBE 2020-04-24 15:19:09 -07:00