lkml.org 
[lkml]   [2020]   [Jun]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH ghak124 v3fix] audit: add gfp parameter to audit_log_nfcfg
On Sat, Jun 27, 2020 at 11:25 PM Richard Guy Briggs <rgb@redhat.com> wrote:
>
> 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>
> ---
> Passes audit-testsuite.
>
> include/linux/audit.h | 8 ++++----
> kernel/auditsc.c | 4 ++--
> net/bridge/netfilter/ebtables.c | 6 +++---
> net/netfilter/nf_tables_api.c | 33 +++++++++++++++++++++------------
> net/netfilter/x_tables.c | 5 +++--
> 5 files changed, 33 insertions(+), 23 deletions(-)

Merged into audit/next.

--
paul moore
www.paul-moore.com

\
 
 \ /
  Last update: 2020-06-30 01:25    [W:0.084 / U:2.768 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site