linux/arch/arm
Linus Torvalds f1947d7c8a Random number generator fixes for Linux 6.1-rc1.
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCAAdFiEEq5lC5tSkz8NBJiCnSfxwEqXeA64FAmNHYD0ACgkQSfxwEqXe
 A655AA//dJK0PdRghqrKQsl18GOCffV5TUw5i1VbJQbI9d8anfxNjVUQiNGZi4et
 qUwZ8OqVXxYx1Z1UDgUE39PjEDSG9/cCvOpMUWqN20/+6955WlNZjwA7Fk6zjvlM
 R30fz5CIJns9RFvGT4SwKqbVLXIMvfg/wDENUN+8sxt36+VD2gGol7J2JJdngEhM
 lW+zqzi0ABqYy5so4TU2kixpKmpC08rqFvQbD1GPid+50+JsOiIqftDErt9Eg1Mg
 MqYivoFCvbAlxxxRh3+UHBd7ZpJLtp1UFEOl2Rf00OXO+ZclLCAQAsTczucIWK9M
 8LCZjb7d4lPJv9RpXFAl3R1xvfc+Uy2ga5KeXvufZtc5G3aMUKPuIU7k28ZyblVS
 XXsXEYhjTSd0tgi3d0JlValrIreSuj0z2QGT5pVcC9utuAqAqRIlosiPmgPlzXjr
 Us4jXaUhOIPKI+Musv/fqrxsTQziT0jgVA3Njlt4cuAGm/EeUbLUkMWwKXjZLTsv
 vDsBhEQFmyZqxWu4pYo534VX2mQWTaKRV1SUVVhQEHm57b00EAiZohoOvweB09SR
 4KiJapikoopmW4oAUFotUXUL1PM6yi+MXguTuc1SEYuLz/tCFtK8DJVwNpfnWZpE
 lZKvXyJnHq2Sgod/hEZq58PMvT6aNzTzSg7YzZy+VabxQGOO5mc=
 =M+mV
 -----END PGP SIGNATURE-----

Merge tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random

Pull more random number generator updates from Jason Donenfeld:
 "This time with some large scale treewide cleanups.

  The intent of this pull is to clean up the way callers fetch random
  integers. The current rules for doing this right are:

   - If you want a secure or an insecure random u64, use get_random_u64()

   - If you want a secure or an insecure random u32, use get_random_u32()

     The old function prandom_u32() has been deprecated for a while
     now and is just a wrapper around get_random_u32(). Same for
     get_random_int().

   - If you want a secure or an insecure random u16, use get_random_u16()

   - If you want a secure or an insecure random u8, use get_random_u8()

   - If you want secure or insecure random bytes, use get_random_bytes().

     The old function prandom_bytes() has been deprecated for a while
     now and has long been a wrapper around get_random_bytes()

   - If you want a non-uniform random u32, u16, or u8 bounded by a
     certain open interval maximum, use prandom_u32_max()

     I say "non-uniform", because it doesn't do any rejection sampling
     or divisions. Hence, it stays within the prandom_*() namespace, not
     the get_random_*() namespace.

     I'm currently investigating a "uniform" function for 6.2. We'll see
     what comes of that.

  By applying these rules uniformly, we get several benefits:

   - By using prandom_u32_max() with an upper-bound that the compiler
     can prove at compile-time is ≤65536 or ≤256, internally
     get_random_u16() or get_random_u8() is used, which wastes fewer
     batched random bytes, and hence has higher throughput.

   - By using prandom_u32_max() instead of %, when the upper-bound is
     not a constant, division is still avoided, because
     prandom_u32_max() uses a faster multiplication-based trick instead.

   - By using get_random_u16() or get_random_u8() in cases where the
     return value is intended to indeed be a u16 or a u8, we waste fewer
     batched random bytes, and hence have higher throughput.

  This series was originally done by hand while I was on an airplane
  without Internet. Later, Kees and I worked on retroactively figuring
  out what could be done with Coccinelle and what had to be done
  manually, and then we split things up based on that.

  So while this touches a lot of files, the actual amount of code that's
  hand fiddled is comfortably small"

* tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random:
  prandom: remove unused functions
  treewide: use get_random_bytes() when possible
  treewide: use get_random_u32() when possible
  treewide: use get_random_{u8,u16}() when possible, part 2
  treewide: use get_random_{u8,u16}() when possible, part 1
  treewide: use prandom_u32_max() when possible, part 2
  treewide: use prandom_u32_max() when possible, part 1
2022-10-16 15:27:07 -07:00
..
boot This update includes the following changes: 2022-10-10 13:04:25 -07:00
common
configs - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
crypto crypto: Kconfig - simplify cipher entries 2022-08-26 18:50:43 +08:00
include - hfs and hfsplus kmap API modernization from Fabio Francesco 2022-10-12 11:00:22 -07:00
kernel Random number generator fixes for Linux 6.1-rc1. 2022-10-16 15:27:07 -07:00
lib ARM: 9233/1: stacktrace: Skip frame pointer boundary check for call_with_stack() 2022-10-04 11:09:47 +01:00
mach-actions
mach-airoha
mach-alpine
mach-artpec
mach-asm9260
mach-aspeed ARM: aspeed: Kconfig: Fix indentation 2022-09-28 22:33:55 +02:00
mach-at91 These are the pin control changes for the v6.1 kernel cycle: 2022-10-11 10:59:59 -07:00
mach-axxia
mach-bcm SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-berlin
mach-clps711x
mach-cns3xxx ARM: cns3xxx: add CONFIG_UNUSED_BOARD_FILES dependency 2022-07-22 14:18:52 +02:00
mach-davinci ARM: SoC code changes for 6.1 2022-10-06 11:22:25 -07:00
mach-digicolor
mach-dove ARM: make ARCH_MULTIPLATFORM user-visible 2022-08-30 11:18:09 +02:00
mach-ep93xx TTY/Serial driver update for 6.1-rc1 2022-10-07 16:36:24 -07:00
mach-exynos
mach-footbridge Merge branch 'arm-multiplatform-cleanup' of https://git.kernel.org/pub/scm/linux/kernel/git/soc/soc into arm/soc 2022-09-15 22:20:59 +02:00
mach-gemini
mach-highbank
mach-hisi
mach-hpe
mach-imx ARM: Kconfig: clean up platform selection 2022-08-18 16:44:59 +02:00
mach-iop32x ARM: remove obsolete Makefile.boot infrastructure 2022-08-18 16:44:59 +02:00
mach-ixp4xx ARM: ixp4xx: fix typos in comments 2022-08-29 11:06:16 +02:00
mach-keystone
mach-lpc18xx ARM: remove obsolete Makefile.boot infrastructure 2022-08-18 16:44:59 +02:00
mach-lpc32xx ARM: remove obsolete Makefile.boot infrastructure 2022-08-18 16:44:59 +02:00
mach-mediatek
mach-meson
mach-milbeaut
mach-mmp ARM: mmp: Make some symbols static 2022-10-10 10:40:10 +02:00
mach-moxart
mach-mstar
mach-mv78xx0 ARM: make ARCH_MULTIPLATFORM user-visible 2022-08-30 11:18:09 +02:00
mach-mvebu ARM: make ARCH_MULTIPLATFORM user-visible 2022-08-30 11:18:09 +02:00
mach-mxs
mach-nomadik
mach-npcm
mach-nspire ARM: Kconfig: clean up platform selection 2022-08-18 16:44:59 +02:00
mach-omap1 - Core Frameworks 2022-10-07 11:24:20 -07:00
mach-omap2 SPDX changes for 6.0-rc1 2022-08-04 12:12:54 -07:00
mach-orion5x ARM: make ARCH_MULTIPLATFORM user-visible 2022-08-30 11:18:09 +02:00
mach-oxnas
mach-pxa - Core Frameworks 2022-08-06 10:25:16 -07:00
mach-qcom
mach-rda
mach-realtek
mach-rockchip
mach-rpc ARM: Kconfig: clean up platform selection 2022-08-18 16:44:59 +02:00
mach-s3c USB/Thunderbolt changes for 6.1-rc1 2022-10-07 16:48:26 -07:00
mach-s5pv210
mach-sa1100 ARM: Kconfig: clean up platform selection 2022-08-18 16:44:59 +02:00
mach-shmobile ARM: shmobile: Drop selecting SOC_BUS 2022-09-18 14:51:10 +02:00
mach-socfpga
mach-spear ARM: spear6xx: Staticize few definitions 2022-10-10 10:38:33 +02:00
mach-sti
mach-stm32 ARM: remove obsolete Makefile.boot infrastructure 2022-08-18 16:44:59 +02:00
mach-sunplus ARM: sunplus: fix serial console kconfig and build problems 2022-09-23 14:20:00 +02:00
mach-sunxi
mach-tegra
mach-uniphier
mach-ux500
mach-versatile TTY/Serial driver update for 6.1-rc1 2022-10-07 16:36:24 -07:00
mach-vt8500 ARM: remove obsolete Makefile.boot infrastructure 2022-08-18 16:44:59 +02:00
mach-zynq
mm dma-mapping updates for Linux 6.1 2022-10-10 13:24:55 -07:00
net
nwfpe
plat-orion ARM: orion: fix include path 2022-09-23 21:55:54 +02:00
probes
tools
vdso
vfp
xen xen: don't require virtio with grants for non-PV guests 2022-08-01 07:43:03 +02:00
Kbuild
Kconfig - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
Kconfig-nommu
Kconfig.assembler
Kconfig.debug ARM: make ARCH_MULTIPLATFORM user-visible 2022-08-30 11:18:09 +02:00
Makefile Kbuild updates for v6.1 2022-10-10 12:00:45 -07:00