https://github.com/torvalds/linux
Revision 7256a5d2da56f2ea8ad49e8dbe9e2984f0899b42 authored by Jiri Kosina on 13 August 2012, 03:18:28 UTC, committed by Benjamin Herrenschmidt on 24 August 2012, 10:26:07 UTC
Directly comparing current->personality against PER_LINUX32 doesn't work
in cases when any of the personality flags stored in the top three bytes
are used.

Directly forcefully setting personality to PER_LINUX32 or PER_LINUX
discards any flags stored in the top three bytes

Use personality() macro to compare only PER_MASK bytes and make sure that
we are setting only the bits that should be set, instead of overwriting
the whole value.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
1 parent 4c374af
History
Tip revision: 7256a5d2da56f2ea8ad49e8dbe9e2984f0899b42 authored by Jiri Kosina on 13 August 2012, 03:18:28 UTC
powerpc: Fix personality handling in ppc64_personality()
Tip revision: 7256a5d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 1014 bytes
.mailmap -rw-r--r-- 4.4 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 92.7 KB
Kbuild -rw-r--r-- 2.5 KB
Kconfig -rw-r--r-- 252 bytes
MAINTAINERS -rw-r--r-- 210.4 KB
Makefile -rw-r--r-- 46.1 KB
README -rw-r--r-- 17.3 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top