random: clamp credited irq bits to maximum mixed
Jason A. Donenfeld authored
commit e78a802a upstream.

Since the most that's mixed into the pool is sizeof(long)*2, don't
credit more than that many bytes of entropy.

Fixes: e3e33fc2

 ("random: do not use input pool from hard IRQs")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarJason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
b42a6442
Name Last commit Last update
Documentation ARM: dts: fix Moxa SDIO 'compatible', remove 'sdhci' misnomer
LICENSES LICENSES/LGPL-2.1: Add LGPL-2.1-or-later as valid identifiers
arch perf/x86/intel: Fix unchecked MSR access error for Alder Lake N
block Revert "block: freeze the queue earlier in del_gendisk"
certs certs: make system keyring depend on built-in x509 parser
crypto KEYS: asymmetric: enforce SM2 signature use pkey algo
drivers random: clamp credited irq bits to maximum mixed
fs ceph: don't truncate file in atomic_open
include net/ieee802154: fix uninit value bug in dgram_sendmsg
init arm64: fix rodata=full
io_uring io_uring: ensure that cached task references are always put on exit
ipc ipc: Free mq_sysctls if ipc namespace creation failed
kernel bpf: Fix resetting logic for unreferenced kptrs
lib Makefile.debug: re-enable debug info for .S files
mm damon/sysfs: fix possible memleak on damon_sysfs_add_target
net Bluetooth: use hdev->workqueue when queuing hdev->{cmd,ncmd}_timer works
samples sample: bpf: xdp_router_ipv4: Allow the kernel to send arp requests
scripts Makefile.extrawarn: Move -Wcast-function-type-strict to W=1
security hardening: Remove Clang's enable flag for -ftrivial-auto-var-init=zero
sound ALSA: hda/hdmi: Fix the converter reuse for the silent stream
tools perf tests record: Fail the test if the 'errs' counter is not zero
usr Merge tag 'mm-nonmm-stable-2022-05-26' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
virt KVM: Unconditionally get a ref to /dev/kvm module when creating a VM
.clang-format clang-format: Fix space after for_each macros
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
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.