Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Al Viro <viro@zeniv.linux.org.uk>
Cc: Takashi Iwai <tiwai@suse.de>, Jaroslav Kysela <perex@perex.cz>,
	linux-sound@vger.kernel.org
Subject: Re: [PATCH] fix remaining descriptor races in sound/core/compress_offload.c
Date: Mon, 30 Dec 2024 11:50:40 +0100	[thread overview]
Message-ID: <87seq5wikf.wl-tiwai@suse.de> (raw)
In-Reply-To: <20241229185232.GA1977892@ZenIV>

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@zeniv.linux.org.uk>

Applied now.  Thanks!


Takashi

  reply	other threads:[~2024-12-30 10:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-26 18:29 [CFT][PATCH] fix descriptor uses in sound/core/compress_offload.c Al Viro
2024-12-26 19:00 ` Jaroslav Kysela
2024-12-26 21:31   ` Al Viro
2024-12-26 22:17     ` Al Viro
2024-12-29  8:35       ` Takashi Iwai
2024-12-29 18:52         ` [PATCH] fix remaining descriptor races " Al Viro
2024-12-30 10:50           ` Takashi Iwai [this message]
2024-12-29 18:53         ` [CFT][PATCH] fix descriptor uses " Al Viro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87seq5wikf.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=viro@zeniv.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox