Re: [PATCH net-next] net/sched: flower: Fix null pointer dereference when run tc vlan command

2018-07-11 Thread David Miller
From: Jianbo Liu Date: Mon, 9 Jul 2018 02:26:20 + > Zahari issued tc vlan command without setting vlan_ethtype, which will > crash kernel. To avoid this, we must check tb[TCA_FLOWER_KEY_VLAN_ETH_TYPE] > is not null before use it. > Also we don't need to dump vlan_ethtype or cvlan_ethtype in

[PATCH net-next] net/sched: flower: Fix null pointer dereference when run tc vlan command

2018-07-08 Thread Jianbo Liu
Zahari issued tc vlan command without setting vlan_ethtype, which will crash kernel. To avoid this, we must check tb[TCA_FLOWER_KEY_VLAN_ETH_TYPE] is not null before use it. Also we don't need to dump vlan_ethtype or cvlan_ethtype in this case. Fixes: d64efd0926ba ('net/sched: flower: Add supprt