]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] futex: let futex_atomic_cmpxchg_pt survive early functional tests.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Thu, 20 Mar 2008 16:33:38 +0000 (17:33 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 20 Mar 2008 16:33:46 +0000 (17:33 +0100)
commit285eeef3591c85d3f73ed63e78e56ace422f2f99
tree7e27688729d6cff7b654e87403d3176a358cfce0
parenta65e40c9608194ac69f0cdec79a7f81b91b4d268
[S390] futex: let futex_atomic_cmpxchg_pt survive early functional tests.

dda3a43bdd964d176d414219c90698077c9acba5 "futex: runtime enable pi and
robust functionality" introduces a test wether futex in atomic stuff
works or not.
It does that by writing to address 0 of the kernel address space. This
will crash on older machines where addressing mode switching is enabled
but where the mvcos instruction is not available. Page table walking is
done by hand and therefore the code tries to access current->mm which
is NULL.
Therefore add an extra check, so we survive the early test.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/lib/uaccess_pt.c