linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [GIT PULL] random number generator fixes for 6.2-rc1, part 2
@ 2022-12-20  2:24 Jason A. Donenfeld
  2022-12-20  7:37 ` Johan Hovold
  2022-12-21 17:18 ` pr-tracker-bot
  0 siblings, 2 replies; 3+ messages in thread
From: Jason A. Donenfeld @ 2022-12-20  2:24 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: linux-kernel

Hi Linus,

As mentioned in the first pull for 6.2-rc1, this second late pull request has
two remaining changes that are now possible after you merged a few other
trees:

- #include <asm/archrandom.h> can be removed from random.h now, making the
  direct use of the arch_random_* API more of a private implementation detail
  between the archs and random.c, rather than something for general consumers.

- Two additional uses of prandom_u32_max() snuck in during the initial phase
  of pulls, so these have been converted to get_random_u32_below(), and now
  the deprecated prandom_u32_max() alias -- which was just a wrapper around
  get_random_u32_below() -- can be removed.

In addition, there is one fix:

- Check efi_rt_services_supported() before attempting to use an EFI runtime
  function. This affected EFI systems that disable runtime services yet still
  boot via EFI (e.g. the reporter's Dell arm64 laptop), as well systems where
  EFI runtime services have been forcibly disabled, such as on PREEMPT_RT. On
  those machines, a very early and hard to diagnose crash would happen,
  preventing boot.

Please pull.

Thanks,
Jason

The following changes since commit 6feb57c2fd7c787aecf2846a535248899e7b70fa:

  Merge tag 'kbuild-v6.2' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild (2022-12-19 12:33:32 -0600)

are available in the Git repository at:

  https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git tags/random-6.2-rc1-for-linus

for you to fetch changes up to 3c202d14a9d73fb63c3dccb18feac5618c21e1c4:

  prandom: remove prandom_u32_max() (2022-12-20 03:13:45 +0100)

----------------------------------------------------------------
Random number generator fixes for Linux 6.2-rc1.
----------------------------------------------------------------

Jason A. Donenfeld (2):
      random: do not include <asm/archrandom.h> from random.h
      prandom: remove prandom_u32_max()

Johan Hovold (1):
      efi: random: fix NULL-deref when refreshing seed

 arch/powerpc/kernel/setup-common.c   | 1 +
 arch/s390/kernel/setup.c             | 1 +
 arch/x86/mm/cpu_entry_area.c         | 2 +-
 drivers/char/hw_random/powernv-rng.c | 1 +
 drivers/char/hw_random/s390-trng.c   | 1 +
 drivers/char/random.c                | 1 +
 drivers/firmware/efi/efi.c           | 4 +++-
 include/linux/prandom.h              | 6 ------
 include/linux/random.h               | 2 --
 net/ipv4/tcp_plb.c                   | 2 +-
 10 files changed, 10 insertions(+), 11 deletions(-)

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

* Re: [GIT PULL] random number generator fixes for 6.2-rc1, part 2
  2022-12-20  2:24 [GIT PULL] random number generator fixes for 6.2-rc1, part 2 Jason A. Donenfeld
@ 2022-12-20  7:37 ` Johan Hovold
  2022-12-21 17:18 ` pr-tracker-bot
  1 sibling, 0 replies; 3+ messages in thread
From: Johan Hovold @ 2022-12-20  7:37 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: Linus Torvalds, linux-kernel

On Tue, Dec 20, 2022 at 03:24:58AM +0100, Jason A. Donenfeld wrote:

> In addition, there is one fix:
> 
> - Check efi_rt_services_supported() before attempting to use an EFI runtime
>   function. This affected EFI systems that disable runtime services yet still
>   boot via EFI (e.g. the reporter's Dell arm64 laptop), as well systems where

Nit: This caused trouble on the Lenovo Thinkpad X13s that we're working
on supporting in mainline (i.e. not Dell).

>   EFI runtime services have been forcibly disabled, such as on PREEMPT_RT. On
>   those machines, a very early and hard to diagnose crash would happen,
>   preventing boot.

Johan

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

* Re: [GIT PULL] random number generator fixes for 6.2-rc1, part 2
  2022-12-20  2:24 [GIT PULL] random number generator fixes for 6.2-rc1, part 2 Jason A. Donenfeld
  2022-12-20  7:37 ` Johan Hovold
@ 2022-12-21 17:18 ` pr-tracker-bot
  1 sibling, 0 replies; 3+ messages in thread
From: pr-tracker-bot @ 2022-12-21 17:18 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: Linus Torvalds, linux-kernel

The pull request you sent on Tue, 20 Dec 2022 03:24:58 +0100:

> https://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git tags/random-6.2-rc1-for-linus

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/222882c2ab1221b6df2d189138638a6435cd8e88

Thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html

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

end of thread, other threads:[~2022-12-21 17:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-20  2:24 [GIT PULL] random number generator fixes for 6.2-rc1, part 2 Jason A. Donenfeld
2022-12-20  7:37 ` Johan Hovold
2022-12-21 17:18 ` pr-tracker-bot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).