Date: Mon, 5 Apr 2004 00:11:47 -0400 From: Alexander Kabaev <ak03@gte.com> To: Alan Cox <alc@cs.rice.edu> Cc: current@freebsd.org Subject: Re: mmap breakage? Message-ID: <20040405041147.GA39962@kanpc.gte.com> In-Reply-To: <20040404201251.GP15786@cs.rice.edu> References: <20040402191254.GK26131@elvis.mu.org> <35917.1080933274@critter.freebsd.dk> <20040402195957.GN26131@elvis.mu.org> <20040404201251.GP15786@cs.rice.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, Apr 04, 2004 at 03:12:51PM -0500, Alan Cox wrote: > Alfred, > > Please try the attached patch. This problems appears to be a > consequence of vm/vm_mmap.c revision 1.180, where as part of a much > needed code reorganization for locking the check for the /dev/zero > special case got placed after the permissions check for the general > case. This patch simply delays the permissions check for devices > until you have the necessary lock to also check for /dev/zero. > > Since kan@ authored the reorganization, I'm cc:'ing him on this > message for purposes of obtaining a review. (At least one comment > should be updated to reflect my code changes.) > > Regards, > Alan > > Alan, Alfred, I had the following patch which is currently pending a review by Peter Wemm. I meant to commit it on Friday, but ran out of time: http://perforce.freebsd.org/chv.cgi?CH=50213 -- Alexander Kabaev
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040405041147.GA39962>