-1 is no longer an allowed system call.
This treats a nasty bug where forking and exiting before the child causes the kernel to panic, because the syscall -1 is run, which just contains a trash value that happened to be 0. The cause is still unknown. Might be the scheduler. This won't help me sleep at night.
This commit is contained in:
parent
b15763b2de
commit
46c0cc6a12
|
@ -63,7 +63,7 @@ syscall_handler:
|
||||||
|
|
||||||
# Make sure the requested system call is valid.
|
# Make sure the requested system call is valid.
|
||||||
cmp SYSCALL_MAX, %eax
|
cmp SYSCALL_MAX, %eax
|
||||||
jl valid_eax
|
jb valid_eax
|
||||||
xorl %eax, %eax
|
xorl %eax, %eax
|
||||||
|
|
||||||
valid_eax:
|
valid_eax:
|
||||||
|
|
Loading…
Reference in New Issue