]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net sched: fix kernel leak in act_police
authorJeff Mahoney <jeffm@suse.com>
Tue, 31 Aug 2010 13:21:42 +0000 (13:21 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 9 Dec 2010 21:27:05 +0000 (13:27 -0800)
commit4db5de7adfe16721d77b7658c383f65372f1560f
tree2f2f7e97c0dd91205fe8c4637926c39fa309af26
parent94e805453c862135b9d8b8ad31eeddc62ffb1683
net sched: fix kernel leak in act_police

commit 0f04cfd098fb81fded74e78ea1a1b86cc6c6c31e upstream.

While reviewing commit 1c40be12f7d8ca1d387510d39787b12e512a7ce8, I
 audited other users of tc_action_ops->dump for information leaks.

 That commit covered almost all of them but act_police still had a leak.

 opt.limit and opt.capab aren't zeroed out before the structure is
 passed out.

 This patch uses the C99 initializers to zero everything unused out.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Acked-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/sched/act_police.c