Go to file
Herbert Xu 122cedfa33 lib/mpi: Fix buffer overrun when SG is too long
BugLink: https://bugs.launchpad.net/bugs/2017706

[ Upstream commit 7361d1bc307b926cbca214ab67b641123c2d6357 ]

The helper mpi_read_raw_from_sgl sets the number of entries in
the SG list according to nbytes.  However, if the last entry
in the SG list contains more data than nbytes, then it may overrun
the buffer because it only allocates enough memory for nbytes.

Fixes: 2d4d1eea54 ("lib/mpi: Add mpi sgl helpers")
Reported-by: Roberto Sassu <roberto.sassu@huaweicloud.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Reviewed-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Luke Nowakowski-Krijger <luke.nowakowskikrijger@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-05-12 17:15:00 +02:00
Documentation docs: Fix path paste-o for /sys/kernel/warn_count 2023-03-21 10:09:02 +01:00
LICENSES
arch crypto: x86/ghash - fix unaligned access in ghash_setkey() 2023-05-12 17:15:00 +02:00
block block: bio-integrity: Copy flags when bio_integrity_payload is cloned 2023-05-12 17:14:59 +02:00
certs
crypto crypto: tcrypt - Fix multibuffer skcipher speed test mem leak 2023-02-01 15:22:45 +01:00
debian UBUNTU: [Packaging] update helper scripts 2023-05-12 17:13:10 +02:00
debian.master UBUNTU: Upstream stable to v5.4.234 2023-05-12 17:14:57 +02:00
drivers ACPICA: Drop port I/O validation for some regions 2023-05-12 17:15:00 +02:00
fs btrfs: send: limit number of clones and allocated memory size 2023-05-12 17:14:57 +02:00
include genirq: Fix the return type of kstat_cpu_irqs_sum() 2023-05-12 17:15:00 +02:00
init init/Kconfig: fix CC_HAS_ASM_GOTO_TIED_OUTPUT test with dash 2023-02-01 15:21:26 +01:00
ipc ipc: replace costly bailout check in sysvipc_find_ipc() 2023-02-24 14:01:18 +01:00
kernel sched/rt: pick_next_rt_entity(): check list_entry 2023-05-12 17:14:59 +02:00
lib lib/mpi: Fix buffer overrun when SG is too long 2023-05-12 17:15:00 +02:00
mm Revert "mm: Always release pages to the buddy allocator in memblock_free_late()." 2023-04-18 17:21:04 +02:00
net net: Remove WARN_ON_ONCE(sk->sk_forward_alloc) from sk_stream_kill_queues(). 2023-05-12 17:14:57 +02:00
samples samples: vfio-mdev: Fix missing pci_disable_device() in mdpy_fb_probe() 2023-02-01 15:22:56 +01:00
scripts ftrace/scripts: Update the instructions for ftrace-bisect.sh 2023-03-21 10:08:59 +01:00
security tomoyo: fix broken dependency on *.conf.default 2023-03-21 10:08:57 +01:00
sound ASoC: SOF: Intel: hda-dai: fix possible stream_tag leak 2023-04-18 17:21:04 +02:00
tools selftest: fib_tests: Always cleanup before exit 2023-04-18 17:21:05 +02:00
ubuntu
usr
virt KVM: arm64: vgic: Fix exit condition in scan_its_table() 2023-01-06 08:44:09 -08:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS net/phy/mdio-i2c: Move header file to include/linux/mdio 2023-03-21 10:09:00 +01:00
Makefile Linux 5.4.234 2023-05-12 17:14:57 +02:00
README
Ubuntu.md
dropped.txt
snapcraft.yaml
update-dkms-versions
update-version-dkms

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.