[PATCH v4 1/5] KVM: arm64: Block cacheable PFNMAP mapping
Ankit Agrawal
ankita at nvidia.com
Tue May 20 19:06:50 PDT 2025
Thanks Catalin for the comment.
>> + /* Cacheable PFNMAP is not allowed */
>> + if (mapping_type(vma->vm_page_prot) == MT_NORMAL) {
>> + ret = -EINVAL;
>> + break;
>> + }
>
> Should we capture MT_NORMAL_TAGGED as well? Presumably no driver sets
> VM_MTE_ALLOWED but the same could be set about MT_NORMAL in the
> vm_page_prot.
>
> That said, we might as well invert the check, allow if MT_DEVICE_* or
> MT_NORMAL_NC (the latter based on VM_ALLOW_ANY_UNCACHED).
Ack I can make the change to invert the check here in this patch and similarly
in 4/5.
> --
> Catalin
More information about the linux-arm-kernel
mailing list