git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Trying to reduce the ability for a fork bomb to fault the kernel
[tpg/acess2.git]
/
Kernel
/
arch
/
x86
/
proc.asm
diff --git
a/Kernel/arch/x86/proc.asm
b/Kernel/arch/x86/proc.asm
index
e0598a5
..
732d35f
100644
(file)
--- a/
Kernel/arch/x86/proc.asm
+++ b/
Kernel/arch/x86/proc.asm
@@
-165,7
+165,7
@@
Proc_ReturnToUser:
; EAX is the current thread
mov ebx, eax
; EAX is the current thread
mov ebx, eax
- mov eax, [ebx+
40]
; Get Kernel Stack
+ mov eax, [ebx+
12*4]
; Get Kernel Stack
sub eax, KSTACK_USERSTATE_SIZE
;
sub eax, KSTACK_USERSTATE_SIZE
;
UCC
git Repository :: git.ucc.asn.au