diff options
author | Mathias Krause <minipli@googlemail.com> | 2013-03-09 06:52:21 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-10 10:19:26 +0100 |
commit | 29cd8ae0e1a39e239a3a7b67da1986add1199fc0 (patch) | |
tree | b3e9cf667e8f13d15bc2fb76d8f44557a6f65202 /net/ceph/buffer.c | |
parent | rtnl: fix info leak on RTM_GETLINK request for VF devices (diff) | |
download | linux-29cd8ae0e1a39e239a3a7b67da1986add1199fc0.tar.xz linux-29cd8ae0e1a39e239a3a7b67da1986add1199fc0.zip |
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 <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ceph/buffer.c')
0 files changed, 0 insertions, 0 deletions