1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-24 01:09:38 -05:00
No description
Find a file
Jason A. Donenfeld f743f16c54 treewide: use get_random_{u8,u16}() when possible, part 2
Rather than truncate a 32-bit value to a 16-bit value or an 8-bit value,
simply use the get_random_{u8,u16}() functions, which are faster than
wasting the additional bytes from a 32-bit value. This was done by hand,
identifying all of the places where one of the random integer functions
was used in a non-32-bit context.

Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Heiko Carstens <hca@linux.ibm.com> # for s390
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-10-11 17:42:58 -06:00
arch treewide: use get_random_{u8,u16}() when possible, part 2 2022-10-11 17:42:58 -06:00
block - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
certs
crypto treewide: use get_random_{u8,u16}() when possible, part 1 2022-10-11 17:42:58 -06:00
Documentation perf tools changes for v6.1: 1st batch 2022-10-11 15:02:25 -07:00
drivers treewide: use get_random_{u8,u16}() when possible, part 2 2022-10-11 17:42:58 -06:00
fs treewide: use prandom_u32_max() when possible, part 2 2022-10-11 17:42:58 -06:00
include treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
init - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
io_uring
ipc - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
kernel treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
lib treewide: use get_random_{u8,u16}() when possible, part 2 2022-10-11 17:42:58 -06:00
LICENSES
mm treewide: use prandom_u32_max() when possible, part 1 2022-10-11 17:42:55 -06:00
net treewide: use get_random_{u8,u16}() when possible, part 2 2022-10-11 17:42:58 -06:00
rust
samples Tracing updates for 6.1: 2022-10-10 12:20:55 -07:00
scripts - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
security - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
sound
tools perf tools changes for v6.1: 1st batch 2022-10-11 15:02:25 -07:00
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild Kbuild updates for v6.1 2022-10-10 12:00:45 -07:00
Kconfig
MAINTAINERS perf tools changes for v6.1: 1st batch 2022-10-11 15:02:25 -07:00
Makefile - Yu Zhao's Multi-Gen LRU patches are here. They've been under test in 2022-10-10 17:53:04 -07:00
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.