]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/binfmt_elf.c
[XFS] Remove a couple of unused BUF macros
[linux-2.6-omap-h63xx.git] / fs / binfmt_elf.c
index 64802aabd1aca5ff3a2a4f09679ad4cbca8e78d9..dfd8cfb7fb5dcd213ab74c41474c81e06a69f8e1 100644 (file)
@@ -515,7 +515,8 @@ static unsigned long randomize_stack_top(unsigned long stack_top)
 {
        unsigned int random_variable = 0;
 
-       if (current->flags & PF_RANDOMIZE) {
+       if ((current->flags & PF_RANDOMIZE) &&
+               !(current->personality & ADDR_NO_RANDOMIZE)) {
                random_variable = get_random_int() & STACK_RND_MASK;
                random_variable <<= PAGE_SHIFT;
        }