Re: [PATCH] dma-buf: Deny copy-on-writes mmaps

2023-10-04 Thread Christian König
Am 04.10.23 um 01:03 schrieb Andi Shyti: From: Chris Wilson Enforce that an mmap of a dmabuf is always using MAP_SHARED so that all access (both read and writes) using the device memory and not a local copy-on-write page in system memory. As much as I would like to do this I fear that this wo

Re: [PATCH] dma-buf: Deny copy-on-writes mmaps

2023-10-03 Thread kernel test robot
https://lore.kernel.org/r/20231003230332.513051-1-andi.shyti%40linux.intel.com patch subject: [PATCH] dma-buf: Deny copy-on-writes mmaps config: sh-allyesconfig (https://download.01.org/0day-ci/archive/20231004/202310041156.bi2vshvb-...@intel.com/config) compiler: sh4-linux-gcc (GCC) 13.2.0 reproduc

[PATCH] dma-buf: Deny copy-on-writes mmaps

2023-10-03 Thread Andi Shyti
From: Chris Wilson Enforce that an mmap of a dmabuf is always using MAP_SHARED so that all access (both read and writes) using the device memory and not a local copy-on-write page in system memory. Signed-off-by: Chris Wilson Signed-off-by: Andi Shyti --- drivers/dma-buf/dma-buf.c | 15 ++