|author||Rich Felker <firstname.lastname@example.org>||2011-04-17 15:30:08 -0400|
|committer||Rich Felker <email@example.com>||2011-04-17 15:30:08 -0400|
fix bugs in cancellable syscall asm
x86_64 was just plain wrong in the cancel-flag-already-set path, and crashing. the more subtle error was not clearing the saved stack pointer before returning to c code. this could result in the signal handler misidentifying c code as the pre-syscall part of the asm, and acting on cancellation at the wrong time, and thus resource leak race conditions. also, now __cancel (in the c code) is responsible for clearing the saved sp in the already-cancelled branch. this means we have to use call rather than jmp to ensure the stack pointer in the c will never match what the asm saved.
Diffstat (limited to 'src/thread/pthread_self.c')
0 files changed, 0 insertions, 0 deletions