Skip to content
Snippets Groups Projects
Commit 8cb3b9c3 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

net_sched: info leak in atm_tc_dump_class()


The "pvc" struct has a hole after pvc.sap_family which is not cleared.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent c8826de8
No related branches found
No related tags found
No related merge requests found
...@@ -605,6 +605,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl, ...@@ -605,6 +605,7 @@ static int atm_tc_dump_class(struct Qdisc *sch, unsigned long cl,
struct sockaddr_atmpvc pvc; struct sockaddr_atmpvc pvc;
int state; int state;
memset(&pvc, 0, sizeof(pvc));
pvc.sap_family = AF_ATMPVC; pvc.sap_family = AF_ATMPVC;
pvc.sap_addr.itf = flow->vcc->dev ? flow->vcc->dev->number : -1; pvc.sap_addr.itf = flow->vcc->dev ? flow->vcc->dev->number : -1;
pvc.sap_addr.vpi = flow->vcc->vpi; pvc.sap_addr.vpi = flow->vcc->vpi;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment