NetBSD/sys/netinet
jdolecek 5c91f1a4e1 fix in4_cksum() panic "in4_cksum: mbuf 14 too short for IP header 20"
triggered by bridge_output() when passing packet originally for
interface supporting hw csum offload to destination interface
not supporting it

problem happens because bridge_output() is called after ether_output()
M_PREPEND() the ether_header into the mbuf chain, if there is not
enough space on the first mbuf of the chain, it ends up prepending
a new short mbuf with just ether_header

triggered by running UDP (IPv4) 'netio -u' benchmark with packet size 2 KB

XXX seems in6_undefer_cksum() should have similar fix, however I was
XXX not able to trigger the problem there
2020-03-27 16:34:58 +00:00
..
Makefile Remove the network ATM code. 2018-09-06 06:41:59 +00:00
accept_filter.h
accf_data.c
accf_http.c Use the module subsystem's ability to process SYSCTL_SETUP() entries to 2020-03-16 21:20:09 +00:00
cpu_in_cksum.c No need to update mlen also in the case of (mlen & 16) != 0. 2018-08-28 07:28:01 +00:00
dccp.h
dccp_cc_sw.c
dccp_cc_sw.h
dccp_tcplike.c Fix typo (s/recevie/receive/). 2019-06-04 10:15:22 +00:00
dccp_tcplike.h Fix typo (s/recevie/receive/). 2019-06-04 10:15:22 +00:00
dccp_tfrc.c s/inital/initial/ 2019-12-27 09:25:57 +00:00
dccp_tfrc.h Fix typo (s/recevie/receive/). 2019-06-04 10:15:22 +00:00
dccp_tfrc_lookup.h
dccp_usrreq.c sbspace() does not return negative values anymore and that broke OOB data 2018-12-16 17:46:58 +00:00
dccp_var.h Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
files.ipfilter
files.netinet
icmp6.h route: RTM_MISS now puts the message source address in RTA_AUTHOR 2020-03-09 21:20:55 +00:00
icmp_private.h
icmp_var.h - Cleanup for dynamic sysctl: 2018-08-22 01:05:21 +00:00
if_arp.c route: RTM_MISS now puts the message source address in RTA_AUTHOR 2020-03-09 21:20:55 +00:00
if_ether.h
if_inarp.h
igmp.c Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
igmp.h
igmp_var.h Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
in.c inet: Add support for IPv4 /31 prefixes, as described in RFC 3021. 2019-12-18 00:49:15 +00:00
in.h inet: Add support for IPv4 /31 prefixes, as described in RFC 3021. 2019-12-18 00:49:15 +00:00
in4_cksum.c
in_cksum.c
in_gif.c Avoid having a rtcache directly in a percpu storage for tunnel protocols. 2019-09-19 06:07:24 +00:00
in_gif.h
in_ifattach.h
in_l2tp.c Adopt <net/if_stats.h>. 2020-01-29 04:37:24 +00:00
in_l2tp.h
in_offload.c fix in4_cksum() panic "in4_cksum: mbuf 14 too short for IP header 20" 2020-03-27 16:34:58 +00:00
in_offload.h PR kern/53562 2018-12-12 01:40:20 +00:00
in_pcb.c Get rid of IFNET_LOCK for if_mcast_op to avoid a deadlock 2019-05-15 02:59:18 +00:00
in_pcb.h Remove support for non-IKE markers in the kernel. Discussed on tech-net@, 2018-05-31 07:03:57 +00:00
in_pcb_hdr.h
in_print.c
in_proto.c Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
in_proto.h
in_selsrc.c
in_selsrc.h
in_systm.h
in_var.h Introduce and use ip_dad_enabled() and ip6_dad_enabled() functions 2018-11-29 09:51:20 +00:00
ip.h
ip6.h IP6_EXTHDR_GET performs a basic mbuf operation, which has nothing to do 2018-05-18 18:52:17 +00:00
ip_carp.c Perform link state change processing on a work queue, rather than in a 2020-02-06 23:30:19 +00:00
ip_carp.h Provide SIOCGIFMEDIA ioctl to deliver link status. 2020-01-16 12:56:39 +00:00
ip_ecn.c
ip_ecn.h
ip_encap.c Fix PR security/54881. Pointed out by ohishi@IIJ, thanks. 2020-01-23 09:09:59 +00:00
ip_encap.h Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
ip_flow.c Remove whitespaces/tabs, and one non-ASCII character. 2018-04-11 08:29:19 +00:00
ip_icmp.c Replace M_ALIGN and MH_ALIGN by m_align. 2018-12-22 14:28:56 +00:00
ip_icmp.h Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
ip_id.c s/initalize/initialize/ in comment or printf message. 2019-10-18 04:09:01 +00:00
ip_input.c Get rid of unnecessary NULL checks for rt_ifa and ifa_ifp 2019-11-13 02:51:22 +00:00
ip_mroute.c Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
ip_mroute.h Remove RSVP_ISI, that's mostly dead code. FreeBSD and OpenBSD too removed 2018-02-07 11:42:57 +00:00
ip_output.c s/referece/reference/ in comment. 2019-12-27 10:17:56 +00:00
ip_private.h
ip_reass.c Force ip_off to zero when the reassembly is complete. This was lost in my 2018-10-12 05:41:18 +00:00
ip_var.h Count packets dropped by pfil 2019-05-13 07:47:59 +00:00
pim.h
pim_var.h Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
portalgo.c
portalgo.h
raw_ip.c RIP, RIP6, DDP, SCTP and SCTP6 lack a length check in their _connect() 2019-02-24 07:20:33 +00:00
sctp.h Fix typo in comment (s/seperate/separate/). 2019-06-03 06:04:20 +00:00
sctp_asconf.c Split out the prototypes for add/delete address into a separate header file. 2019-06-25 15:33:55 +00:00
sctp_asconf.h Split out the prototypes for add/delete address into a separate header file. 2019-06-25 15:33:55 +00:00
sctp_constants.h s/inital/initial/ 2019-12-27 09:25:57 +00:00
sctp_crc32.c Remove unused checksum code. 2019-08-13 19:55:40 +00:00
sctp_crc32.h Remove unused checksum code. 2019-08-13 19:55:40 +00:00
sctp_hashdriver.c
sctp_hashdriver.h
sctp_header.h
sctp_indata.c Replace: M_MOVE_PKTHDR -> m_move_pkthdr. No functional change, since the 2018-12-22 13:11:37 +00:00
sctp_indata.h
sctp_input.c s/recieve/receive/ 2019-05-28 08:59:33 +00:00
sctp_input.h
sctp_output.c Fix typo in comment. 2019-12-26 04:44:10 +00:00
sctp_output.h
sctp_pcb.c Replace kooky sctp random number generation by cprng_strong32(). 2020-01-19 20:51:13 +00:00
sctp_pcb.h Replace kooky sctp random number generation by cprng_strong32(). 2020-01-19 20:51:13 +00:00
sctp_peeloff.c
sctp_peeloff.h
sctp_route.h Split out the prototypes for add/delete address into a separate header file. 2019-06-25 15:33:55 +00:00
sctp_structs.h
sctp_timer.c Remove now unused net_osdep.h includes, the other BSDs did the same. 2018-05-01 07:21:39 +00:00
sctp_timer.h
sctp_uio.h Change implementation of sctp_connectx() to use ioctl(2). 2018-07-31 13:36:31 +00:00
sctp_usrreq.c Split out the prototypes for add/delete address into a separate header file. 2019-06-25 15:33:55 +00:00
sctp_var.h Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
sctputil.c Replace kooky sctp random number generation by cprng_strong32(). 2020-01-19 20:51:13 +00:00
sctputil.h Replace kooky sctp random number generation by cprng_strong32(). 2020-01-19 20:51:13 +00:00
tcp.h Add comments to the tcp flags. 2019-11-01 13:54:59 +00:00
tcp_congctl.c All of snd_wnd, snd_cwnd and snd_ssthresh in stuct tcpcb are u_long, 2019-10-09 05:29:18 +00:00
tcp_congctl.h
tcp_debug.c Remove now unused tcpip.h includes. Some were already unused before. 2018-05-03 07:13:48 +00:00
tcp_debug.h Redefine the structure, not to rely on tcpiphdr. 2018-05-01 07:03:33 +00:00
tcp_fsm.h Remove dead code. 2018-04-07 13:48:50 +00:00
tcp_input.c Call rtcache_unref() only when the checks succeed, instead of relying on 2019-11-16 10:15:10 +00:00
tcp_output.c Don't allow zero sized segments that will panic the stack. 2019-11-17 08:21:25 +00:00
tcp_private.h
tcp_sack.c IP6_EXTHDR_GET -> M_REGION_GET, no functional change. 2018-05-18 18:58:51 +00:00
tcp_seq.h
tcp_subr.c Clamp tcp timer quantities to reasonable ranges. 2019-08-06 15:48:18 +00:00
tcp_timer.c Remove now unused tcpip.h includes. Some were already unused before. 2018-05-03 07:13:48 +00:00
tcp_timer.h Clamp tcp timer quantities to reasonable ranges. 2019-08-06 15:48:18 +00:00
tcp_usrreq.c Clamp tcp timer quantities to reasonable ranges. 2019-08-06 15:48:18 +00:00
tcp_var.h Revert "Include opt_diagnostic.h for DIAGNOSTIC." 2020-03-05 15:18:54 +00:00
tcp_vtw.c in many device attach paths, allocate memory with KM_SLEEP instead of KM_NOSLEEP 2019-10-01 18:00:07 +00:00
tcp_vtw.h s/static inline/static __inline/g for consistency. 2018-04-19 21:20:43 +00:00
tcpip.h Move struct tcpiphdr from tcpip.h to tcp_var.h, to match UDP (udpiphdr in 2018-04-29 12:12:42 +00:00
udp.h
udp_private.h
udp_usrreq.c Remove unused arguments. 2018-12-27 16:59:17 +00:00
udp_var.h Use non-variadic function pointer in protosw::pr_input. 2018-09-14 05:09:51 +00:00
wqinput.c Use percpu_foreach_xcall() to gather volatile per-cpu counters. These 2020-02-07 12:35:33 +00:00
wqinput.h