Skip to content
Commit 8c0fd126 authored by Guangming Cao's avatar Guangming Cao Committed by Christian König
Browse files

dma-buf: acquire name lock before read/write dma_buf.name



Because dma-buf.name can be freed in func: "dma_buf_set_name",
so, we need to acquire lock first before we read/write dma_buf.name
to prevent Use After Free(UAF) issue.

Signed-off-by: default avatarGuangming Cao <Guangming.Cao@mediatek.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211008075420.42874-1-guangming.cao@mediatek.com
parent 61b1d445
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment