https://github.com/torvalds/linux
Revision c20a84c91048c76c1379011c96b1a5cee5c7d9a0 authored by Kyle McMartin on 01 March 2008, 18:25:52 UTC, committed by Kyle McMartin on 16 March 2008, 02:12:17 UTC
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>
1 parent dc39455
History
Tip revision: c20a84c91048c76c1379011c96b1a5cee5c7d9a0 authored by Kyle McMartin on 01 March 2008, 18:25:52 UTC
[PARISC] futex: special case cmpxchg NULL in kernel space
Tip revision: c20a84c
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 644 bytes
.mailmap -rw-r--r-- 3.6 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 90.4 KB
Kbuild -rw-r--r-- 1.6 KB
MAINTAINERS -rw-r--r-- 95.3 KB
Makefile -rw-r--r-- 52.8 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top