On Fri, 2017-03-10 at 11:34 -0700, Jason Gunthorpe wrote: > When vmalloc_user is used to create memory that is supposed to be > mmap'd > to user space, it is necessary for the mmap cookie (eg the offset) to > be > aligned to SHMLBA. > > This creates a situation where all virtual mappings of the same > physical > page share the same virtual cache index and guarantees VIPT > coherence. > Otherwise the cache is non-coherent and the kernel will not see > writes > by userspace when reading the shared page (or vice-versa). > > Reported-by: Josh Beavers <josh.beavers@xxxxxxxxx> > Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx> > Thanks, applied for -rc. -- Doug Ledford <dledford@xxxxxxxxxx> GPG KeyID: B826A3330E572FDD Key fingerprint = AE6B 1BDA 122B 23B4 265B 1274 B826 A333 0E57 2FDD -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html