Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 2 May 2010 15:55:29 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r207512 - stable/8/sys/netinet
Message-ID:  <201005021555.o42FtT0d004382@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sun May  2 15:55:29 2010
New Revision: 207512
URL: http://svn.freebsd.org/changeset/base/207512

Log:
  MFC r206989:
    Avoid memory access after free.  Use the (shortend) copy for the
    ipsec mtu lookup as well.
  
  PR:		kern/145736
  Submitted by:	Peter Molnar (peter molnar.cc)

Modified:
  stable/8/sys/netinet/ip_input.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)
  stable/8/sys/dev/xen/xenpci/   (props changed)
  stable/8/sys/geom/sched/   (props changed)

Modified: stable/8/sys/netinet/ip_input.c
==============================================================================
--- stable/8/sys/netinet/ip_input.c	Sun May  2 14:46:05 2010	(r207511)
+++ stable/8/sys/netinet/ip_input.c	Sun May  2 15:55:29 2010	(r207512)
@@ -1590,7 +1590,7 @@ ip_forward(struct mbuf *m, int srcrt)
 		 * If IPsec is configured for this path,
 		 * override any possibly mtu value set by ip_output.
 		 */ 
-		mtu = ip_ipsec_mtu(m, mtu);
+		mtu = ip_ipsec_mtu(mcopy, mtu);
 #endif /* IPSEC */
 		/*
 		 * If the MTU was set before make sure we are below the



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201005021555.o42FtT0d004382>