]> git.baikalelectronics.ru Git - kernel.git/commit
audit: add gfp parameter to audit_log_nfcfg
authorRichard Guy Briggs <rgb@redhat.com>
Sun, 28 Jun 2020 03:24:19 +0000 (23:24 -0400)
committerPaul Moore <paul@paul-moore.com>
Mon, 29 Jun 2020 23:14:47 +0000 (19:14 -0400)
commitc94189cff118ffcd107fc2ec9e865530659725b4
tree6b4bb17ba27798a248ab3f5d1819b77fdfae1865
parent8a42e2493bd809159c82c53555fcd6e0d882748c
audit: add gfp parameter to audit_log_nfcfg

Fixed an inconsistent use of GFP flags in nft_obj_notify() that used
GFP_KERNEL when a GFP flag was passed in to that function.  Given this
allocated memory was then used in audit_log_nfcfg() it led to an audit
of all other GFP allocations in net/netfilter/nf_tables_api.c and a
modification of audit_log_nfcfg() to accept a GFP parameter.

Reported-by: Dan Carptenter <dan.carpenter@oracle.com>
Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
include/linux/audit.h
kernel/auditsc.c
net/bridge/netfilter/ebtables.c
net/netfilter/nf_tables_api.c
net/netfilter/x_tables.c