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: firefly_0821_release~6453^2~1139 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=32976e6354d193eb47fd3e405cf22209782efe19;p=firefly-linux-kernel-4.4.55.git 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: Greg Kroah-Hartman --- diff --git a/net/sched/sch_atm.c b/net/sched/sch_atm.c index ca8e0a57d945..1f9c31411f19 100644 --- a/net/sched/sch_atm.c +++ b/net/sched/sch_atm.c @@ -605,6 +605,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;