freebsd-dev/sys/netinet6
Bjoern A. Zeeb 6f4da20196 Check that the mbuf len is positive (like we do in the v4 case).
Read the other way round this means that even with the checks
the m_len turned negative in some cases which led to panics.
The reason to my understanding seems to be that the checks are wrong
(also for v4) ignoring possible padding when checking cmsg_len or
padding after data when adjusting the mbuf.
Doing proper cheks seems to break applications like named so
further investigation and regression tests are needed.

PR:		kern/119123
Tested by:	Ashish Shukla  wahjava gmail.com
MFC after:	3 days
2008-10-15 19:24:18 +00:00
..
dest6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
frag6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
icmp6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
icmp6.h
in6_cksum.c Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6_gif.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
in6_gif.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6_ifattach.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
in6_ifattach.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6_pcb.c Style changes: compare pointer to NULL and move a }. 2008-10-04 17:07:58 +00:00
in6_pcb.h Pass the ucred along into in{,6}_pcblookup_local for upcoming 2008-07-10 13:31:11 +00:00
in6_proto.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
in6_rmx.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
in6_src.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
in6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
in6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
in6.h Default to ignoring potentially evil IPv6 Neighbor Solicitation 2008-10-02 00:32:59 +00:00
ip6_ecn.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
ip6_forward.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip6_id.c Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
ip6_input.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip6_ipsec.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip6_ipsec.h #if 0 out a currently unsued (and incomplete) function: ip6_ipsec_mtu(). 2008-03-14 11:44:30 +00:00
ip6_mroute.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
ip6_mroute.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
ip6_output.c Check that the mbuf len is positive (like we do in the v4 case). 2008-10-15 19:24:18 +00:00
ip6_var.h Fix a regression introduced in r179289 splitting up ip6_savecontrol() 2008-08-16 06:39:18 +00:00
ip6.h
ip6protosw.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
mld6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
mld6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
nd6_nbr.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
nd6_rtr.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
nd6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
nd6.h Default to ignoring potentially evil IPv6 Neighbor Solicitation 2008-10-02 00:32:59 +00:00
pim6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
pim6.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
raw_ip6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
raw_ip6.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
route6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
scope6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
scope6.c Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00
sctp6_usrreq.c 1) Adds the rest of the VIMAGE change macros 2008-07-09 16:45:30 +00:00
sctp6_var.h 1) Adds the rest of the VIMAGE change macros 2008-07-09 16:45:30 +00:00
tcp6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
udp6_usrreq.c When disconnecting a UDPv6 socket, acquire the socket lock around the 2008-10-12 20:01:32 +00:00
udp6_var.h Clean up VCS Ids. 2007-12-10 16:03:40 +00:00
vinet6.h Step 1.5 of importing the network stack virtualization infrastructure 2008-10-02 15:37:58 +00:00