netlink: fix uninit-value in netlink_sendmsg
authorEric Dumazet <edumazet@google.com>
Sat, 7 Apr 2018 20:42:37 +0000 (13:42 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Apr 2018 02:32:31 +0000 (22:32 -0400)
commit6091f09c2f79730d895149bcfe3d66140288cd0e
treeb63a8be51e92f086ba933e9c7b53de1a6a7f0987
parenta466856e0b7ab269cdf9461886d007e88ff575b0
netlink: fix uninit-value in netlink_sendmsg

syzbot reported :

BUG: KMSAN: uninit-value in ffs arch/x86/include/asm/bitops.h:432 [inline]
BUG: KMSAN: uninit-value in netlink_sendmsg+0xb26/0x1310 net/netlink/af_netlink.c:1851

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reported-by: syzbot <syzkaller@googlegroups.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netlink/af_netlink.c