Re: [PATCH net] rtnetlink: Disallow FDB configuration for non-Ethernet device

2018-10-28 Thread David Ahern
On 10/27/18 2:39 PM, Ido Schimmel wrote: > When an FDB entry is configured, the address is validated to have the > length of an Ethernet address, but the device for which the address is > configured can be of any type. > > The above can result in the use of uninitialized memory when the address >

[PATCH net] rtnetlink: Disallow FDB configuration for non-Ethernet device

2018-10-27 Thread Ido Schimmel
When an FDB entry is configured, the address is validated to have the length of an Ethernet address, but the device for which the address is configured can be of any type. The above can result in the use of uninitialized memory when the address is later compared against existing addresses since 'd