From owner-freebsd-net Wed Nov 6 8:52:26 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78AD037B404 for ; Wed, 6 Nov 2002 08:52:25 -0800 (PST) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id 2CB5543E42 for ; Wed, 6 Nov 2002 08:52:24 -0800 (PST) (envelope-from iedowse@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 6 Nov 2002 16:52:17 +0000 (GMT) To: Archie Cobbs Cc: Harti Brandt , Iasen Kostov , freebsd-net@FreeBSD.org Subject: Re: NFS functions does *NOT* check if they really have allocated any memory In-Reply-To: Your message of "Wed, 06 Nov 2002 08:19:35 PST." <200211061619.gA6GJZ93002593@arch20m.dellroad.org> Date: Wed, 06 Nov 2002 16:52:14 +0000 From: Ian Dowse Message-ID: <200211061652.aa61159@salmon.maths.tcd.ie> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org In message <200211061619.gA6GJZ93002593@arch20m.dellroad.org>, Archie Cobbs wri tes: >Oops, you're right.. sorry for the misinformation. > >Sounds like a bug to me (did Iasen file a PR?) kern/38872 already exists, and I'm sure there is a much older PR that also describes this problem. Basically it is hard to fix because the errors are detected so deep within functions and macros that were never designed to correctly handle mbuf allocation failures. I think the most feasable solution would be to use libmchain or something like it, but even that is a huge amount of work. The workaround is of course just setting nmbclusters/nmbufs so high that they never run out... Ian To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message