freebsd-dev/sys/netinet
Robert Watson 6b48911b00 M_PREPEND() with an argument of M_TRYWAIT can fail, meaning the
returned mbuf can be NULL.  Check for NULL in rip_output() when
prepending an IP header.  This prevents mbuf exhaustion from
causing a local kernel panic when sending raw IP packets.

PR:		kern/55886
Reported by:	Pawel Malachowski <pawmal-posting@freebsd.lublin.pl>
MFC after:	3 days
2003-08-26 14:11:48 +00:00
..
libalias style.Makefile(5) 2003-08-18 15:25:39 +00:00
accf_data.c Remove so*_locked(), which were backed out by mistake. 2002-06-18 07:42:02 +00:00
accf_http.c Remove so*_locked(), which were backed out by mistake. 2002-06-18 07:42:02 +00:00
icmp6.h s/__attribute__((__packed__))/__packed/g 2002-09-23 06:25:08 +00:00
icmp_var.h Remove __P. 2002-03-19 21:25:46 +00:00
if_atm.c Change the code that enables/disables the ATM channel to use the 2003-08-12 14:20:32 +00:00
if_atm.h Remove __P. 2002-03-19 21:25:46 +00:00
if_ether.c Update netisr handling; Each SWI now registers its queue, and all queue 2003-03-04 23:19:55 +00:00
if_ether.h Update netisr handling; Each SWI now registers its queue, and all queue 2003-03-04 23:19:55 +00:00
igmp_var.h Remove __P. 2002-03-19 21:25:46 +00:00
igmp.c Before digging into IGMP locking, do a whitespace and prototype cleanup: 2003-08-20 17:32:17 +00:00
igmp.h
in_cksum.c
in_gif.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
in_gif.h last arg of in6?_gif_output() is not used any more. 2002-10-17 17:47:55 +00:00
in_pcb.c Consistently use the BSD u_int and u_short instead of the SYSV uint and 2003-08-07 15:04:27 +00:00
in_pcb.h Add the IP_ONESBCAST option, to enable undirected IP broadcasts to be sent on 2003-08-20 14:46:40 +00:00
in_proto.c 1. Basic PIM kernel support 2003-08-07 18:16:59 +00:00
in_rmx.c Get cosmetic changes out of the way before I add routing table SMP locks. 2003-02-10 22:01:34 +00:00
in_systm.h Remove __P. 2002-03-19 21:25:46 +00:00
in_var.h Move from a custom-crafted singly-linked list to the SLIST_* macros 2003-08-20 17:09:01 +00:00
in.c Back out M_* changes, per decision of the TRB. 2003-02-19 05:47:46 +00:00
in.h Add the IP_ONESBCAST option, to enable undirected IP broadcasts to be sent on 2003-08-20 14:46:40 +00:00
ip6.h s/__attribute__((__packed__))/__packed/g 2002-09-23 06:25:08 +00:00
ip_divert.c Introduce an M_ASSERTPKTHDR() macro which performs the very common task 2003-04-08 14:25:47 +00:00
ip_dummynet.c o Fix a typo in previous commit. 2003-07-31 10:24:36 +00:00
ip_dummynet.h o Protect set_fs_param() by splimp(9). 2003-03-27 14:56:36 +00:00
ip_ecn.c initialize local variable explicitly 2002-04-11 02:14:21 +00:00
ip_ecn.h Remove __P. 2002-03-19 21:25:46 +00:00
ip_encap.c Remove unused variables. 2003-06-01 09:20:38 +00:00
ip_encap.h Remove __P. 2002-03-19 21:25:46 +00:00
ip_flow.c
ip_flow.h
ip_fw2.c Allow set 31 to be used for rules other than 65535. 2003-07-15 23:07:34 +00:00
ip_fw.h Allow set 31 to be used for rules other than 65535. 2003-07-15 23:07:34 +00:00
ip_gre.c Finish driving a stake through the heart of netns and the associated 2003-03-05 19:24:24 +00:00
ip_gre.h de-__P(). 2002-10-16 22:27:27 +00:00
ip_icmp.c Introduce two new MAC Framework and MAC policy entry points: 2003-08-21 18:39:16 +00:00
ip_icmp.h Add comments regarding the ICMP timestamp fields. 2003-03-21 15:28:10 +00:00
ip_id.c Remove __P. 2002-03-19 21:25:46 +00:00
ip_input.c add IPSEC_FILTERGIF suport for FAST_IPSEC 2003-07-22 18:58:34 +00:00
ip_mroute.c Remove redundant bzero. 2003-08-24 08:27:57 +00:00
ip_mroute.h 1. Basic PIM kernel support 2003-08-07 18:16:59 +00:00
ip_output.c Add the IP_ONESBCAST option, to enable undirected IP broadcasts to be sent on 2003-08-20 14:46:40 +00:00
ip_var.h Add the IP_ONESBCAST option, to enable undirected IP broadcasts to be sent on 2003-08-20 14:46:40 +00:00
ip.h Back out support for RFC3514. 2003-04-02 20:14:44 +00:00
ipprotosw.h
pim_var.h New PIM header files. 2003-08-07 18:17:43 +00:00
pim.h New PIM header files. 2003-08-07 18:17:43 +00:00
raw_ip.c M_PREPEND() with an argument of M_TRYWAIT can fail, meaning the 2003-08-26 14:11:48 +00:00
tcp_debug.c It's now sufficient to rely on a nested include of _label.h to make sure 2002-08-15 14:34:45 +00:00
tcp_debug.h make the strings for tcptimers, tanames and prurequests const to silence 2002-08-16 09:07:59 +00:00
tcp_fsm.h WARNS=n and lint(1) silencer. Declare an array of (const) strings 2002-02-03 11:57:32 +00:00
tcp_input.c A number of patches in the last years have created new return paths 2003-08-13 08:46:54 +00:00
tcp_output.c The tcp_trace call needs the length of the header. Unfortunately the 2003-08-13 08:50:42 +00:00
tcp_reass.c A number of patches in the last years have created new return paths 2003-08-13 08:46:54 +00:00
tcp_seq.h Unify the "send high" and "recover" variables as specified in the 2003-07-15 21:49:53 +00:00
tcp_subr.c Introduce two new MAC Framework and MAC policy entry points: 2003-08-21 18:39:16 +00:00
tcp_syncache.c Change instances of callout_init that specify MPSAFE behaviour to 2003-08-19 17:51:11 +00:00
tcp_timer.c Unify the "send high" and "recover" variables as specified in the 2003-07-15 21:49:53 +00:00
tcp_timer.h Remove a panic(); if the zone allocator can't provide more timewait 2003-03-08 22:06:20 +00:00
tcp_timewait.c Introduce two new MAC Framework and MAC policy entry points: 2003-08-21 18:39:16 +00:00
tcp_usrreq.c Remove check for t_state == TCPS_TIME_WAIT and introduce the tw structure. 2003-03-08 22:07:52 +00:00
tcp_var.h Unify the "send high" and "recover" variables as specified in the 2003-07-15 21:49:53 +00:00
tcp.h Include <sys/cdefs.h> so the visibility conditionals are available. 2002-10-02 04:22:34 +00:00
tcpip.h
udp_usrreq.c Add the IP_ONESBCAST option, to enable undirected IP broadcasts to be sent on 2003-08-20 14:46:40 +00:00
udp_var.h Notify functions can destroy the pcb, so they have to return an 2002-06-14 08:35:21 +00:00
udp.h