Skip to content

Revamp randomize_range()

Yann Droneaud lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2random: remove unused len argument in randomize_range() functionarch/arm/kernel/process.c arch/arm64/kernel/process.c arch/tile/mm/mmap.c +5 more+13 -180 replies
2/2random: don't return 0 in randomize_range()arch/arm/kernel/process.c arch/tile/mm/mmap.c arch/x86/kernel/process.c +2 more+7 -80 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Revamp randomize_range()

Hi,

Please find two patches to remove unused/unwanted behavor on randomize_range() function.

The first one remove the last option (len) which is unused in current kernel. The second one rewrite the function to not fail, allowing to remove the error handling code from the calling functions.

I've not added the maintainers of the various arch modified by the patches, wanted first to have your opinion about the changes.

Regards.

Yann Droneaud (2):
random: remove unused len argument in randomize_range() function
random: don't return 0 in randomize_range()

 arch/arm/kernel/process.c       |  2 +-
 arch/arm64/kernel/process.c     |  2 +-
 arch/tile/mm/mmap.c             |  2 +-
 arch/unicore32/kernel/process.c |  2 +-
 arch/x86/kernel/process.c       |  2 +-
 arch/x86/kernel/sys_x86_64.c    |  5 +----
 drivers/char/random.c           | 19 ++++++++-----------
 include/linux/random.h          |  2 +-
 8 files changed, 15 insertions(+), 21 deletions(-)
Signature · 1 line
1.8.5.3