summaryrefslogtreecommitdiff
path: root/include/linux/stackprotector.h
diff options
context:
space:
mode:
authorQiang Liu <liuqiang@kylinos.cn>2026-05-21 05:18:58 +0300
committerAndrew Morton <akpm@linux-foundation.org>2026-06-09 04:21:32 +0300
commit8198657c74170ea78808d1f1d886c7d35fd3694e (patch)
tree4e2749dfe3a378ef6cd2a3de64e1c49c7a2430ed /include/linux/stackprotector.h
parent32a2b73ec232b284b029d34bcfaa9a7f424151d2 (diff)
downloadlinux-8198657c74170ea78808d1f1d886c7d35fd3694e.tar.xz
lib/test_hmm: check alloc_page_vma() return value and handle OOM
Check alloc_page_vma() return status for page allocation failures, free allocated pages and return VM_FAULT_OOM on error. Handle return codes of dmirror_devmem_fault_alloc_and_copy(), call migrate_vma_finalize() to remove migration entries from migrate_vma_setup(). Link: https://lore.kernel.org/20260521021858.21511-1-liuqiangneo@163.com Signed-off-by: Qiang Liu <liuqiang@kylinos.cn> Cc: Alistair Popple <apopple@nvidia.com> Cc: Jason Gunthorpe <jgg@ziepe.ca> Cc: Leon Romanovsky <leon@kernel.org> [akpm@linux-foundation.org: fix dmirror_devmem_fault_alloc_and_copy() retval handling] Link: https://lore.kernel.org/oe-kbuild-all/202606011329.zWs2BKy4-lkp@intel.com/ Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/stackprotector.h')
0 files changed, 0 insertions, 0 deletions