Skip to content
Commit 1c0d52b9 authored by David Daney's avatar David Daney Committed by Ralf Baechle
Browse files

MIPS: Don't clobber personality high bits.



The high bits of current->personality carry settings that we don't want to
clobber on each exec.  Only clobber them if the lower bits that indicate
either PER_LINUX or PER_LINUX32 are invalid.

The clobbering prevents us from using useful bits like ADDR_NO_RANDOMIZE.

Reported-by: default avatarCamm Maguire <camm@maguirefamily.org>
Signed-off-by: default avatarDavid Daney <ddaney@caviumnetworks.com>
Cc: Camm Maguire <camm@maguirefamily.org>
Patchwork: https://patchwork.linux-mips.org/patch/1750/
Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
parent 1d210386
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment