Re: mremap vulnerability patch for WOLK

Marc-Christian Petersen <[email protected]> Thu, 8 Jan 2004 11:56:04 +0100
Newsgroups gmane.linux.wolk.devel
Organization Working Overloaded Linux Kernel
Message-ID <200401081156.04604@WOLK>
On Tuesday 06 January 2004 13:56, Marc-Christian Petersen wrote:

Hi again,

> > --- linux/mm/mremap.c.orig      2004-01-05 17:01:21.382104120 +0000
> > +++ linux/mm/mremap.c   2004-01-05 17:15:25.689749848 +0000
> > @@ -315,6 +315,10 @@
> >         old_len = PAGE_ALIGN(old_len);
> >         new_len = PAGE_ALIGN(new_len);
> >
> > +       /* Don't allow the degenerate cases */
> > +       if (!(old_len | new_len))
> > +               goto out;
> > +
> >         /* new_addr is only valid if MREMAP_FIXED is specified */
> >         if (flags & MREMAP_FIXED) {
> >                 if (new_addr & ~PAGE_MASK)

> that fix from Linus is bogus.

I've said so ;)

http://marc.theaimsgroup.com/?l=linux-kernel&m=107352619815208&w=2

ciao, Marc



-------------------------------------------------------
This SF.net email is sponsored by: Perforce Software.
Perforce is the Fast Software Configuration Management System offering
advanced branching capabilities and atomic changes on 50+ platforms.
Free Eval! http://www.perforce.com/perforce/loadprog.html
_______________________________________________
WOLK - Working Overloaded Linux Kernel
[email protected]
https://lists.sourceforge.net/lists/listinfo/wolk-devel