]> git.baikalelectronics.ru Git - kernel.git/commit
flow_dissector: fix ipv6 dst, hop-by-hop and routing ext hdrs
authorEric Dumazet <edumazet@google.com>
Sat, 13 Jun 2015 02:31:32 +0000 (19:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sat, 13 Jun 2015 04:58:49 +0000 (21:58 -0700)
commitdf96b7bc469fed6eb9ec65dda77834b4b876d654
treed076e4b8b38b5cc82e865986ceb736585dca2374
parent59871303ba61b6a268e342d14b968ce7aa809c2e
flow_dissector: fix ipv6 dst, hop-by-hop and routing ext hdrs

__skb_header_pointer() returns a pointer that must be checked.

Fixes infinite loop reported by Alexei, and add __must_check to
catch these errors earlier.

Fixes: 900105039a14 ("flow_dissector: add support for dst, hop-by-hop and routing ext hdrs")
Reported-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Tested-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Acked-by: Tom Herbert <tom@herbertland.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/skbuff.h
net/core/flow_dissector.c