summaryrefslogtreecommitdiffstats
path: root/net/ife
diff options
context:
space:
mode:
authorShu Wang <shuwang@redhat.com>2017-07-18 14:37:24 +0800
committerPaul Moore <paul@paul-moore.com>2017-07-19 10:28:54 -0400
commitb0659ae5e30074ede1dc08f2c6d64f0c11d64e0f (patch)
tree5fb538e047da627deb134dec716d5965206cd748 /net/ife
parentcd33f5f2cbfaadc21270f3ddac7c3c33e0a1a28c (diff)
downloadtalos-obmc-linux-b0659ae5e30074ede1dc08f2c6d64f0c11d64e0f.tar.gz
talos-obmc-linux-b0659ae5e30074ede1dc08f2c6d64f0c11d64e0f.zip
audit: fix memleak in auditd_send_unicast_skb.
Found this issue by kmemleak report, auditd_send_unicast_skb did not free skb if rcu_dereference(auditd_conn) returns null. unreferenced object 0xffff88082568ce00 (size 256): comm "auditd", pid 1119, jiffies 4294708499 backtrace: [<ffffffff8176166a>] kmemleak_alloc+0x4a/0xa0 [<ffffffff8121820c>] kmem_cache_alloc_node+0xcc/0x210 [<ffffffff8161b99d>] __alloc_skb+0x5d/0x290 [<ffffffff8113c614>] audit_make_reply+0x54/0xd0 [<ffffffff8113dfa7>] audit_receive_msg+0x967/0xd70 ---------------- (gdb) list *audit_receive_msg+0x967 0xffffffff8113dff7 is in audit_receive_msg (kernel/audit.c:1133). 1132 skb = audit_make_reply(0, AUDIT_REPLACE, 0, 0, &pvnr, sizeof(pvnr)); --------------- [<ffffffff8113e402>] audit_receive+0x52/0xa0 [<ffffffff8166c561>] netlink_unicast+0x181/0x240 [<ffffffff8166c8e2>] netlink_sendmsg+0x2c2/0x3b0 [<ffffffff816112e8>] sock_sendmsg+0x38/0x50 [<ffffffff816117a2>] SYSC_sendto+0x102/0x190 [<ffffffff81612f4e>] SyS_sendto+0xe/0x10 [<ffffffff8176d337>] entry_SYSCALL_64_fastpath+0x1a/0xa5 [<ffffffffffffffff>] 0xffffffffffffffff Signed-off-by: Shu Wang <shuwang@redhat.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'net/ife')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud