Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Feb 1996 23:33:28 -0700
From:      Mike Hibler <mike@marker.cs.utah.edu>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/1001: M_NAMEI malloc leak in the kernel
Message-ID:  <199602080633.XAA20538@marker.cs.utah.edu>
Resent-Message-ID: <199602080640.WAA26682@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1001
>Category:       kern
>Synopsis:       M_NAMEI malloc leak in the kernel
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb  7 22:40:01 PST 1996
>Last-Modified:
>Originator:     Mike Hibler
>Organization:
Univ. of Utah
>Release:        FreeBSD 2.1.0-950726-SNAP i386
>Environment:

	N/A

>Description:

	nfs_vnops.c:nfs_link leaks a M_NAMEI buffer if it fails with EXDEV.
	This is due to the commented out VOP_ABORTOP
	(I have no idea why this is commented out, it just always has been).

>How-To-Repeat:

	vmstat -m	# note the memory use of namei
	cd <some writable nfs-mounted filesystem>
	ln /kernel foo	# should fail with cross-dev link
	vmstat -m	# see namei grow, grow namei grow


>Fix:
	
	Stick in "FREE(cnp->cn_pnbuf, M_NAMEI)"



>Audit-Trail:
>Unformatted:



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