kernel_optimize_test/arch/s390
Harald Freudenberger a32a2d831d s390/archrandom: add parameter check for s390_arch_random_generate
[ Upstream commit 28096067686c5a5cbd4c35b079749bd805df5010 ]

A review of the code showed, that this function which is exposed
within the whole kernel should do a parameter check for the
amount of bytes requested. If this requested bytes is too high
an unsigned int overflow could happen causing this function to
try to memcpy a really big memory chunk.

This is not a security issue as there are only two invocations
of this function from arch/s390/include/asm/archrandom.h and both
are not exposed to userland.

Reported-by: Sven Schnelle <svens@linux.ibm.com>
Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-05-11 14:47:31 +02:00
..
appldata
boot s390: uv: Fix sysfs max number of VCPUs reporting 2021-02-03 23:28:39 +01:00
configs s390: update defconfigs 2020-11-12 12:10:36 +01:00
crypto s390/archrandom: add parameter check for s390_arch_random_generate 2021-05-11 14:47:31 +02:00
hypfs
include s390/vdso: fix tod_steering_delta type 2021-04-07 15:00:10 +02:00
kernel s390/disassembler: increase ebpf disasm buffer size 2021-05-11 14:47:11 +02:00
kvm KVM: s390: remove diag318 reset code 2020-11-11 09:31:52 +01:00
lib s390/test_unwind: fix CALL_ON_STACK tests 2020-12-30 11:53:56 +01:00
mm KVM: s390: pv: Mark mm as protected after the set secure parameters and improve cleanup 2020-11-11 09:31:48 +01:00
net
oprofile
pci s390/pci: fix leak of PCI device structure 2021-03-25 09:04:05 +01:00
purgatory s390/kexec_file: fix diag308 subcode when loading crash kernel 2020-12-30 11:54:08 +01:00
tools
Kbuild
Kconfig
Kconfig.debug
Makefile