summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-10-23 07:36:37 +0200
committerArnd Bergmann <arnd@arndb.de>2024-10-28 22:44:28 +0100
commit3e25d5a49f99b75be2c6cfb165e4f77dc6d739a2 (patch)
tree37b3f986f6be011bcc7d5ec4442e593a331cac74 /lib
parentasm-generic: provide generic page_to_phys and phys_to_page implementations (diff)
downloadlinux-3e25d5a49f99b75be2c6cfb165e4f77dc6d739a2.tar.xz
linux-3e25d5a49f99b75be2c6cfb165e4f77dc6d739a2.zip
asm-generic: add an optional pfn_valid check to page_to_phys
page_to_pfn is usually implemented by pointer arithmetics on the memory map, which means that bogus input can lead to even more bogus output. Powerpc had a pfn_valid check on the intermediate pfn in the page_to_phys implementation when CONFIG_DEBUG_VIRTUAL is defined, which seems generally useful, so add that to the generic version. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions