linux/arch
Jason Cooper 05c2679e95 unicore32: use simpler API for random address requests
Currently, all callers to randomize_range() set the length to 0 and
calculate end by adding a constant to the start address.  We can simplify
the API to remove a bunch of needless checks and variables.

Use the new randomize_addr(start, range) call to set the requested
address.

Link: http://lkml.kernel.org/r/20160803233913.32511-7-jason@lakedaemon.net
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: "Theodore Ts'o" <tytso@mit.edu>
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2016-10-11 15:06:32 -07:00
..
alpha Merge branch 'mm-pkeys-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-10-10 11:01:51 -07:00
arc nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
arm ARM: use simpler API for random address requests 2016-10-11 15:06:32 -07:00
arm64 arm64: use simpler API for random address requests 2016-10-11 15:06:32 -07:00
avr32 Merge branch 'akpm' (patches from Andrew) 2016-10-07 21:38:00 -07:00
blackfin nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
c6x nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
cris CRIS changes for 4.9 2016-10-10 11:28:35 -07:00
frv nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
h8300 nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
hexagon nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
ia64 nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
m32r nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
m68k nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
metag nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
microblaze nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
mips Merge branch 'mm-pkeys-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-10-10 11:01:51 -07:00
mn10300 nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
nios2 nios2 update for v4.9-rc1 2016-10-10 11:31:19 -07:00
openrisc nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
parisc Merge branch 'work.misc' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-10 13:04:49 -07:00
powerpc Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-10 20:16:43 -07:00
s390 Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2016-10-10 20:16:43 -07:00
score nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
sh nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
sparc nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
tile tile: use simpler API for random address requests 2016-10-11 15:06:32 -07:00
um nmi_backtrace: generate one-line reports for idle cpus 2016-10-07 18:46:30 -07:00
unicore32 unicore32: use simpler API for random address requests 2016-10-11 15:06:32 -07:00
x86 x86: use simpler API for random address requests 2016-10-11 15:06:32 -07:00
xtensa Merge branch 'mm-pkeys-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip 2016-10-10 11:01:51 -07:00
.gitignore
Kconfig