Go to file
Oreoluwa Babatunde 420fa7d6f0 openrisc: Call setup_memory() earlier in the init sequence
BugLink: https://bugs.launchpad.net/bugs/2080595

[ Upstream commit 7b432bf376c9c198a7ff48f1ed14a14c0ffbe1fe ]

The unflatten_and_copy_device_tree() function contains a call to
memblock_alloc(). This means that memblock is allocating memory before
any of the reserved memory regions are set aside in the setup_memory()
function which calls early_init_fdt_scan_reserved_mem(). Therefore,
there is a possibility for memblock to allocate from any of the
reserved memory regions.

Hence, move the call to setup_memory() to be earlier in the init
sequence so that the reserved memory regions are set aside before any
allocations are done using memblock.

Signed-off-by: Oreoluwa Babatunde <quic_obabatun@quicinc.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-09-27 10:50:25 +02:00
Documentation overflow: Implement size_t saturating arithmetic helpers 2024-09-27 10:50:22 +02:00
LICENSES
arch openrisc: Call setup_memory() earlier in the init sequence 2024-09-27 10:50:25 +02:00
block
certs
crypto
debian
debian.master UBUNTU: Upstream stable to v5.4.282 2024-09-27 10:50:21 +02:00
drivers nvmet-tcp: do not continue for invalid icreq 2024-09-27 10:50:25 +02:00
fs NFS: avoid infinite loop in pnfs_update_layout. 2024-09-27 10:50:25 +02:00
include overflow: Implement size_t saturating arithmetic helpers 2024-09-27 10:50:22 +02:00
init
ipc
kernel tracing: Fix overflow in get_free_elt() 2024-09-27 10:50:21 +02:00
lib overflow: Implement size_t saturating arithmetic helpers 2024-09-27 10:50:22 +02:00
mm memcg_write_event_control(): fix a user-triggerable oops 2024-09-27 10:50:22 +02:00
net Bluetooth: bnep: Fix out-of-bound access 2024-09-27 10:50:25 +02:00
samples
scripts kbuild: Fix '-S -c' in x86 stack protector scripts 2024-09-27 10:50:21 +02:00
security selinux: fix potential counting error in avc_add_xperms_decision() 2024-09-27 10:50:22 +02:00
sound ALSA: hda/realtek: Fix noise from speakers on Lenovo IdeaPad 3 15IAU7 2024-09-27 10:50:23 +02:00
tools bitmap: introduce generic optimized bitmap_size() 2024-09-27 10:50:22 +02:00
ubuntu
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile Linux 5.4.282 2024-09-27 10:50:21 +02:00
README
Ubuntu.md
dropped.txt
snapcraft.yaml

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.