From: Mathias Krause Date: Sat, 9 Mar 2013 05:52:21 +0000 (+0000) Subject: dcbnl: fix various netlink info leaks X-Git-Tag: v3.9-rc3~36^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29cd8ae0e1a39e239a3a7b67da1986add1199fc0;p=pandora-kernel.git dcbnl: fix various netlink info leaks The dcb netlink interface leaks stack memory in various places: * perm_addr[] buffer is only filled at max with 12 of the 32 bytes but copied completely, * no in-kernel driver fills all fields of an IEEE 802.1Qaz subcommand, so we're leaking up to 58 bytes for ieee_ets structs, up to 136 bytes for ieee_pfc structs, etc., * the same is true for CEE -- no in-kernel driver fills the whole struct, Prevent all of the above stack info leaks by properly initializing the buffers/structures involved. Signed-off-by: Mathias Krause Signed-off-by: David S. Miller --- Reading git-diff-tree failed