Re: [PATCH] audit: fix memleak in auditd_send_unicast_skb.

2017-07-19 Thread Paul Moore
redhat.com >> Sent: Tuesday, July 18, 2017 8:21:05 PM >> Subject: Re: [PATCH] audit: fix memleak in auditd_send_unicast_skb. >> >> On Tue, Jul 18, 2017 at 2:37 AM, wrote: >> > From: Shu Wang >> > >> > Found this issue by kmemleak report, auditd_sen

Re: [PATCH] audit: fix memleak in auditd_send_unicast_skb.

2017-07-18 Thread Shu Wang
- Original Message - > From: "Paul Moore" > To: shuw...@redhat.com > Cc: "Eric Paris" , linux-au...@redhat.com, > linux-kernel@vger.kernel.org, liw...@redhat.com, > ch...@redhat.com > Sent: Tuesday, July 18, 2017 8:21:05 PM > S

Re: [PATCH] audit: fix memleak in auditd_send_unicast_skb.

2017-07-18 Thread Paul Moore
On Tue, Jul 18, 2017 at 2:37 AM, wrote: > From: Shu Wang > > Found this issue by kmemleak report, auditd_send_unicast_skb > did not free skb if rcu_dereference(auditd_conn) returns null. > > unreferenced object 0x88082568ce00 (size 256): > comm "auditd", pid 1119, jiffies 4294708499 > backtr

[PATCH] audit: fix memleak in auditd_send_unicast_skb.

2017-07-17 Thread shuwang
From: Shu Wang Found this issue by kmemleak report, auditd_send_unicast_skb did not free skb if rcu_dereference(auditd_conn) returns null. unreferenced object 0x88082568ce00 (size 256): comm "auditd", pid 1119, jiffies 4294708499 backtrace: [] kmemleak_alloc+0x4a/0xa0 [] kmem_cache_alloc_nod