net: sched: ife: handle malformed tlv length
authorAlexander Aring <aring@mojatatu.com>
Fri, 20 Apr 2018 19:15:04 +0000 (15:15 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Apr 2018 09:33:13 +0000 (11:33 +0200)
commit388f3d9708fcc96cea44fe343ffe055e58ba6e6b
tree1a2ee018b07ff9ea59155db383b47d9fcca64e4d
parent75020d6319eec226a5829359a23322a69f1d7525
net: sched: ife: handle malformed tlv length

[ Upstream commit cc74eddd0ff325d57373cea99f642b787d7f76f5 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/net/ife.h
net/ife/ife.c
net/sched/act_ife.c