Jianbo Liu
5e9a0fe492
net/sched: flower: Fix null pointer dereference when run tc vlan command
...
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 for matching on QinQ vlan headers')
Signed-off-by: Jianbo Liu <jianbol@mellanox.com>
Reported-by: Zahari Doychev <zahari.doychev@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-07-11 22:48:13 -07:00
..
2018-07-08 17:02:59 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2017-12-13 13:18:46 -05:00
2017-10-12 22:13:20 -07:00
2017-12-13 13:18:46 -05:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-07-08 12:42:29 +09:00
2018-05-24 22:56:15 -04:00
2018-06-26 23:21:33 +09:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2018-07-11 22:48:13 -07:00
2018-05-24 22:56:15 -04:00
2018-06-26 23:21:33 +09:00
2018-05-24 22:56:15 -04:00
2007-07-10 22:16:41 -07:00
2007-07-10 22:16:41 -07:00
2018-05-24 22:56:15 -04:00
2018-05-24 22:56:15 -04:00
2018-06-26 23:21:33 +09:00
2014-10-06 18:02:32 -04:00
2011-01-19 23:31:12 -08:00
2016-11-03 10:56:21 +01:00
2018-02-21 13:15:33 -05:00
2017-07-01 07:39:08 -07:00
2018-01-24 14:52:40 -05:00
2015-02-22 15:59:54 -05:00
2011-01-19 23:31:12 -08:00
2017-10-16 21:00:40 +01:00
2018-07-10 20:06:34 -07:00
2018-07-10 20:06:34 -07:00
2018-07-04 22:30:27 +09:00
2017-12-21 12:32:51 -05:00
2018-06-17 08:42:33 +09:00
2018-07-10 20:06:34 -07:00
2017-12-21 12:32:51 -05:00
2017-12-21 12:32:51 -05:00
2017-12-21 12:32:50 -05:00
2017-12-21 12:32:50 -05:00
2017-12-21 12:32:51 -05:00
2017-12-21 12:32:51 -05:00
2018-07-04 22:30:28 +09:00
2017-12-21 12:32:51 -05:00
2018-06-12 16:19:22 -07:00
2018-05-02 16:37:38 -04:00
2018-05-31 13:26:19 -04:00
2017-12-21 12:32:50 -05:00
2018-06-23 10:58:46 +09:00
2018-06-12 16:19:22 -07:00
2018-06-24 16:42:46 +09:00
2018-01-17 14:53:57 -05:00
2018-05-29 09:49:16 -04:00
2017-12-21 12:32:51 -05:00
2017-12-21 12:32:51 -05:00
2018-06-28 22:06:24 +09:00
2017-12-21 12:32:50 -05:00
2017-12-21 12:32:50 -05:00
2018-02-28 12:06:01 -05:00
2017-12-21 12:32:51 -05:00
2018-05-18 13:52:32 -04:00
2017-12-21 12:32:51 -05:00
2017-12-21 12:32:51 -05:00
2018-05-18 13:52:32 -04:00
2017-12-21 12:32:50 -05:00