Go to file
David Hildenbrand 56531761d4 kfence: drop nth_page() usage
We want to get rid of nth_page(), and kfence init code is the last user.

Unfortunately, we might actually walk a PFN range where the pages are not
contiguous, because we might be allocating an area from memblock that
could span memory sections in problematic kernel configs (SPARSEMEM
without SPARSEMEM_VMEMMAP).

We could check whether the page range is contiguous using
page_range_contiguous() and failing kfence init, or making kfence
incompatible these problemtic kernel configs.

Let's keep it simple and simply use pfn_to_page() by iterating PFNs.

Link: https://lkml.kernel.org/r/20250901150359.867252-36-david@redhat.com
Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Marco Elver <elver@google.com>
Reviewed-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Cc: Alexander Potapenko <glider@google.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2025-09-21 14:22:09 -07:00
Documentation mm: remove unused zpool layer 2025-09-21 14:21:59 -07:00
LICENSES
arch mips: mm: convert __flush_dcache_pages() to __flush_dcache_folio_pages() 2025-09-21 14:22:06 -07:00
block
certs
crypto crypto: remove nth_page() usage within SG entry 2025-09-21 14:22:09 -07:00
drivers vfio/pci: drop nth_page() usage within SG entry 2025-09-21 14:22:08 -07:00
fs fs: hugetlbfs: cleanup folio in adjust_range_hwpoison() 2025-09-21 14:22:04 -07:00
include crypto: remove nth_page() usage within SG entry 2025-09-21 14:22:09 -07:00
init
io_uring io_uring/zcrx: remove nth_page() usage within folio 2025-09-21 14:22:05 -07:00
ipc
kernel dma-remap: drop nth_page() in dma_common_contiguous_remap() 2025-09-21 14:22:06 -07:00
lib kasan: introduce ARCH_DEFER_KASAN and unify static key across modes 2025-09-21 14:21:58 -07:00
mm kfence: drop nth_page() usage 2025-09-21 14:22:09 -07:00
net
rust
samples
scripts
security
sound
tools wireguard: selftests: remove CONFIG_SPARSEMEM_VMEMMAP=y from qemu kernel config 2025-09-21 14:22:01 -07:00
usr
virt
.clang-format
.clippy.toml
.cocciconfig
.editorconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.pylintrc
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS mm: remove unused zpool layer 2025-09-21 14:21:59 -07:00
Makefile
README

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 reStructuredText 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.