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

2017-05-18 Thread David Miller
From: Tobias Jungel Date: Wed, 17 May 2017 09:29:12 +0200 > 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@t

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

2017-05-17 Thread Sabrina Dubroca
2017-05-17, 09:29:12 +0200, 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

[PATCH v4] bridge: netlink: check vlan_default_pvid range

2017-05-17 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 ~]#