Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

audit: suppress stock memalloc failure warnings since already managed

Supress the stock memory allocation failure warnings for audit buffers
since audit alreay takes care of memory allocation failure warnings, including
rate-limiting, in audit_log_start().

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Eric Paris <eparis@redhat.com>

authored by

Richard Guy Briggs and committed by
Eric Paris
a20b62bd d3aea84a

+2 -1
+2 -1
security/lsm_audit.c
··· 396 396 if (a == NULL) 397 397 return; 398 398 /* we use GFP_ATOMIC so we won't sleep */ 399 - ab = audit_log_start(current->audit_context, GFP_ATOMIC, AUDIT_AVC); 399 + ab = audit_log_start(current->audit_context, GFP_ATOMIC | __GFP_NOWARN, 400 + AUDIT_AVC); 400 401 401 402 if (ab == NULL) 402 403 return;