From: Dan Carpenter Date: Tue, 30 Jul 2013 10:23:39 +0000 (+0300) Subject: net_sched: info leak in atm_tc_dump_class() X-Git-Tag: v3.2.51~107 X-Git-Url: http://git.hungrycats.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0fb2c987486da9c649e35cd565507576d491cec;p=linux net_sched: info leak in atm_tc_dump_class() [ Upstream commit 8cb3b9c3642c0263d48f31d525bcee7170eedc20 ] The "pvc" struct has a hole after pvc.sap_family which is not cleared. Signed-off-by: Dan Carpenter Reviewed-by: Jiri Pirko Signed-off-by: David S. Miller Signed-off-by: Ben Hutchings --- diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index e25e49061a0d4..6e38ef0040b8e 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c @@ -606,6 +606,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl, struct sockaddr_atmpvc pvc; int state; + memset(&pvc, 0, sizeof(pvc)); pvc.sap_family = AF_ATMPVC; pvc.sap_addr.itf = flow->vcc->dev ? flow->vcc->dev->number : -1; pvc.sap_addr.vpi = flow->vcc->vpi;