Re: [PATCH net] rtnetlink: fix rtnl_valid_stats_req() nlmsg_len check

2019-04-14 Thread David Miller
From: Eric Dumazet Date: Sun, 14 Apr 2019 11:02:05 -0700 > Jakub forgot to either use nlmsg_len() or nlmsg_msg_size(), > allowing KMSAN to detect a possible uninit-value in rtnl_stats_get ... > Fixes: 51bc860d4a99 ("rtnetlink: stats: validate attributes in get as well as > dumps") > Signed-off-

[PATCH net] rtnetlink: fix rtnl_valid_stats_req() nlmsg_len check

2019-04-14 Thread Eric Dumazet
Jakub forgot to either use nlmsg_len() or nlmsg_msg_size(), allowing KMSAN to detect a possible uninit-value in rtnl_stats_get BUG: KMSAN: uninit-value in rtnl_stats_get+0x6d9/0x11d0 net/core/rtnetlink.c:4997 CPU: 0 PID: 10428 Comm: syz-executor034 Not tainted 5.1.0-rc2+ #24 Hardware name: Google