lkml.org 
[lkml]   [2004]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: New do_mremap vulnerabitily.


On Wed, 18 Feb 2004, Chris Friesen wrote:
>
> There is still a call to do_munmap() that does not check the return
> code, called from move_vma(), which in turn is called in do_mremap().
>
> Can that call ever fail and cause Bad Things to happen?

Yes it can fail, and no, bad things can't happen. We could return the
error code to user space, but on the other hand, by the time the munmap
fails we would already have done 90% of the mremap(), so it doesn't much
help user space to know that the old area still has a vma, but no pages
associated with it.

Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2009-11-18 23:46    [W:0.486 / U:0.056 seconds]
©2003-2011 Jasper Spaans. Advertise on this site