Re: [PATCH v2] dma-buf: remove restriction of IOCTL:DMA_BUF_SET_NAME

2021-10-13 Thread Christian König
Am 13.10.21 um 01:56 schrieb Sumit Semwal: Hello Guangming, Christian, On Tue, 12 Oct 2021, 14:09 , > wrote: From: Guangming Cao mailto:guangming@mediatek.com>> > Am 09.10.21 um 07:55 schrieb guangming@mediatek.com

Re: [PATCH v2] dma-buf: remove restriction of IOCTL:DMA_BUF_SET_NAME

2021-10-12 Thread Sumit Semwal
Hello Guangming, Christian, On Tue, 12 Oct 2021, 14:09 , wrote: > From: Guangming Cao > > > Am 09.10.21 um 07:55 schrieb guangming@mediatek.com: > > From: Guangming Cao > > > > > > If dma-buf don't want userspace users to touch the dmabuf buffer, > > > it seems we should add this

Re: [PATCH v2] dma-buf: remove restriction of IOCTL:DMA_BUF_SET_NAME

2021-10-12 Thread guangming.cao
From: Guangming Cao > Am 09.10.21 um 07:55 schrieb guangming@mediatek.com: > From: Guangming Cao > > > > If dma-buf don't want userspace users to touch the dmabuf buffer, > > it seems we should add this restriction into dma_buf_ops.mmap, > > not in this IOCTL:DMA_BUF_SET_NAME. > > > > With

Re: [PATCH v2] dma-buf: remove restriction of IOCTL:DMA_BUF_SET_NAME

2021-10-11 Thread Christian König
Am 09.10.21 um 07:55 schrieb guangming@mediatek.com: From: Guangming Cao If dma-buf don't want userspace users to touch the dmabuf buffer, it seems we should add this restriction into dma_buf_ops.mmap, not in this IOCTL:DMA_BUF_SET_NAME. With this restriction, we can only know the kernel

[PATCH v2] dma-buf: remove restriction of IOCTL:DMA_BUF_SET_NAME

2021-10-08 Thread guangming.cao
From: Guangming Cao If dma-buf don't want userspace users to touch the dmabuf buffer, it seems we should add this restriction into dma_buf_ops.mmap, not in this IOCTL:DMA_BUF_SET_NAME. With this restriction, we can only know the kernel users of the dmabuf by attachments. However, for many