diff options
| author | Michal Hocko <[email protected]> | 2017-08-03 08:11:52 +0000 |
|---|---|---|
| committer | Paul Moore <[email protected]> | 2017-08-08 13:12:23 +0000 |
| commit | 476accbe2f6ef69caeebe99f52a286e12ac35aee (patch) | |
| tree | fa8f78eebbc6c5657634751906db4d445359cce5 /security/selinux/hooks.c | |
| parent | selinux: Generalize support for NNP/nosuid SELinux domain transitions (diff) | |
| download | kernel-476accbe2f6ef69caeebe99f52a286e12ac35aee.tar.gz kernel-476accbe2f6ef69caeebe99f52a286e12ac35aee.zip | |
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.
Signed-off-by: Michal Hocko <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Signed-off-by: Paul Moore <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
