Commit 9ab71d92 authored by Paul Moore's avatar Paul Moore
Browse files

selinux: add __GFP_NOWARN to hashtab_init() allocations



As reported by syzbot, hashtab_init() can be affected by abnormally
large policy loads which would cause the kernel's allocator to emit
a warning in some configurations.  Since the SELinux hashtab_init()
code handles the case where the allocation fails, due to a large
request or some other reason, we can safely add the __GFP_NOWARN flag
to squelch these abnormally large allocation warnings.

Reported-by: default avatar <syzbot+bc2c99c2929c3d219fb3@syzkaller.appspotmail.com>
Tested-by: default avatar <syzbot+bc2c99c2929c3d219fb3@syzkaller.appspotmail.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 951b2de0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment