netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tc: Fix unitialized kernel memory leak
@ 2009-09-02 12:40 Eric Dumazet
  2009-09-02 18:09 ` Jiri Pirko
  2009-09-02 19:05 ` Stephen Hemminger
  0 siblings, 2 replies; 7+ messages in thread
From: Eric Dumazet @ 2009-09-02 12:40 UTC (permalink / raw)
  To: David S. Miller; +Cc: Linux Netdev List

Three bytes of uninitialized kernel memory are currently leaked to user

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
---
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 24d17ce..fdb694e 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -1456,6 +1456,8 @@ static int tc_fill_tclass(struct sk_buff *skb, struct Qdisc *q,
 	nlh = NLMSG_NEW(skb, pid, seq, event, sizeof(*tcm), flags);
 	tcm = NLMSG_DATA(nlh);
 	tcm->tcm_family = AF_UNSPEC;
+	tcm->tcm__pad1 = 0;
+	tcm->tcm__pad2 = 0;
 	tcm->tcm_ifindex = qdisc_dev(q)->ifindex;
 	tcm->tcm_parent = q->handle;
 	tcm->tcm_handle = q->handle;

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-09-03  6:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-02 12:40 [PATCH] tc: Fix unitialized kernel memory leak Eric Dumazet
2009-09-02 18:09 ` Jiri Pirko
2009-09-03  5:51   ` David Miller
2009-09-02 19:05 ` Stephen Hemminger
2009-09-03  5:51   ` David Miller
2009-09-03  6:34     ` Stephen Hemminger
2009-09-03  6:45       ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).