Re: [RFC]: madvise(2) and mincore(2) in 2.3.26

Pavel Machek (pavel@suse.cz)
Thu, 18 Nov 1999 10:49:26 +0100


Hi!

> > > here's a snapshot of madvise, against kernel 2.3.26. i'd like some
> > > comments and review, then i'll port it to a stable release of 2.3
> > > (probably 2.3.29) for inclusion by Linus.
> >
> > You seem to split up vma's. Cant that be used by evil looser to eat
> > precious kernel ram? (Imagine DoS attack: mmap 1Gig and madvise each
> > page separately.)
>
> you can orchestrate the same attack by mmapping 4K files over and over.

I thought that there's protection over exactly this. I'm not
sure. Just food for thought. (There _must_ be such protection, this is
too trivial to do.)
Pavel

-- 
The best software in life is free (not shareware)!		Pavel
GCM d? s-: !g p?:+ au- a--@ w+ v- C++@ UL+++ L++ N++ E++ W--- M- Y- R+

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