diff options
| author | Michal Hocko <mhocko@kernel.org> | 2017-08-03 10:11:52 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-09-19 22:47:11 +0200 |
| commit | d1f534f11a39a3dc1a96cf8575f78ccad8fc9367 (patch) | |
| tree | 8a11201f961887e2672a4208af93d60d3b3157d7 /kernel/locking/osq_lock.c | |
| parent | 0cbde6c5b67307f353636f8074881fb4d1924709 (diff) | |
selinux: use GFP_NOWAIT in the AVC kmem_caches
commit 476accbe2f6ef69caeebe99f52a286e12ac35aee upstream.
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 <mhocko@kernel.org>
Acked-by: Mel Gorman <mgorman@suse.de>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'kernel/locking/osq_lock.c')
0 files changed, 0 insertions, 0 deletions
