public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b9e259a
)
syscall_exec32: report ENOMEM properly for outsized binaries
author
Alan Cox
<alan@linux.intel.com>
Sun, 20 Jan 2019 00:49:36 +0000
(
00:49
+0000)
committer
Alan Cox
<alan@linux.intel.com>
Sun, 20 Jan 2019 00:49:36 +0000
(
00:49
+0000)
Kernel/syscall_exec32.c
patch
|
blob
|
history
diff --git
a/Kernel/syscall_exec32.c
b/Kernel/syscall_exec32.c
index
688f1e7
..
abcdffb
100644
(file)
--- a/
Kernel/syscall_exec32.c
+++ b/
Kernel/syscall_exec32.c
@@
-182,7
+182,8
@@
arg_t _execve(void)
/* This must be the last test as it makes changes if it works */
/* FIXME: need to update this to support split code/data and to fix
stack handling nicely */
- if (pagemap_realloc(0, bin_size, 0))
+ /* FIXME: ENOMEM fix needs to go to 16bit ? */
+ if ((udata.u_error = pagemap_realloc(0, bin_size, 0)) != 0)
goto nogood3;
/* Core dump and ptrace permission logic */