Commit 49ccf2c3 authored by Yang Shi's avatar Yang Shi Committed by Catalin Marinas
Browse files

arm64: mte: set VM_MTE_ALLOWED for hugetlbfs at correct place



The commit 5de19506 ("mm: resolve faulty mmap_region() error path
behaviour") moved vm flags validation before fop->mmap for file
mappings.  But when commit 25c17c4b ("hugetlb: arm64: add mte support")
was rebased on top of it, the hugetlbfs part was missed.  Mmapping
hugetlbfs file may not have MAP_HUGETLB set.

Fixes: 25c17c4b ("hugetlb: arm64: add mte support")
Signed-off-by: default avatarYang Shi <yang@os.amperecomputing.com>
Reviewed-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20241119200914.1145249-1-yang@os.amperecomputing.com


Signed-off-by: default avatarCatalin Marinas <catalin.marinas@arm.com>
parent 40384c84
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment