summaryrefslogtreecommitdiff
path: root/fs/nls/nls_cp864.c
diff options
context:
space:
mode:
authorEric Dumazet <edumazet@google.com>2016-06-15 13:24:00 (GMT)
committerDavid S. Miller <davem@davemloft.net>2016-06-16 05:15:21 (GMT)
commite582615ad33dbd39623084a02e95567b116e1eea (patch)
tree16f807a602e42f6918f9991b0725bc6e26847025 /fs/nls/nls_cp864.c
parentdaddef76c3deaaa7922f9d7b18edbf0a061215c3 (diff)
downloadlinux-e582615ad33dbd39623084a02e95567b116e1eea.tar.xz
gre: fix error handler
1) gre_parse_header() can be called from gre_err() At this point transport header points to ICMP header, not the inner header. 2) We can not really change transport header as ipgre_err() will later assume transport header still points to ICMP header (using icmp_hdr()) 3) pskb_may_pull() logic in gre_parse_header() really works if we are interested at zone pointed by skb->data 4) As Jiri explained in commit b7f8fe251e46 ("gre: do not pull header in ICMP error processing") we should not pull headers in error handler. So this fix : A) changes gre_parse_header() to use skb->data instead of skb_transport_header() B) Adds a nhs parameter to gre_parse_header() so that we can skip the not pulled IP header from error path. This offset is 0 for normal receive path. C) remove obsolete IPV6 includes Signed-off-by: Eric Dumazet <edumazet@google.com> Cc: Tom Herbert <tom@herbertland.com> Cc: Maciej Żenczykowski <maze@google.com> Cc: Jiri Benc <jbenc@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'fs/nls/nls_cp864.c')
0 files changed, 0 insertions, 0 deletions