GIT: unionfs2-2.6.27.y: tc: Fix unitialized kernel memory leak
Erez Zadok
ezk at fsl.cs.sunysb.edu
Thu Aug 12 23:15:12 EDT 2010
commit 910e88a0698da1f483603c603b04c780cb87dd08
Author: Eric Dumazet <eric.dumazet at gmail.com>
Date: Wed Sep 2 02:40:09 2009 +0000
tc: Fix unitialized kernel memory leak
commit 16ebb5e0b36ceadc8186f71d68b0c4fa4b6e781b upstream.
Three bytes of uninitialized kernel memory are currently leaked to user
Signed-off-by: Eric Dumazet <eric.dumazet at gmail.com>
Reviewed-by: Jiri Pirko <jpirko at redhat.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 1122c95..2b801a0 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -1453,6 +1453,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;
More information about the unionfs-cvs
mailing list