[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20260128230649.GA68719@workstation.local>
Date: Thu, 29 Jan 2026 08:06:49 +0900
From: Takashi Sakamoto <o-takashi@...amocchi.jp>
To: linux1394-devel@...ts.sourceforge.net
Cc: Andreas Persson <andreasp56@...look.com>, linux-kernel@...r.kernel.org,
stable@...r.kernel.org
Subject: Re: [PATCH] firewire: core: fix race condition against transaction
list
On Wed, Jan 28, 2026 at 07:34:13AM +0900, Takashi Sakamoto wrote:
> The list of transaction is enumerated without acquiring card lock when
> processing AR response event. This causes a race condition bug when
> processing AT request completion event concurrently.
>
> This commit fixes the bug by put timer start for split transaction
> expiration into the scope of lock. The value of jiffies in card structure
> is referred before acquiring the lock.
>
> Cc: stable@...r.kernel.org # v6.18
> Fixes: b5725cfa4120 ("firewire: core: use spin lock specific to timer for split transaction")
> Reported-by: Andreas Persson <andreasp56@...look.com>
> Closes: https://github.com/alsa-project/snd-firewire-ctl-services/issues/209
> Tested-by: Andreas Persson <andreasp56@...look.com>
> Signed-off-by: Takashi Sakamoto <o-takashi@...amocchi.jp>
> ---
> drivers/firewire/core-transaction.c | 19 ++++++++++---------
> 1 file changed, 10 insertions(+), 9 deletions(-)
Applied to for-linus branch. I'll send it to mainline in this weekend in
time for v6.19-rc8 release.
Regards
Takashi Sakamoto
Powered by blists - more mailing lists