]> Zhao Yanbai Git Server - minix.git/commit
Kernel: pass FPU restore exception to user process
authorDavid van Moolenbroek <david@minix3.org>
Sat, 3 Mar 2012 18:25:57 +0000 (19:25 +0100)
committerDavid van Moolenbroek <david@minix3.org>
Mon, 5 Mar 2012 21:32:14 +0000 (22:32 +0100)
commit0a8a2ecfb53838da93e7d8e186a4f9cf9c4bb38a
tree5bc88fbf8230708764118d594ce19e5ad5be8e28
parent4b6a98de5fd7f5e034b838fbd78b8384d2dc3df9
Kernel: pass FPU restore exception to user process

Previously, user processes could cause a kernel panic upon FPU state
restore, by passing bogus FPU state to the kernel (through e.g.
sigreturn). With this patch, the process is now sent a SIGFPE signal
instead.
kernel/arch/i386/arch_system.c
kernel/arch/i386/exception.c
kernel/arch/i386/include/arch_proto.h
kernel/arch/i386/klib.S
kernel/arch/i386/mpx.S
kernel/proc.c
kernel/proto.h
test/Makefile
test/run
test/test62.c [new file with mode: 0644]