Make the map, find out where mmap() put it, then munmap() it. Bingo, one
empty map (i.e. one that will SEGV when you access it) that is
exactly the right size.
Hmmm...of course, you now have to prevent anything from mmap()ing a page
into the empty area afterwards. Does mmap() with no access bits
(PROT_READ/PROT_WRITE etc) work, i.e. create a mapping that you can't access?
-- Zygo Blaxell, Linux Engineer, Corel Corporation, zygob@corel.ca (work), zblaxell@furryterror.org (play). It's my opinion, I tell you! Mine! All MINE! Size of 'diff -Nurw [...] winehq corel' as of Wed Mar 10 12:14:00 EST 1999 Lines/files: In 2058 / 29, Out 5773 / 59, Both 7821 / 85- 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/