Breaks too much. Also messes up any future multi-process per bank arrangement
authorAlan Cox <alan@linux.intel.com>
Tue, 8 Jan 2019 16:58:02 +0000 (16:58 +0000)
committerAlan Cox <alan@linux.intel.com>
Tue, 8 Jan 2019 16:58:02 +0000 (16:58 +0000)
Revert "syscall_exec16: pagemap_realloc takes top, not size"

This reverts commit 0463011f113a92a0c9b19fb91cbb081c743a2f32.

Kernel/syscall_exec16.c

index 27727f3..876258e 100644 (file)
@@ -135,7 +135,7 @@ arg_t _execve(void)
           two elements. We never allocate 'code' as there is no split I/D */
        /* This is only safe from deadlocks providing pagemap_realloc doesn't
           sleep */
-       if (pagemap_realloc(0, top, 0))
+       if (pagemap_realloc(0, top - MAPBASE, 0))
                goto nogood3;
 
        /* From this point on we are commmited to the exec() completing */