Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Nov 2000 11:04:37 +0600 (ALMT)
From:      Boris Popov <bp@butya.kz>
To:        Thomas Moestl <tmoestl@gmx.net>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: [PATCH] Fix for panics in lookup() after forced unmount
Message-ID:  <Pine.BSF.4.21.0011271102480.96868-100000@lion.butya.kz>
In-Reply-To: <20001126190453.A1157@crow.dom2ip.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 26 Nov 2000, Thomas Moestl wrote:

> Actually, the panic will occur after a simple forced unmount of the current
> working directory and subsequent try to access "..". This is because the
> vnode of the cwd was cleared and it's v_mount member was set to NULL. This
> member is however dereferenced in the handling for the ".." special case in
> lookup(), causing a panic.
> The fix is rather trivial, just check the member before using it and return
> an appropriate error. In the following patch, I use EBADF. 
> Btw, after taking a look into the OpenBSD and NetBSD repos, I think they
> might have the same problem. Is there any standard channel to pass bug
> reports to them from FreeBSD, or should I just use the normal submit 
> procedure?

	Good work Thomas! I think patch can be committed as is.

--
Boris Popov
http://www.butya.kz/~bp/



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0011271102480.96868-100000>