• Linus Torvalds's avatar
    Clean up stack growth checks and move them into a common function. · 7d153fe7
    Linus Torvalds authored
    The grows-up and grows-down cases had all the same issues, but
    differered in the details. Additionlly, historical evolution of
    the tests had caused the result to be pretty unreadable with some
    rather long and complex conditionals.
    
    Fix it all up in a more readable helper function.
    
    This also adds the missing RLIMIT_MEMLOCK test.
    7d153fe7
mmap.c 51.7 KB