Re: [PATCH] fix remaining descriptor races in sound/core/compress_offload.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Sun, 29 Dec 2024 19:52:32 +0100,
Al Viro wrote:
> 
> 3d3f43fab4cf "ALSA: compress_offload: improve file descriptors installation for dma-buf"
> fixed some of descriptor races in snd_compr_task_new(), but there's a couple more left.
> 
> We need to grab the references to dmabuf before moving them into descriptor table -
> trying to do that by descriptor afterwards might end up getting a different object,
> with a dangling reference left in task->{input,output}
> 
> Fixes: 3d3f43fab4cf "ALSA: compress_offload: improve file descriptors installation for dma-buf"
> Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>

Applied now.  Thanks!


Takashi




[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux