Date: Thu, 28 Jul 2016 20:47:23 +0000 From: Jason Cooper <jason@...edaemon.net> To: william.c.roberts@...el.com, Yann Droneaud <ydroneaud@...eya.com>, linux-mm@...ck.org, linux-kernel@...r.kernel.org, kernel-hardening@...ts.openwall.com Cc: linux@....linux.org.uk, akpm@...ux-foundation.org, keescook@...omium.org, tytso@....edu, arnd@...db.de, gregkh@...uxfoundation.org, catalin.marinas@....com, will.deacon@....com, ralf@...ux-mips.org, benh@...nel.crashing.org, paulus@...ba.org, mpe@...erman.id.au, davem@...emloft.net, tglx@...utronix.de, mingo@...hat.com, hpa@...or.com, x86@...nel.org, viro@...iv.linux.org.uk, nnk@...gle.com, jeffv@...gle.com, dcashman@...roid.com, Jason Cooper <jason@...edaemon.net> Subject: [PATCH 0/7] char/random: Simplify random address requests Two previous attempts have been made to rework this API. The first can be found at: https://email@example.com The second at: https://firstname.lastname@example.org The RFC version of this series can been seen at: https://email@example.com In addition to incorporating ideas from these two previous efforts, this series adds several desirable features. First, we take the range as an argument directly, which removes math both before the call and inside the function. Second, we return the start address on error. All callers fell back to the start address on error, so we remove the need to check for errors. Third, we cap range to prevent overflow. Last, we use kerneldoc to describe the new function. If possible, I'd like to request Acks from the various subsystems so that we can merge this as one bisectable branch. Jason Cooper (7): random: Simplify API for random address requests x86: Use simpler API for random address requests ARM: Use simpler API for random address requests arm64: Use simpler API for random address requests tile: Use simpler API for random address requests unicore32: Use simpler API for random address requests random: Remove unused randomize_range() arch/arm/kernel/process.c | 3 +-- arch/arm64/kernel/process.c | 8 ++------ arch/tile/mm/mmap.c | 3 +-- arch/unicore32/kernel/process.c | 3 +-- arch/x86/kernel/process.c | 3 +-- arch/x86/kernel/sys_x86_64.c | 5 +---- drivers/char/random.c | 29 ++++++++++++++++++----------- include/linux/random.h | 2 +- 8 files changed, 26 insertions(+), 30 deletions(-) -- 2.9.2
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.