Commit 9972a4f7 authored by Chris Goldsworthy's avatar Chris Goldsworthy Committed by Sukadev Bhattiprolu
Browse files

ANDROID: dma-buf: Add vendorhook to allow mmaping more memory than a DMA-BUF holds



Add vendorhook to allow mmaping more memory than a DMA-BUF holds. The
implementor of the vmap callback for the DMA-BUF is responsible for
ensuring that all pages are backed by memory. The hook takes as input
a DMA-BUF to allow the VMA bounds check to be done on a case-by-case
basis for DMA-BUFs.

Note that if the override is allowed to go through for a given
DMA-BUF, then it can be the case that the size of this mmaped DMA-BUF
is reported incorrectly when looking at /proc/pid/maps for the owning
process.

Bug: 234753494
Change-Id: Iba8cc8adfd2290e4dc7ef04fce5d6a80ac92e0b3
Signed-off-by: default avatarChris Goldsworthy <quic_cgoldswo@quicinc.com>
Signed-off-by: default avatarSukadev Bhattiprolu <quic_sukadev@quicinc.com>
parent 41d708af
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment