[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <194e4774-a931-4ce4-af63-4610da7c4350@redhat.com>
Date: Tue, 12 Aug 2025 14:54:21 +0200
From: Paolo Abeni <pabeni@...hat.com>
To: Sven Stegemann <sven@...gemann.de>, "David S. Miller"
<davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Simon Horman <horms@...nel.org>
Cc: netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
syzbot+e62c9db591c30e174662@...kaller.appspotmail.com,
syzbot+d199b52665b6c3069b94@...kaller.appspotmail.com
Subject: Re: [PATCH net-next] net: kcm: Fix race condition in kcm_unattach()
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);
Thanks,
Paolo
Powered by blists - more mailing lists