Go to file
Greg Kroah-Hartman 96c8cb4b2e lib/test_meminit: fix off-by-one error in test_pages()
BugLink: https://bugs.launchpad.net/bugs/2043724

commit efb78fa86e95 ("lib/test_meminit: allocate pages up to order
MAX_ORDER") works great in kernels 6.4 and newer thanks to commit
23baf831a32c ("mm, treewide: redefine MAX_ORDER sanely"), but for older
kernels, the loop is off by one, which causes crashes when the test
runs.

Fix this up by changing "<= MAX_ORDER" "< MAX_ORDER" to allow the test
to work properly for older kernel branches.

Fixes: cbfffe51221b ("lib/test_meminit: allocate pages up to order MAX_ORDER")
Cc: Andrew Donnellan <ajd@linux.ibm.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Xiaoke Wang <xkernel.wang@foxmail.com>
Cc: <stable@vger.kernel.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
2024-01-05 14:29:53 +01:00
Documentation perf/smmuv3: Enable HiSilicon Erratum 162001900 quirk for HIP08/09 2023-10-30 11:42:22 +01:00
LICENSES
arch parisc: Restore __ldcw_align for PA-RISC 2.0 processors 2024-01-05 14:29:52 +01:00
block block/partition: fix signedness issue for Amiga partitions 2023-10-02 12:12:10 +02:00
certs
crypto X.509: if signature is unsupported skip validation 2023-10-30 11:42:17 +01:00
debian UBUNTU: [Packaging] update annotations scripts 2024-01-05 14:27:49 +01:00
debian.master UBUNTU: Upstream stable to v5.4.258 2024-01-05 14:29:53 +01:00
drivers RDMA/cxgb4: Check skb value for failure to allocate 2024-01-05 14:29:53 +01:00
fs NFS: Fix a race in __nfs_list_for_each_server() 2024-01-05 14:29:52 +01:00
include tcp: fix quick-ack counting to count actual ACKs of new data 2024-01-05 14:29:52 +01:00
init init, x86: Move mem_encrypt_init() into arch_cpu_finalize_init() 2023-08-09 12:25:43 +02:00
ipc
kernel ring-buffer: Update "shortest_full" in polling 2024-01-05 14:29:50 +01:00
lib lib/test_meminit: fix off-by-one error in test_pages() 2024-01-05 14:29:53 +01:00
mm tmpfs: verify {g,u}id mount options correctly 2023-10-30 11:42:07 +01:00
net sctp: update hb timer immediately after users change hb_interval 2024-01-05 14:29:52 +01:00
samples samples/bpf: Fix buffer overflow in tcp_basertt 2023-10-02 12:12:01 +02:00
scripts modpost: add missing else to the "of" check 2024-01-05 14:29:51 +01:00
security ima: rework CONFIG_IMA dependency block 2024-01-05 14:29:53 +01:00
sound ALSA: hda: Disable power save for solving pop issue on Lenovo ThinkCentre M70q 2024-01-05 14:29:50 +01:00
tools cpupower: add Makefile dependencies for install targets 2024-01-05 14:29:52 +01:00
ubuntu
usr
virt
.clang-format
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS iio: stx104: Move to addac subdirectory 2023-10-30 11:41:56 +01:00
Makefile Linux 5.4.258 2024-01-05 14:29:53 +01:00
README
Ubuntu.md
dropped.txt
snapcraft.yaml
update-dkms-versions UBUNTU: [Packaging] resync update-dkms-versions helper 2023-11-23 13:49:20 +01:00
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.