Quoting Daniel Vetter (2021-01-13 14:06:04)
We have too many people abusing the struct page they can get at but really shouldn't in importers. Aside from that the backing page might simply not exist (for dynamic p2p mappings) looking at it and using it e.g. for mmap can also wreak the page handling of the exporter completely. Importers really must go through the proper interface like dma_buf_mmap for everything.
If the exporter doesn't want to expose the struct page, why are they setting it in the exported sg_table? -Chris