All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] char/random: Simplify random address requests
@ 2016-07-28 20:47 ` Jason Cooper
  0 siblings, 0 replies; 111+ messages in thread
From: Jason Cooper @ 2016-07-28 20:47 UTC (permalink / raw)
  To: william.c.roberts, Yann Droneaud, linux-mm, linux-kernel,
	kernel-hardening
  Cc: linux, akpm, keescook, tytso, arnd, gregkh, catalin.marinas,
	will.deacon, ralf, benh, paulus, mpe, davem, tglx, mingo, hpa,
	x86, viro, nnk, jeffv, dcashman, Jason Cooper

Two previous attempts have been made to rework this API.  The first can be
found at:

  https://lkml.kernel.org/r/cover.1390770607.git.ydroneaud@opteya.com

The second at:

  https://lkml.kernel.org/r/1469471141-25669-1-git-send-email-william.c.roberts@intel.com

The RFC version of this series can been seen at:

  https://lkml.kernel.org/r/20160726030201.6775-1-jason@lakedaemon.net

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

^ permalink raw reply	[flat|nested] 111+ messages in thread

end of thread, other threads:[~2016-08-04 12:47 UTC | newest]

Thread overview: 111+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-28 20:47 [PATCH 0/7] char/random: Simplify random address requests Jason Cooper
2016-07-28 20:47 ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47 ` Jason Cooper
2016-07-28 20:47 ` [PATCH 1/7] random: Simplify API for " Jason Cooper
2016-07-28 20:47   ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47   ` Jason Cooper
2016-07-29  8:59   ` Yann Droneaud
2016-07-29  8:59     ` [kernel-hardening] " Yann Droneaud
2016-07-29  8:59     ` Yann Droneaud
2016-07-29 18:20     ` Jason Cooper
2016-07-29 18:20       ` [kernel-hardening] " Jason Cooper
2016-07-29 18:20       ` Jason Cooper
2016-07-28 20:47 ` [PATCH 2/7] x86: Use simpler " Jason Cooper
2016-07-28 20:47   ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47   ` Jason Cooper
2016-07-28 20:47 ` [PATCH 3/7] ARM: " Jason Cooper
2016-07-28 20:47   ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47   ` Jason Cooper
2016-07-28 20:47 ` [PATCH 4/7] arm64: " Jason Cooper
2016-07-28 20:47   ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47   ` Jason Cooper
2016-07-29 13:48   ` Will Deacon
2016-07-29 13:48     ` [kernel-hardening] " Will Deacon
2016-07-29 13:48     ` Will Deacon
2016-07-28 20:47 ` [PATCH 5/7] tile: " Jason Cooper
2016-07-28 20:47   ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47   ` Jason Cooper
2016-07-28 20:47 ` [PATCH 6/7] unicore32: " Jason Cooper
2016-07-28 20:47   ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47   ` Jason Cooper
2016-07-28 20:47 ` [PATCH 7/7] random: Remove unused randomize_range() Jason Cooper
2016-07-28 20:47   ` [kernel-hardening] " Jason Cooper
2016-07-28 20:47   ` Jason Cooper
2016-07-30 15:42 ` [PATCH v2 0/7] char/random: Simplify random address requests Jason Cooper
2016-07-30 15:42   ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42   ` Jason Cooper
2016-07-30 15:42   ` [PATCH v2 1/7] random: Simplify API for " Jason Cooper
2016-07-30 15:42     ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42     ` Jason Cooper
2016-07-31 16:46     ` Kees Cook
2016-07-31 16:46       ` [kernel-hardening] " Kees Cook
2016-07-31 16:46       ` Kees Cook
2016-07-31 20:56       ` Jason Cooper
2016-07-31 20:56         ` [kernel-hardening] " Jason Cooper
2016-07-31 20:56         ` Jason Cooper
2016-08-01 19:47         ` Kees Cook
2016-08-01 19:47           ` [kernel-hardening] " Kees Cook
2016-08-01 19:47           ` Kees Cook
2016-08-01 23:17           ` Jason Cooper
2016-08-01 23:17             ` [kernel-hardening] " Jason Cooper
2016-08-01 23:17             ` Jason Cooper
2016-08-02  3:35             ` [kernel-hardening] " Michael Ellerman
2016-08-02  3:35               ` Michael Ellerman
2016-08-02  3:35               ` Michael Ellerman
2016-08-03 18:42               ` Jason Cooper
2016-08-03 18:42                 ` Jason Cooper
2016-08-03 18:42                 ` Jason Cooper
2016-07-30 15:42   ` [PATCH v2 2/7] x86: Use simpler " Jason Cooper
2016-07-30 15:42     ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42     ` Jason Cooper
2016-07-30 15:42   ` [PATCH v2 3/7] ARM: " Jason Cooper
2016-07-30 15:42     ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42     ` Jason Cooper
2016-07-30 15:42   ` [PATCH v2 4/7] arm64: " Jason Cooper
2016-07-30 15:42     ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42     ` Jason Cooper
2016-07-30 15:42   ` [PATCH v2 5/7] tile: " Jason Cooper
2016-07-30 15:42     ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42     ` Jason Cooper
2016-07-30 15:42   ` [PATCH v2 6/7] unicore32: " Jason Cooper
2016-07-30 15:42     ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42     ` Jason Cooper
2016-07-30 15:42   ` [PATCH v2 7/7] random: Remove unused randomize_range() Jason Cooper
2016-07-30 15:42     ` [kernel-hardening] " Jason Cooper
2016-07-30 15:42     ` Jason Cooper
2016-08-03 23:39 ` [PATCH v3 0/7] char/random: Simplify random address requests Jason Cooper
2016-08-03 23:39   ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39   ` Jason Cooper
2016-08-03 23:39   ` [PATCH v3 1/7] random: Simplify API for " Jason Cooper
2016-08-03 23:39     ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39     ` Jason Cooper
2016-08-04 12:47     ` Yann Droneaud
2016-08-04 12:47       ` [kernel-hardening] " Yann Droneaud
2016-08-04 12:47       ` Yann Droneaud
2016-08-03 23:39   ` [PATCH v3 2/7] x86: Use simpler " Jason Cooper
2016-08-03 23:39     ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39     ` Jason Cooper
2016-08-03 23:39   ` [PATCH v3 3/7] ARM: " Jason Cooper
2016-08-03 23:39     ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39     ` Jason Cooper
2016-08-03 23:39   ` [PATCH v3 4/7] arm64: " Jason Cooper
2016-08-03 23:39     ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39     ` Jason Cooper
2016-08-03 23:39   ` [PATCH v3 5/7] tile: " Jason Cooper
2016-08-03 23:39     ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39     ` Jason Cooper
2016-08-03 23:39   ` [PATCH v3 6/7] unicore32: " Jason Cooper
2016-08-03 23:39     ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39     ` Jason Cooper
2016-08-03 23:39   ` [PATCH v3 7/7] random: Remove unused randomize_range() Jason Cooper
2016-08-03 23:39     ` [kernel-hardening] " Jason Cooper
2016-08-03 23:39     ` Jason Cooper
2016-08-03 23:48     ` Andrew Morton
2016-08-03 23:48       ` [kernel-hardening] " Andrew Morton
2016-08-03 23:48       ` Andrew Morton
2016-08-04  0:19       ` Jason Cooper
2016-08-04  0:19         ` [kernel-hardening] " Jason Cooper
2016-08-04  0:19         ` Jason Cooper
2016-08-04  2:41   ` [PATCH v3 0/7] char/random: Simplify random address requests Kees Cook
2016-08-04  2:41     ` [kernel-hardening] " Kees Cook
2016-08-04  2:41     ` Kees Cook

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.