]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
s390/pageattr: Implement missing kernel_page_present()
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 18 Oct 2024 12:26:23 +0000 (14:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 12:52:44 +0000 (13:52 +0100)
commit390931bd7c612fecb1b171799be8cd1e84284056
treefa6862dc0ce88fca2978baf38636d90921f66de8
parent6c268349724952b105a01245d0490bc02856b081
s390/pageattr: Implement missing kernel_page_present()

[ Upstream commit 2835f8bf5530750c3381166005934f996a83ad05 ]

kernel_page_present() was intentionally not implemented when adding
ARCH_HAS_SET_DIRECT_MAP support, since it was only used for suspend/resume
which is not supported anymore on s390.

A new bpf use case led to a compile error specific to s390. Even though
this specific use case went away implement kernel_page_present(), so that
the API is complete and potential future users won't run into this problem.

Reported-by: Daniel Borkmann <daniel@iogearbox.net>
Closes: https://lore.kernel.org/all/045de961-ac69-40cc-b141-ab70ec9377ec@iogearbox.net
Fixes: 0490d6d7ba0a ("s390/mm: enable ARCH_HAS_SET_DIRECT_MAP")
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/s390/include/asm/set_memory.h
arch/s390/mm/pageattr.c