[PATCH]: mremap() trivial fixes

Roman Divacky rdivacky at freebsd.org
Tue Feb 19 21:52:14 UTC 2008


On Sun, Feb 17, 2008 at 09:39:50PM +0200, Kostik Belousov wrote:
> On Sun, Feb 17, 2008 at 05:32:28PM +0100, Roman Divacky wrote:
> > hi
> > 
> > www.vlakno.cz/~rdivacky/linux_misc.patch
> > 
> > fixes two trivial issues with mremap(). it sanitizes
> > the input params a little thus fixing two LTP fails
> > 
> > please commit
> 
> Please, supply the commit message.
> Also, the comment about Linux/FreeBSD meaning of the PAGE_MASK shall be
> adjusted to describe the reason for the check first (I suggest simply
> add the "Check for the page alignment" there).

commit message:

Sanitize arguments to linux_mremap(). Check for MREMAP_FIXED
and MREMAP_MAYMOVE flags being mutually exclusive and page alignment
of addr argument.

and I fully agree with the change of the comment. please commit.

thnx a lot

roman


More information about the freebsd-emulation mailing list