diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-03-09 09:52:21 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-03-20 23:58:54 +0400 |
commit | 5678a7694c47188498a740ae805a8dee2fd7d178 (patch) | |
tree | 4aaf4ef2f6c9122f43a759067403eb4c53b02270 /drivers/mca/Kconfig | |
parent | 3385fcdbf46ec6fbbcefffd41ac10a8c4daafd32 (diff) | |
download | linux-5678a7694c47188498a740ae805a8dee2fd7d178.tar.xz |
dcbnl: fix various netlink info leaks
[ Upstream commit 29cd8ae0e1a39e239a3a7b67da1986add1199fc0 ]
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 <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mca/Kconfig')
0 files changed, 0 insertions, 0 deletions