From: Kees Cook Date: Tue, 14 Apr 2015 22:47:45 +0000 (-0700) Subject: x86: standardize mmap_rnd() usage X-Git-Tag: v3.2.80~36 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=333d0cf28913c5d52dc7a15d0f0a4c1444f67632;p=pandora-kernel.git x86: standardize mmap_rnd() usage commit 82168140bc4cec7ec9bad39705518541149ff8b7 upstream. In preparation for splitting out ET_DYN ASLR, this refactors the use of mmap_rnd() to be used similarly to arm, and extracts the checking of PF_RANDOMIZE. Signed-off-by: Kees Cook Reviewed-by: Ingo Molnar Cc: Oleg Nesterov Cc: Andy Lutomirski Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds [bwh: Backported to 3.2: adjust context] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed