Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d88a735a authored by Michal Hocko's avatar Michal Hocko Committed by Dennis Cagle
Browse files

selinux: use GFP_NOWAIT in the AVC kmem_caches



There is a strange __GFP_NOMEMALLOC usage pattern in SELinux,
specifically GFP_ATOMIC | __GFP_NOMEMALLOC which doesn't make much
sense.  GFP_ATOMIC on its own allows to access memory reserves while
__GFP_NOMEMALLOC dictates we cannot use memory reserves.  Replace this
with the much more sane GFP_NOWAIT in the AVC code as we can tolerate
memory allocation failures in that code.

Change-Id: I3876a6b95bdacc67c65c45f42593423faa9271b4
Signed-off-by: default avatarMichal Hocko <mhocko@kernel.org>
Acked-by: default avatarMel Gorman <mgorman@suse.de>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
Git-repo: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git


Git-commit: 476accbe2f6ef69caeebe99f52a286e12ac35aee
Signed-off-by: default avatarDennis Cagle <dcagle@codeaurora.org>
parent 40c1b6f6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment