net: sched: ife: handle malformed tlv length
authorAlexander Aring <aring@mojatatu.com>
Fri, 20 Apr 2018 19:15:04 +0000 (15:15 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Apr 2018 01:12:00 +0000 (21:12 -0400)
commitcc74eddd0ff325d57373cea99f642b787d7f76f5
treefc8048a8254e5d249763543e20355a0bba0324f1
parentf6cd14537ff9919081be19b9c53b9b19c0d3ea97
net: sched: ife: handle malformed tlv length

There is currently no handling to check on a invalid tlv length. This
patch adds such handling to avoid killing the kernel with a malformed
ife packet.

Signed-off-by: Alexander Aring <aring@mojatatu.com>
Reviewed-by: Yotam Gigi <yotam.gi@gmail.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/ife.h
net/ife/ife.c
net/sched/act_ife.c