Date: Wed, 7 Apr 2010 23:52:56 +0200 From: Aurelien Jarno <aurelien@aurel32.net> To: Petr Salinger <Petr.Salinger@seznam.cz> Cc: Kostik Belousov <kostikbel@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: leak of the vnodes Message-ID: <20100407215256.GA2739@hall.aurel32.net> In-Reply-To: <Pine.LNX.4.62.1004072256540.29016@sci.felk.cvut.cz> References: <20100406092429.GV2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004061700590.25851@sci.felk.cvut.cz> <20100406140308.GY2415@deviant.kiev.zoral.com.ua> <20100406140852.GZ2415@deviant.kiev.zoral.com.ua> <20100406144402.GB2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004062154060.26438@sci.felk.cvut.cz> <20100406210321.GE2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004070838050.27621@sci.felk.cvut.cz> <20100407095928.GG2415@deviant.kiev.zoral.com.ua> <Pine.LNX.4.62.1004072256540.29016@sci.felk.cvut.cz>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Apr 07, 2010 at 11:05:28PM +0200, Petr Salinger wrote: >>> What have to be logged ? >> Please look at ddb command "show files", implemented in kern/kern_descrip.c, >> lines 3284-3305 on HEAD. Instead of doing full dump, you can manually >> inspect the output. Or, you can write some code that would search the >> suspicious vnodes among the vnodes referenced from the processes >> opened files. Vnode is probably leaked if use count is > 0 but no >> process has vnode referenced by struct file. > > See attached file. > >>>> I think there should be something else going on. > > Bellow is leaking recipe tested under GNU/kFreeBSD. > I would expect it leaks vnodes also under plain FreeBSD. > I confirm it is reproducible on plain FreeBSD. Looks like a security issue, as a normal user can create a local DoS in a few dozen of seconds. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100407215256.GA2739>