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
- References:
- [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c
- From: Al Viro
- Re: [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c
- From: Jaroslav Kysela
- Re: [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c
- From: Al Viro
- Re: [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c
- From: Al Viro
- Re: [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c
- From: Takashi Iwai
- [PATCH] fix remaining descriptor races in sound/core/compress_offload.c
- From: Al Viro
- [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c
- Prev by Date: Re: [PATCH v1] ALSA: hda/tas2781: Ignore SUBSYS_ID not found for tas2563 projects
- Next by Date: Re: [PATCH] ALSA: ctxfi: Simplify dao_clear_{left,right}_input() functions
- Previous by thread: [PATCH] fix remaining descriptor races in sound/core/compress_offload.c
- Next by thread: Re: [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c
- Index(es):