kernel: remove stack size hack for 32bit
authorAlan Cox <alan@linux.intel.com>
Sun, 20 Jan 2019 15:21:08 +0000 (15:21 +0000)
committerAlan Cox <alan@linux.intel.com>
Sun, 20 Jan 2019 15:21:08 +0000 (15:21 +0000)
We leave a sensible minimum value just as a sanity check

Kernel/syscall_exec32.c

index abcdffb..c55c53e 100644 (file)
@@ -58,8 +58,8 @@ static void close_on_exec(void)
 
 static int valid_hdr(inoptr ino, struct binfmt_flat *bf)
 {
-       if (bf->stack_size < 32768)
-               bf->stack_size = 32768;
+       if (bf->stack_size < 4096)
+               bf->stack_size = 4096;
        if (bf->rev != 4)
                return 0;
        if (bf->entry >= bf->data_start)