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

2021-10-08 Thread Randy Dunlap
On 10/8/21 7:47 PM, guangming@mediatek.com wrote: 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 user

[PATCH] 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 usersp