Go to file
Ivan Vecera 2f9aed229d crypto/testmgr: use get_random_u32_inclusive() when possible
JIRA: https://issues.redhat.com/browse/RHEL-3646

Conflicts:
- only crypto/testmgr.c to be able to apply later follow-up
  f900fde28883 ("crypto: testmgr - fix RNG performance in fuzz tests")

commit e8a533cbeb79809206f8724e89961e0079508c3c
Author: Jason A. Donenfeld <Jason@zx2c4.com>
Date:   Sun Oct 9 20:44:02 2022 -0600

    treewide: use get_random_u32_inclusive() when possible

    These cases were done with this Coccinelle:

    @@
    expression H;
    expression L;
    @@
    - (get_random_u32_below(H) + L)
    + get_random_u32_inclusive(L, H + L - 1)

    @@
    expression H;
    expression L;
    expression E;
    @@
      get_random_u32_inclusive(L,
      H
    - + E
    - - E
      )

    @@
    expression H;
    expression L;
    expression E;
    @@
      get_random_u32_inclusive(L,
      H
    - - E
    - + E
      )

    @@
    expression H;
    expression L;
    expression E;
    expression F;
    @@
      get_random_u32_inclusive(L,
      H
    - - E
      + F
    - + E
      )

    @@
    expression H;
    expression L;
    expression E;
    expression F;
    @@
      get_random_u32_inclusive(L,
      H
    - + E
      + F
    - - E
      )

    And then subsequently cleaned up by hand, with several automatic cases
    rejected if it didn't make sense contextually.

    Reviewed-by: Kees Cook <keescook@chromium.org>
    Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> # for infiniband
    Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>

Signed-off-by: Ivan Vecera <ivecera@redhat.com>
2023-09-13 18:51:29 +02:00
Documentation random: fix sysctl documentation nits 2023-09-13 18:39:24 +02:00
LICENSES
arch arm64: adjust KASLR relocation after ARCH_RANDOM removal 2023-09-13 18:51:28 +02:00
block
certs
crypto crypto/testmgr: use get_random_u32_inclusive() when possible 2023-09-13 18:51:29 +02:00
drivers random: do not include <asm/archrandom.h> from random.h 2023-09-13 18:51:28 +02:00
fs Merge: Backport the erofs filesystem support for chunk-based file on-disk format 2023-09-05 09:50:29 -04:00
include random: do not include <asm/archrandom.h> from random.h 2023-09-13 18:51:28 +02:00
init random: split initialization into early step and later step 2023-09-13 18:51:26 +02:00
io_uring
ipc
kernel timekeeping: contribute wall clock to rng on time change 2023-09-13 18:45:08 +02:00
lib random: remove rng_has_arch_random() 2023-09-13 18:44:18 +02:00
mm kfence: use better stack hash seed 2023-09-13 18:51:26 +02:00
net random32: use real rng for non-deterministic randomness 2023-09-13 18:39:29 +02:00
redhat [redhat] kernel-5.14.0-364.el9 2023-09-08 12:00:20 -04:00
samples
scripts Revert "arm64: unwind: add asynchronous unwind tables to kernel and modules" 2023-08-31 22:40:39 -04:00
security
sound
tools selftests/bpf: fix stacktrace_build_id with missing kprobe/urandom_read 2023-09-13 18:51:28 +02:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.conf
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml redhat: change default dist suffix for RHEL 9.3 2023-08-29 09:45:47 +02:00
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS
Makefile
Makefile.rhelver [redhat] kernel-5.14.0-364.el9 2023-09-08 12:00:20 -04:00
README
makefile

README

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.