mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 02:02:28 +09:00
net_sched: Fix stack info leak in cbq_dump_wrr().
[ Upstream commit a0db856a95 ]
Make sure the reserved fields, and padding (if any), are
fully initialized.
Based upon a patch by Dan Carpenter and feedback from
Joe Perches.
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1aa1e4cd9e
commit
7515b17b54
@@ -1465,6 +1465,7 @@ static int cbq_dump_wrr(struct sk_buff *skb, struct cbq_class *cl)
|
||||
unsigned char *b = skb_tail_pointer(skb);
|
||||
struct tc_cbq_wrropt opt;
|
||||
|
||||
memset(&opt, 0, sizeof(opt));
|
||||
opt.flags = 0;
|
||||
opt.allot = cl->allot;
|
||||
opt.priority = cl->priority + 1;
|
||||
|
||||
Reference in New Issue
Block a user