UPSTREAM: net: fix infoleak in rtnetlink

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 <>
Signed-off-by: David S. Miller <>

Bug: 28620102
Patchset: netlink-info-leak-fix

(cherry-picked from 5f8e44741f9f216e33736ea4ec65ca9ac03036e6)
Signed-off-by: Mattias Nissler <>

Change-Id: I4e0585403a4599de8e926e8c6a87aae327a0a1b7
1 file changed