Go to file
Chris von Recklinghausen 757e131007 highmem: fix kmap_to_page() for kmap_local_page() addresses
JIRA: https://issues.redhat.com/browse/RHEL-1848

commit ef6e06b2ef87077104d1145a0fd452ff8dbbc4b7
Author: Ira Weiny <ira.weiny@intel.com>
Date:   Wed Oct 5 21:05:55 2022 -0700

    highmem: fix kmap_to_page() for kmap_local_page() addresses

    kmap_to_page() is used to get the page for a virtual address which may
    be kmap'ed.  Unfortunately, kmap_local_page() stores mappings in a
    thread local array separate from kmap().  These mappings were not
    checked by the call.

    Check the kmap_local_page() mappings and return the page if found.

    Because it is intended to remove kmap_to_page() add a warn on once to
    the kmap checks to flag potential issues early.

    NOTE Due to 32bit x86 use of kmap local in iomap atmoic, KMAP_LOCAL does
    not require HIGHMEM to be set.  Therefore the support calls required a
    new KMAP_LOCAL section to fix 0day build errors.

    [akpm@linux-foundation.org: fix warning]
    Link: https://lkml.kernel.org/r/20221006040555.1502679-1-ira.weiny@intel.com
    Signed-off-by: Ira Weiny <ira.weiny@intel.com>
    Reported-by: Al Viro <viro@zeniv.linux.org.uk>
    Reported-by: kernel test robot <lkp@intel.com>
    Cc: "Fabio M. De Francesco" <fmdefrancesco@gmail.com>
    Cc: Thomas Gleixner <tglx@linutronix.de>
    Cc: Christoph Hellwig <hch@lst.de>
    Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

Signed-off-by: Chris von Recklinghausen <crecklin@redhat.com>
2023-10-20 06:15:02 -04:00
Documentation docs/zh_CN: Update the translation of page_owner to 6.0-rc7 2023-10-20 06:14:59 -04:00
LICENSES
arch x86: kmsan: handle CPU entry area 2023-10-20 06:14:43 -04:00
block kmsan: disable physical page merging in biovec 2023-10-20 06:14:39 -04:00
certs
crypto crypto: kmsan: disable accelerated configs under KMSAN 2023-10-20 06:14:39 -04:00
drivers zram: always expose rw_page 2023-10-20 06:15:02 -04:00
fs xfs: port to vfs{g,u}id_t and associated helpers 2023-10-20 06:14:58 -04:00
include mm/damon: move sz_damon_region to damon_sz_region 2023-10-20 06:15:01 -04:00
init init: kmsan: call KMSAN initialization routines 2023-10-20 06:14:36 -04:00
io_uring blk-mq: remove hybrid polling 2023-09-18 15:56:06 +08:00
ipc
kernel mm/madvise: add file and shmem support to MADV_COLLAPSE 2023-10-20 06:14:51 -04:00
lib kmsan: disable strscpy() optimization under KMSAN 2023-10-20 06:14:39 -04:00
mm highmem: fix kmap_to_page() for kmap_local_page() addresses 2023-10-20 06:15:02 -04:00
net iov_iter: advancing variants of iov_iter_get_pages{,_alloc}() 2023-10-20 06:13:04 -04:00
redhat ubject: kasan: move tests to mm/kasan/ 2023-10-20 06:14:17 -04:00
samples samples/bpf: Fix fout leak in hbm's run_bpf_prog 2023-09-22 09:12:37 +02:00
scripts kmsan: add KMSAN runtime core 2023-10-20 06:14:34 -04:00
security security: kmsan: fix interoperability with auto-initialization 2023-10-20 06:14:40 -04:00
sound Merge: ALSA: Add audio support for Dell SKU 0BDA and 0B34 2023-07-21 17:32:17 +02:00
tools selftests/vm: add selftest for MADV_COLLAPSE of uffd-minor memory 2023-10-20 06:14:53 -04:00
usr
virt Merge: KVM: aarch64: Rebase up to v6.5 (first round) 2023-10-11 13:28:06 -04:00
.clang-format PCI: Introduce pci_dev_for_each_resource() 2023-09-05 09:16:40 -06:00
.cocciconfig
.get_maintainer.conf
.get_maintainer.ignore
.gitattributes
.gitignore
.gitlab-ci.yml CI: Remove unused kpet_tree_family 2023-10-06 13:50:15 +03:00
.mailmap
COPYING
CREDITS
Kbuild
Kconfig
Kconfig.redhat
MAINTAINERS x86: kmsan: handle CPU entry area 2023-10-20 06:14:43 -04:00
Makefile kmsan: add KMSAN runtime core 2023-10-20 06:14:34 -04:00
Makefile.rhelver [redhat] kernel-5.14.0-378.el9 2023-10-19 10:42:30 -04:00
README
makefile

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.