From owner-cvs-all@FreeBSD.ORG Thu Jun 7 00:28:49 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 440E516A41F; Thu, 7 Jun 2007 00:28:49 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 1E5EF13C448; Thu, 7 Jun 2007 00:28:49 +0000 (UTC) (envelope-from yongari@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l570Sn9a039069; Thu, 7 Jun 2007 00:28:49 GMT (envelope-from yongari@repoman.freebsd.org) Received: (from yongari@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l570SmoG039068; Thu, 7 Jun 2007 00:28:48 GMT (envelope-from yongari) Message-Id: <200706070028.l570SmoG039068@repoman.freebsd.org> From: Pyun YongHyeon Date: Thu, 7 Jun 2007 00:28:48 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/de if_de.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jun 2007 00:28:49 -0000 yongari 2007-06-07 00:28:48 UTC FreeBSD src repository Modified files: sys/dev/de if_de.c Log: The maxsegsz of a dma tag created in de(4) is TULIP_DATA_PER_DESC bytes. In Rx path it allocates a new mbuf with m_getcl(9) so the length of the mbuf is MCLBYTES which is greater than a segment size specified by the dma tag. This segment size mismatch caused a voluntary panic. Fix the panic by settting the mbuf length to TULIP_DATA_PER_DESC. Reported by: Arne H Juul Tested by: Arne H Juul Revision Changes Path 1.183 +1 -1 src/sys/dev/de/if_de.c