Re: [Linaro-mm-sig] Re: [PATCH] dma-buf: Fix possible UAF in dma_buf_export

2022-12-06 Thread Christian König
Am 06.12.22 um 13:55 schrieb Charan Teja Kalla: Thanks Christian/TJ for all your inputs!! On 11/24/2022 6:25 PM, Christian König wrote: I was already wondering why the order is this way. Why is dma_buf_stats_setup() needing the file in the first place? dmabuf->file will be used in

Re: [Linaro-mm-sig] Re: [PATCH] dma-buf: Fix possible UAF in dma_buf_export

2022-12-06 Thread Charan Teja Kalla
Thanks Christian/TJ for all your inputs!! On 11/24/2022 6:25 PM, Christian König wrote: >>> I was already wondering why the order is this way. >>> >>> Why is dma_buf_stats_setup() needing the file in the first place? >> >> dmabuf->file will be used in dma_buf_stats_setup(), the >>

Re: [Linaro-mm-sig] Re: [PATCH] dma-buf: Fix possible UAF in dma_buf_export

2022-11-24 Thread Christian König
Am 24.11.22 um 13:49 schrieb cuigaosheng: I was already wondering why the order is this way. Why is dma_buf_stats_setup() needing the file in the first place? dmabuf->file will be used in dma_buf_stats_setup(), the dma_buf_stats_setup() as follows: 171 int dma_buf_stats_setup(struct