aboutsummaryrefslogtreecommitdiff
path: root/lib/cpu_rmap.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2013-11-01 15:01:10 +0800
committerDavid S. Miller <[email protected]>2013-11-02 02:16:07 -0400
commit6f092343855a71e03b8d209815d8c45bf3a27fcd (patch)
treeaeb6de3e6587b60c913c0e779c313ee0bd2a7b00 /lib/cpu_rmap.c
parent2e19ef02511224cc415f49e1b38928b1cfac49be (diff)
net: flow_dissector: fail on evil iph->ihl
We don't validate iph->ihl which may lead a dead loop if we meet a IPIP skb whose iph->ihl is zero. Fix this by failing immediately when iph->ihl is evil (less than 5). This issue were introduced by commit ec5efe7946280d1e84603389a1030ccec0a767ae (rps: support IPIP encapsulation). Cc: Eric Dumazet <[email protected]> Cc: Petr Matousek <[email protected]> Cc: Michael S. Tsirkin <[email protected]> Cc: Daniel Borkmann <[email protected]> Signed-off-by: Jason Wang <[email protected]> Acked-by: Eric Dumazet <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'lib/cpu_rmap.c')
0 files changed, 0 insertions, 0 deletions