kernel_optimize_test/arch/s390/kernel
Jiri Kosina 5ab37e1b22 s390: do not clobber personality flags in sys_32_personality()
There are multiple errors in how sys_32_personality() handles personality
flags stored in top three bytes.

- 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

Fix the first one by properly using personality() macro to compare only
PER_MASK bytes.
Fix the second one by 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: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
2012-08-08 07:32:56 -07:00
..
vdso32 s390: add various .gitignore files. 2012-05-16 14:42:41 +02:00
vdso64 s390: add various .gitignore files. 2012-05-16 14:42:41 +02:00
.gitignore s390: add various .gitignore files. 2012-05-16 14:42:41 +02:00
asm-offsets.c s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
audit.c
audit.h
base.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
bitmap.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
compat_audit.c
compat_exec_domain.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
compat_linux.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
compat_linux.h
compat_ptrace.h
compat_signal.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
compat_wrapper.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
cpcmd.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
crash_dump.c
crash.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
debug.c s390/debug: remove module_exit function / move EXPORT_SYMBOLs 2012-07-26 10:07:25 +02:00
diag.c
dis.c s390: make use of user_mode() macro where possible 2012-07-30 11:03:12 +02:00
early.c s390/exceptions: sort exception table at build time 2012-07-26 10:07:25 +02:00
ebcdic.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
entry64.S s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
entry.h s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
entry.S s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
ftrace.c
head31.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
head64.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
head_kdump.S s390/sigp: use sigp order code defines in assembly code 2012-06-05 13:23:36 +02:00
head.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
ipl.c s390/ipl: Use diagnose 8 command separation 2012-07-26 10:07:26 +02:00
irq.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
jump_label.c
kprobes.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
lgr.c s390/lgr: Add init check to lgr_info_log() 2012-07-20 11:15:01 +02:00
machine_kexec.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
Makefile s390: Use generic init_task 2012-05-05 13:00:25 +02:00
mcount64.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
mcount.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
mem_detect.c
module.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
nmi.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
os_info.c s390/smp: make absolute lowcore / cpu restart parameter accesses more robust 2012-06-14 09:09:02 +02:00
perf_cpum_cf.c s390/irq: split irq stats for cpu-measurement alert facilities 2012-05-23 17:06:52 +02:00
perf_event.c [S390] Fix build errors (fallout from system.h disintegration) 2012-03-30 09:41:12 +02:00
process.c s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
processor.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
ptrace.c s390/seccomp: add support for system call filtering using BPF 2012-08-08 07:32:56 -07:00
reipl64.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
reipl.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
relocate_kernel64.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
relocate_kernel.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
s390_ksyms.c
sclp.S s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
setup.c s390/mm: rename user_mode variable to addressing_mode 2012-07-30 11:03:11 +02:00
signal.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
smp.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux 2012-07-24 09:49:09 -07:00
stacktrace.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
suspend.c
swsusp_asm64.S s390/sigp: use sigp order code defines in assembly code 2012-06-05 13:23:36 +02:00
sys_s390.c s390: do not clobber personality flags in sys_32_personality() 2012-08-08 07:32:56 -07:00
syscalls.S
sysinfo.c s390/cpu: remove cpu "capabilities" sysfs attribute 2012-05-30 09:07:30 +02:00
time.c s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00
topology.c s390/comments: unify copyright messages and remove file names 2012-07-20 11:15:04 +02:00
traps.c s390: make use of user_mode() macro where possible 2012-07-30 11:03:12 +02:00
vdso.c s390/mm: rename user_mode variable to addressing_mode 2012-07-30 11:03:11 +02:00
vmlinux.lds.S s390/linker script: use RO_DATA_SECTION 2012-07-26 10:07:25 +02:00
vtime.c s390/vtimer: rework virtual timer interface 2012-07-20 11:15:08 +02:00