From owner-freebsd-net@FreeBSD.ORG Fri Sep 18 15:50:03 2009 Return-Path: Delivered-To: freebsd-net@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A8F7710656B3 for ; Fri, 18 Sep 2009 15:50:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7E10F8FC13 for ; Fri, 18 Sep 2009 15:50:03 +0000 (UTC) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n8IFo3Vc006352 for ; Fri, 18 Sep 2009 15:50:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n8IFo3gu006351; Fri, 18 Sep 2009 15:50:03 GMT (envelope-from gnats) Date: Fri, 18 Sep 2009 15:50:03 GMT Message-Id: <200909181550.n8IFo3gu006351@freefall.freebsd.org> To: freebsd-net@FreeBSD.org From: Bruce Simpson Cc: Subject: Re: kern/133786: [netinet] [patch] ip_input might cause kernel panic X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Bruce Simpson List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Sep 2009 15:50:03 -0000 The following reply was made to PR kern/133786; it has been noted by GNATS. From: Bruce Simpson To: freebsd-gnats-submit@FreeBSD.org Cc: Subject: Re: kern/133786: [netinet] [patch] ip_input might cause kernel panic Date: Fri, 18 Sep 2009 16:40:20 +0100 Interesting... the input checks in ip_input() should really have screened this out, however, if m->m_len is indeed smaller than mcopy (temporary mbuf created in the ip_forward() slow path), then m_copydata() may well stomp on memory not owned by the mbuf chain.