Re: [PATCH net] net: Zero ifla_vf_info in rtnl_fill_vfinfo()

2017-06-08 Thread David Miller
From: Yuval Mintz Date: Wed, 7 Jun 2017 21:00:33 +0300 > Some of the structure's fields are not initialized by the > rtnetlink. If driver doesn't set those in ndo_get_vf_config(), > they'd leak memory to user. > > Signed-off-by: Yuval Mintz > CC: Michal Schmidt Good catch, applied and queued

Re: [PATCH net] net: Zero ifla_vf_info in rtnl_fill_vfinfo()

2017-06-07 Thread Greg Rose
On 06/07/2017 11:00 AM, Yuval Mintz wrote: Some of the structure's fields are not initialized by the rtnetlink. If driver doesn't set those in ndo_get_vf_config(), they'd leak memory to user. Signed-off-by: Yuval Mintz CC: Michal Schmidt --- net/core/rtnetlink.c | 3 ++- 1 file changed, 2 i

[PATCH net] net: Zero ifla_vf_info in rtnl_fill_vfinfo()

2017-06-07 Thread Yuval Mintz
Some of the structure's fields are not initialized by the rtnetlink. If driver doesn't set those in ndo_get_vf_config(), they'd leak memory to user. Signed-off-by: Yuval Mintz CC: Michal Schmidt --- net/core/rtnetlink.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/c