From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2608413EFE3; Thu, 14 Aug 2025 01:29:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755135000; cv=none; b=S2zPcjeFWtPCUwkKpF79h9pRHPdIbKce9KiHX3h+HmBHZN3cUzdw6V+FScZk82T1fd2EE8/mXUpU2sjatTlzmPxUiuQvlsv+lRu6sILDNSZxHfNr4sPOGuAHo952fc3DeaZ/2pIKpY/t6AFWaxOLS16tQBdxrMXSqTcj9QVTaLo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755135000; c=relaxed/simple; bh=/lNNI6dV6jBIz3njLt7onXJXt/W2po1EbFHESeeLYYM=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=WijVdasj8DIaM+bUFXhm1qZbEiAl7AG6ef8nFbP2rmUQkOqQsINPgcssPULZTR9b+kph8LE4in/4QUeuZZ0UErM64QjS/q8sfKRLgKV2iTEpBPEvkOJlpcjSitjD0TBuQbHl+AzYXchMtzvjxi/ah4jClmXw3uWL9DykeqFKM7s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=T3kzgqw4; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="T3kzgqw4" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A76CFC4CEF7; Thu, 14 Aug 2025 01:29:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1755134999; bh=/lNNI6dV6jBIz3njLt7onXJXt/W2po1EbFHESeeLYYM=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=T3kzgqw4XJyD/ga89g3u77FtDe7VhnBb8a8d8lRQr9XrhyTkUIFqj57D4Jsqx08fW CbKFHbePr+Xi99rJAr4P2YVBwNImC9VRIUkEh0mLrMlFtfkyK7V69Kg5erKZHajlSk uNgiq5WHwUfejKmcwJsvjgtc5snL2X3wz8mnqwQos0kppGvHA173L/OS0x9+4SmC6B su8YyT4zUyeQBri/rzVj/g7CG2NH44SpW/K8k97ZE9JLmtUgG0rGOrfh7KfI6sWGjz JVLCtdt4T3uS0n1FaeZSnMFu9FdrXzcqu/rTeFsfG88Ux5MifJi/zLQwZOVNd0oRcN PVXBis9KH73uQ== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 70BF939D0C38; Thu, 14 Aug 2025 01:30:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v2] net: kcm: Fix race condition in kcm_unattach() From: patchwork-bot+netdevbpf@kernel.org Message-Id: <175513501124.3846704.13838201534984026862.git-patchwork-notify@kernel.org> Date: Thu, 14 Aug 2025 01:30:11 +0000 References: <20250812191810.27777-1-sven@stegemann.de> In-Reply-To: <20250812191810.27777-1-sven@stegemann.de> To: Sven Stegemann Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, syzbot+e62c9db591c30e174662@syzkaller.appspotmail.com, syzbot+d199b52665b6c3069b94@syzkaller.appspotmail.com, syzbot+be6b1fdfeae512726b4e@syzkaller.appspotmail.com Hello: This patch was applied to netdev/net.git (main) by Jakub Kicinski : On Tue, 12 Aug 2025 21:18:03 +0200 you wrote: > syzbot found a race condition when kcm_unattach(psock) > and kcm_release(kcm) are executed at the same time. > > kcm_unattach() is missing a check of the flag > kcm->tx_stopped before calling queue_work(). > > If the kcm has a reserved psock, kcm_unattach() might get executed > between cancel_work_sync() and unreserve_psock() in kcm_release(), > requeuing kcm->tx_work right before kcm gets freed in kcm_done(). > > [...] Here is the summary with links: - [net,v2] net: kcm: Fix race condition in kcm_unattach() https://git.kernel.org/netdev/net/c/52565a935213 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html