]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
netlink: fix uninit-value in netlink_sendmsg
authorEric Dumazet <edumazet@google.com>
Sat, 7 Apr 2018 20:42:37 +0000 (13:42 -0700)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:40 +0000 (21:36 -0400)
commit84889429a9a075e4da15bf24911e06dcc2c3bb4f
tree61130adf54b8d0c64bf4dbb4bcc8a5c15f06c968
parenta82b0b8ad435f93b287832e32947d994a18d6796
netlink: fix uninit-value in netlink_sendmsg

[ Upstream commit 6091f09c2f79730d895149bcfe3d66140288cd0e ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
net/netlink/af_netlink.c