net: fix infoleak in rtnetlink
authorKangjie Lu <kangjielu@gmail.com>
Tue, 3 May 2016 20:46:24 +0000 (16:46 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 May 2016 00:06:41 +0000 (17:06 -0700)
commite0c0313681aaa0c4514c6794635aba82691d2154
tree8eee8ea66c50500a71fce80f3f3c9991c363ce88
parent52f307b18b1f070f0442fc98515575616b21fa20
net: fix infoleak in rtnetlink

[ Upstream commit 5f8e44741f9f216e33736ea4ec65ca9ac03036e6 ]

The stack object “map” has a total size of 32 bytes. Its last 4
bytes are padding generated by compiler. These padding bytes are
not initialized and sent out via “nla_put”.

Signed-off-by: Kangjie Lu <kjlu@gatech.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/core/rtnetlink.c