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? Thanks, Aveline Noir
