diff options
author | Kyle McMartin <kyle@shortfin.cabal.ca> | 2008-03-01 19:25:52 +0100 |
---|---|---|
committer | Kyle McMartin <kyle@shortfin.cabal.ca> | 2008-03-16 03:12:17 +0100 |
commit | c20a84c91048c76c1379011c96b1a5cee5c7d9a0 (patch) | |
tree | ffc1f1795b9e156ce54f3f9d8915730d1c60635a /kernel | |
parent | [PARISC] clean up show_stack (diff) | |
download | linux-c20a84c91048c76c1379011c96b1a5cee5c7d9a0.tar.xz linux-c20a84c91048c76c1379011c96b1a5cee5c7d9a0.zip |
[PARISC] futex: special case cmpxchg NULL in kernel space
Commit a0c1e9073ef7428a14309cba010633a6cd6719ea added code to futex.c
to detect whether futex_atomic_cmpxchg_inatomic was implemented at run
time:
+ curval = cmpxchg_futex_value_locked(NULL, 0, 0);
+ if (curval == -EFAULT)
+ futex_cmpxchg_enabled = 1;
This is bogus on parisc, since page zero in kernel virtual space is the
gateway page for syscall entry, and should not be read from the kernel.
(That, and we really don't like the kernel faulting on its own address
space...)
Signed-off-by: Kyle McMartin <kyle@mcmartin.ca>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions