]> git.hungrycats.org Git - linux/commit
[PATCH] ppc32: Fix racy access to TI_FLAGS
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 25 Mar 2004 13:59:54 +0000 (05:59 -0800)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Thu, 25 Mar 2004 13:59:54 +0000 (05:59 -0800)
commit1c7544725324f350a2441b6fdd63205edfbe5c62
tree8f3edc97a3af2dab47d2a021c0d52beacec70792
parentf9f90f7577ee36e48149df1ec0480de6e8e2bbec
[PATCH] ppc32: Fix racy access to TI_FLAGS

The ppc32 syscall entry code could access the thread info flags in a
racy way, thus potentially losing bits sets there at interrupt time or
by another CPU, like NEED_RESCHED or SIGPENDING (ouch !).

This fixes it by moving the potentially racy bit to a different field (I
preferred that rather than turning the access into an atomic operation
for performances reasons).
arch/ppc/kernel/entry.S
include/asm-ppc/ptrace.h
include/asm-ppc/thread_info.h