[PATCH] audit: fix a net reference leak in audit_send_reply()

Paul Moore paul at paul-moore.com
Mon Apr 20 23:35:55 UTC 2020


On Mon, Apr 20, 2020 at 6:27 PM Richard Guy Briggs <rgb at redhat.com> wrote:
> On 2020-04-20 16:04, Paul Moore wrote:
> > If audit_send_reply() fails when trying to create a new thread to
> > send the reply it also fails to cleanup properly, leaking a reference
> > to a net structure.  This patch fixes the error path and makes a
> > handful of other cleanups that came up while fixing the code.
>
> Looks good to me.
>
> > Reported-by: teroincn at gmail.com
> > Signed-off-by: Paul Moore <paul at paul-moore.com>
>
> Reviewed-by: Richard Guy Briggs <rgb at redhat.com>

Thanks.  I just merged this into audit/next.

-- 
paul moore
www.paul-moore.com





More information about the Linux-audit mailing list