On Wed, Jan 31, 2018 at 07:02:27PM -0800, Dan Williams wrote: > > Another question is how a user-space application (e.g., QEMU) knows > > whether it's safe to mmap a file on the DAX file system? > > I think we fix vaddr_get_pfn() to start failing for DAX mappings > unless/until we can add a "with lease" mechanism. Userspace will know > when it is safe again when vfio stops failing.
I read some of the discussion around that but could not figure out what exactly does happen if a file is truncated by a malicious userspace. Could you let me know pls? Thanks! -- MST