> Commit bb2e6f166547 ("vduse: fix VA/PA confusion in the coherent page fault
> path")
> set VM_IO on the domain file mapping so that
> vhost_vdpa_va_map() would skip it. Since 99fd6bf43d5d, mm refuses VM_IO
> on mm-managed mappings: mmap() of the domain file fails with a
> WARN_ON_ONCE() and -EINVAL, which breaks VDUSE userspace.
>
> VDUSE is currently broken in 7.4 because of this. Please treat this as
> a hotfix for 7.4.
>
> VM_IO is not needed. vduse_domain_set_map() already rejects vhost-vdpa
> entries backed by the domain file, and the file check in
> vduse_domain_get_coherent_page() keeps any other entry from being
> translated as a physical address. A self-referencing mapping now
> reaches vduse_domain_set_map() and is refused with -EINVAL.
>
> Fixes: bb2e6f166547 ("vduse: fix VA/PA confusion in the coherent page fault
> path")
> Reported-by: Lorenzo Stoakes (ARM) <[email protected]>
> Closes: https://lore.kernel.org/r/awWOpS3HR_2FTN3I@gremlin
> Suggested-by: Lorenzo Stoakes (ARM) <[email protected]>
> Signed-off-by: chenglong.ma <[email protected]>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review ยท
https://sashiko.dev/#/patchset/[email protected]?part=1