linux/arch/s390/mm
Martin Schwidefsky b6d09449d5 [PATCH] s390: pfault interrupt race
There is a race in pfault_interrupt.  That function gets called two times for
each pfault notification.  Once with a subcode of 0 to indicate that a real
page is not available and once with a subcode of 0x80 to indicate that the
page is present again.

Since the two external interrupts can be delivered on two different cpus the
order in which the two calls are made is unpredictable.  It is possible that
the subcode 0x80 interrupt is completed before the subcode 0x00 interrupt has
done the wake_up() call.

To avoid calling wake_up() on an already removed task structure proper task
structure reference counting is needed.  Increase the reference counter in the
subcode 0x00 interrupt before setting pfault_wait to zero and return the
reference after the wake_up call.

Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-09-05 00:06:28 -07:00
..
cmm.c [PATCH] s390: cmm sender parameter visibility 2005-06-21 19:07:33 -07:00
extmem.c [PATCH] s390: add vmcp interface 2005-06-25 16:24:37 -07:00
fault.c [PATCH] s390: pfault interrupt race 2005-09-05 00:06:28 -07:00
init.c [PATCH] s390: fix memory holes and cleanup setup_arch 2005-05-01 08:58:57 -07:00
ioremap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmap.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00