Re: [PATCH v3] bridge: netlink: check vlan_default_pvid range

2017-05-16 Thread Nikolay Aleksandrov
On 5/16/17 11:48 AM, Tobias Jungel wrote: Currently it is allowed to set the default pvid of a bridge to a value above VLAN_VID_MASK (0xfff). This patch adds a check to br_validate and returns -EINVAL in case the pvid is out of bounds. Reproduce by calling: [root@test ~]# ip l a type bridge [ro

[PATCH v3] bridge: netlink: check vlan_default_pvid range

2017-05-16 Thread Tobias Jungel
Currently it is allowed to set the default pvid of a bridge to a value above VLAN_VID_MASK (0xfff). This patch adds a check to br_validate and returns -EINVAL in case the pvid is out of bounds. Reproduce by calling: [root@test ~]# ip l a type bridge [root@test ~]# ip l a type dummy [root@test ~]#