• Eldad Zack's avatar
    ipv6/exthdrs: strict Pad1 and PadN check · 9b905fe6
    Eldad Zack authored
    The following tightens the padding check from commit
    c1412fce :
    
    * Take into account combinations of consecutive Pad1 and PadN.
    
    * Catch the corner case of when only padding is present in the
      header, when the extention header length is 0 (i.e., 8 bytes).
      In this case, the header would have exactly 6 bytes of padding:
    
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    :  Next Header  : Hdr Ext Len=0 :                               :
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+                               +
    :                        Padding (Pad1 or PadN)                 :
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    Signed-off-by: default avatarEldad Zack <eldad@fogrefinery.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9b905fe6
Name
Last commit
Last update
..
netfilter Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
addrconf.c Loading commit data...
addrconf_core.c Loading commit data...
addrlabel.c Loading commit data...
af_inet6.c Loading commit data...
ah6.c Loading commit data...
anycast.c Loading commit data...
datagram.c Loading commit data...
esp6.c Loading commit data...
exthdrs.c Loading commit data...
exthdrs_core.c Loading commit data...
fib6_rules.c Loading commit data...
icmp.c Loading commit data...
inet6_connection_sock.c Loading commit data...
inet6_hashtables.c Loading commit data...
ip6_fib.c Loading commit data...
ip6_flowlabel.c Loading commit data...
ip6_input.c Loading commit data...
ip6_output.c Loading commit data...
ip6_tunnel.c Loading commit data...
ip6mr.c Loading commit data...
ipcomp6.c Loading commit data...
ipv6_sockglue.c Loading commit data...
mcast.c Loading commit data...
mip6.c Loading commit data...
ndisc.c Loading commit data...
netfilter.c Loading commit data...
proc.c Loading commit data...
protocol.c Loading commit data...
raw.c Loading commit data...
reassembly.c Loading commit data...
route.c Loading commit data...
sit.c Loading commit data...
syncookies.c Loading commit data...
sysctl_net_ipv6.c Loading commit data...
tcp_ipv6.c Loading commit data...
tunnel6.c Loading commit data...
udp.c Loading commit data...
udp_impl.h Loading commit data...
udplite.c Loading commit data...
xfrm6_input.c Loading commit data...
xfrm6_mode_beet.c Loading commit data...
xfrm6_mode_ro.c Loading commit data...
xfrm6_mode_transport.c Loading commit data...
xfrm6_mode_tunnel.c Loading commit data...
xfrm6_output.c Loading commit data...
xfrm6_policy.c Loading commit data...
xfrm6_state.c Loading commit data...
xfrm6_tunnel.c Loading commit data...