summaryrefslogtreecommitdiff
path: root/include/linux/hypervisor.h
diff options
context:
space:
mode:
authorHui Zhu <zhuhui@kylinos.cn>2026-05-29 09:41:30 +0800
committerAndrew Morton <akpm@linux-foundation.org>2026-06-08 18:21:31 -0700
commitc55dd3b46c1208d6d2ea737a8aefef4aa4c70cb8 (patch)
treedf7a449a31396d8fdef5084326f1ed76036323ef /include/linux/hypervisor.h
parentd3d58e9469008dc706863a7681fb9ae1856c8a4b (diff)
downloadlwn-c55dd3b46c1208d6d2ea737a8aefef4aa4c70cb8.tar.gz
lwn-c55dd3b46c1208d6d2ea737a8aefef4aa4c70cb8.zip
vmalloc: fix NULL pointer dereference in is_vm_area_hugepages()
find_vm_area() can return NULL if the given address is not a valid vmalloc area. Check the return value before dereferencing it to avoid a kernel crash. Link: https://lore.kernel.org/20260529014130.671291-1-hui.zhu@linux.dev Fixes: 121e6f3258fe ("mm/vmalloc: hugepage vmalloc mappings") Signed-off-by: Hui Zhu <zhuhui@kylinos.cn> Reviewed-by: Dev Jain <dev.jain@arm.com> Reviewed-by: Uladzislau Rezki (Sony) <urezki@gmail.com> Cc: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/hypervisor.h')
0 files changed, 0 insertions, 0 deletions