On 11/10/2026 12:47 AM, Aveline Noir wrote:
Hi Ray,

On Wed, 21 Oct 2026 10:58:50 +0800 Huang Rui wrote:

+       ret = fault_check_allowed(svm, fault_addr, write_fault);
+       if (ret)
+               return ret;

This checks the VMA permissions but not attrs->access, so I think
INACCESSIBLE isn't really enforced. SET_ATTR invalidates the existing
GPU mapping, but the next retry fault just maps the range again.

IN_PLACE has a similar problem. With preferred_loc=LOCAL, the
migration added by 22/22 can still move migratable system-memory pages
into VRAM on a pagemap-capable GPU. Both seem to go against the access
definitions in 01/22, and the prefetch path doesn't check access
either.

Could the fault and prefetch paths check access before mapping or
migrating?

Will add access check in fault_check_allowed, IN_PLACE access, prefetch access path.

Really thanks for the review!

Regards,
Honglei


Thanks,
Aveline Noir

Reply via email to