summaryrefslogtreecommitdiff
path: root/security/selinux/hooks.c
diff options
context:
space:
mode:
authorPaul Moore <paul@paul-moore.com>2025-06-18 19:17:33 +0300
committerPaul Moore <paul@paul-moore.com>2025-06-20 00:24:57 +0300
commit9ab71d9204c32a9814d38528d066fdf6fa128604 (patch)
tree8d860b419c813ccfedd3a348e514c86b36d26cd4 /security/selinux/hooks.c
parent951b2de06a0bd64930949c7d3bd5a113cdf24189 (diff)
downloadlinux-9ab71d9204c32a9814d38528d066fdf6fa128604.tar.xz
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: syzbot+bc2c99c2929c3d219fb3@syzkaller.appspotmail.com Tested-by: syzbot+bc2c99c2929c3d219fb3@syzkaller.appspotmail.com Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions