[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <71c79b47-d44f-45da-9558-770690addb79@stegemann.de>
Date: Tue, 12 Aug 2025 21:27:00 +0200
From: Sven Stegemann <sven@...gemann.de>
To: Paolo Abeni <pabeni@...hat.com>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
syzbot+e62c9db591c30e174662@...kaller.appspotmail.com,
syzbot+d199b52665b6c3069b94@...kaller.appspotmail.com,
"David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Simon Horman <horms@...nel.org>
Subject: Re: [PATCH net-next] net: kcm: Fix race condition in kcm_unattach()
On 8/12/2025 2:54 PM, Paolo Abeni wrote:
> On 8/9/25 8:36 AM, Sven Stegemann wrote:
>> @@ -1714,6 +1708,7 @@ static int kcm_release(struct socket *sock)
>> /* Cancel work. After this point there should be no outside references
>> * to the kcm socket.
>> */
>> + disable_work(&kcm->tx_work);
>> cancel_work_sync(&kcm->tx_work);
>
> The patch looks functionally correct, but I guess it would be cleaner
> simply replacing:
>
> cancel_work_sync(&kcm->tx_work);
>
> with:
>
> disable_work_sync(&kcm->tx_work);
Thank you, that's a good point.
I just submitted a cleaned up version of the patch.
Powered by blists - more mailing lists