-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:
Jonas 'Sortie' Termansen 2011-11-22 22:08:34 +01:00
parent b15763b2de
commit 46c0cc6a12
1 changed files with 1 additions and 1 deletions

View File

@ -63,7 +63,7 @@ syscall_handler:
# Make sure the requested system call is valid.
cmp SYSCALL_MAX, %eax
jl valid_eax
jb valid_eax
xorl %eax, %eax
valid_eax: