Go to file
Dan Carpenter b9968ce35c crypto: cavium - prevent integer overflow loading firmware
BugLink: https://bugs.launchpad.net/bugs/1996812

[ Upstream commit 2526d6bf27d15054bb0778b2f7bc6625fd934905 ]

The "code_length" value comes from the firmware file.  If your firmware
is untrusted realistically there is probably very little you can do to
protect yourself.  Still we try to limit the damage as much as possible.
Also Smatch marks any data read from the filesystem as untrusted and
prints warnings if it not capped correctly.

The "ntohl(ucode->code_length) * 2" multiplication can have an
integer overflow.

Fixes: 9e2c7d9994 ("crypto: cavium - Add Support for Octeon-tx CPT Engine")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2023-01-06 08:44:02 -08:00
Documentation iio: ABI: Fix wrong format of differential capacitance channel ABI. 2023-01-06 08:43:58 -08:00
LICENSES
arch powerpc: Fix SPE Power ISA properties for e500v1 platforms 2023-01-06 08:44:02 -08:00
block blk-mq: don't create hctx debugfs dir until q->debugfs_dir is created 2022-10-17 15:00:32 +02:00
certs certs/blacklist_hashes.c: fix const confusion in certs blacklist 2022-08-26 11:10:49 +02:00
crypto crypto: akcipher - default implementation for setting a private key 2023-01-06 08:44:02 -08:00
debian UBUNTU: [Packaging] Expose built-in trusted and revoked certificates 2022-11-24 15:46:15 +01:00
debian.master UBUNTU: Upstream stable to v5.4.219 2023-01-06 08:43:51 -08:00
drivers crypto: cavium - prevent integer overflow loading firmware 2023-01-06 08:44:02 -08:00
fs nfsd: Fix a memory leak in an error handling path 2023-01-06 08:43:55 -08:00
include iommu/iova: Fix module config properly 2023-01-06 08:44:02 -08:00
init random: handle latent entropy and command line from random_init() 2022-08-26 11:10:31 +02:00
ipc ipc/mqueue: use get_tree_nodev() in mqueue_get_tree() 2022-08-26 11:08:10 +02:00
kernel cgroup/cpuset: Enable update_tasks_cpumask() on top_cpuset 2023-01-06 08:44:02 -08:00
lib dyndbg: let query-modname override actual module name 2023-01-06 08:43:59 -08:00
mm mm: pagewalk: Fix race between unmap and page walker 2022-11-24 10:29:15 +01:00
net once: add DO_ONCE_SLOW() for sleepable contexts 2023-01-06 08:43:56 -08:00
samples samples/kretprobes: Fix return value if register_kretprobe() failed 2022-01-13 18:42:26 +01:00
scripts kbuild: remove the target in signal traps when interrupted 2023-01-06 08:44:02 -08:00
security efi: Correct Macmini DMI match in uefi cert quirk 2022-11-24 10:29:22 +01:00
sound ALSA: hda/hdmi: Don't skip notification handling during PM operation 2023-01-06 08:43:57 -08:00
tools bpftool: Fix a wrong type cast in btf_dumper_int 2023-01-06 08:43:55 -08:00
ubuntu
usr
virt KVM: Add infrastructure and macro to mark VM as bugged 2022-10-17 15:01:31 +02:00
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS MAINTAINERS: add Chandan as xfs maintainer for 5.4.y 2022-11-24 10:28:26 +01:00
Makefile Linux 5.4.219 2023-01-06 08:43:51 -08:00
README
Ubuntu.md UBUNTU: [Packaging] update Ubuntu.md 2021-11-05 16:43:42 +01:00
dropped.txt
snapcraft.yaml
update-dkms-versions UBUNTU: [Packaging] resync update-dkms-versions helper 2021-11-26 15:10:03 +01:00
update-version-dkms UBUNTU: [Packaging] switch to kernel-versions 2021-09-20 18:50:21 +02: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.