🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8068

Re: [PATCH net v5] usbnet: fix EVENT_RX_PAUSED race in usbnet_skb_return()

#8068
From: patchwork-bot+netdevbpf
Date: Tue, 27 Oct 2026 23:30
31 lines
9097 bytes
Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski <kuba@kernel.org>:

On Sat, 24 Oct 2026 11:42:08 +0300 you wrote:
> On SMP, usbnet_skb_return() can observe EVENT_RX_PAUSED as set on CPU0
> while usbnet_resume_rx() clears the flag and drains rxq_pause on CPU1.
> The skb can then be queued after the drain has completed and remain
> stranded until the next MTU change or device stop.
> 
> Synchronize the EVENT_RX_PAUSED state transition and paused-queue
> dequeue operations with rxq_pause.lock. In usbnet_resume_rx() splice
> the paused queue into a local queue under the lock, then drain the
> local queue lock-free. In usbnet_skb_return() use a double-check
> pattern under rxq_pause.lock on the slow path, keeping the normal
> RX fast path lock-free. Use spin_lock_irqsave() to match the lockdep
> class shared with other sk_buff_head locks taken from hardirq context
> in defer_bh().
> 
> [...]

Here is the summary with links:
  - [net,v5] usbnet: fix EVENT_RX_PAUSED race in usbnet_skb_return()
    https://git.kernel.org/netdev/net/c/67ae1b80cf73

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179314380482.391437.16125664674465100963.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352662-linux-kernel-netdev=dewy.ru
References: <20261024084538.256596-1-omermetekaya0@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-352662-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v5] usbnet: fix EVENT_RX_PAUSED race in
 usbnet_skb_return()
Date: Tue, 27 Oct 2026 23:30:04 +0000
Organization: Usenet Network
Message-ID: <179314380482.391437.16125664674465100963.git-patchwork-notify@kernel.org>
References: <20261024084538.256596-1-omermetekaya0@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1658464"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:WdGWWMi0Dgg5kLIeX0qfUpEeovI= sha256:C4n8zlOvszZwS6CXBlVKrAYYIQ19c9epg8sbSUsSJ5M=
	sha1:usxd5Sg/s5GskXpYMzRezweHVuw= sha256:6RkC+Lb/HT7QFU7d8UqdLKz+gJBgSbiOiopS2zdFBok=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 06553125C2A; Wed, 28 Oct 2026 02:30:33 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1,
	DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id V-Xi9hEgg5WC;
	Wed, 28 Oct 2026 02:30:30 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-352662-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id A5F81125C1D; Wed, 28 Oct 2026 02:30:20 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 60FAF27C6B; Tue, 27 Oct 2026 23:30:19 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793143817;
	b=EiBb7ROTOZxkk0yxzykvcArVBDrMthZ033ljAmwtdeww3+XqdxXGLcOSzRvHEcPnC4XT
	 Cb1RRg9nMQHClGuea1XwguOnxnbc7W6dj5XeLWHjL6q6F9yWeXzo1cvr4O33btfts8Yyc
	 2OjcWsNl/wMUK+nMdpId/e1YaYKEpABxn0lTsAEy9Kn8r8aI2dyiIm6sIIGaap8syavA4
	 LWsSnt74rLaFVYxBofdtlY0pkgT+qIj2N5Hpu0g+DPqSI6bf+RKd3Yiw2sHLc/ZhbP+JZ
	 NtPV317sSZpefRL82tJ9trqu70EvwIvAEK7n3w4VAOYiHwB5tHZwHynZq7M8a532iyg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793143817;
	h=X-Original-To:Received:Received:DKIM-Signature:Received:Content-Type:
	 X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe:
	 List-Unsubscribe:List-Owner:Precedence:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=V8Czi7uwANxlfo3cwGysMdQ69o9XIhhg4pxPBjRYfls=;
	b=UYXeqDGiD8NHzTtSWN7o3jYEKnVOcKib54SgDVfLhaGfvUAaYBIXjbtIeR8OcKfNwIIB
	 4lYOGyZPQlAAXTVcSWSXBBQ4mGM9q6PYNhlkyZpmhIPFjg1qcwFpdc6QG1+PXsJeFYnAe
	 zuqsmjbCa2A2pBF/zC8QOXsKjvsYLZpwBaP/o9JzYpN3rNljsJ51Pl0h9ODQcpqQb20k/
	 YRybizcsDtopgrHFpq+f+UrnoAw8Bbjg3cLVNB+6wBvOi0pB7xHhnXLhLdcFXx3fBJ79O
	 zPlsfzVrZtPAGXvdGjXqHdBsAl6gq6KQuwF9Ekm0IX9C94audLfd084wiFYa4uYX0fw==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HL4p9CyQ;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id D2A3D606A32A;
	Tue, 27 Oct 2026 23:30:17 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HL4p9CyQ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793143807;
	b=NFAsibgSpZo6teYG1/rG0U+js0sYR96enpMgwKGDpbbw3/Gpfdg073tikX1Qm761gaHy
	 GUX+lDtMh5ztmRD9BZZeBWiGSsAsOXvmRN2kzfle5XgkbX21lAaYELate4LjwN1fzdkAJ
	 IH21w0zMNo7rtnuqJ9YDScoEJ1m+0xDwAIvZTntAUZ/YJzm401pgJMpFUbWWa9qj+Qwei
	 a1AdvDB7R9D0RKAiQAfedwL4sVm7uo6IkGXwY8a4w7JDVz9epz+7NHhbqpRAlkmxu12z1
	 qac5UnLBqEmHGZ3xMmHWk+2haYusG7R9qV6BwEJNlSEbyDzmvT7x8gm5QMZEHdPbsyA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793143807;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=V8Czi7uwANxlfo3cwGysMdQ69o9XIhhg4pxPBjRYfls=;
	b=ghUFL8eFi7HR8EhTCg6I973IPvdZYsgy8tWsDO+zeFvb1Kw/7j3nfKc99Ak4jQ3UQu7M
	 6mu7WDhoKarRoR3c+nQ5NjJP5IzvAdfJfsYgNaFoRzseULZaHBJPSIvJe0xxJt5ETEi8N
	 0zSlZDgR2KsaPeJvl1C0XsQ8n8PqjckgqObk7CJgk1RwFxQh8Q+KRK4R7srRQdgFRgKFX
	 u58NDhs3ElDr+0iSjdYSYMXCO3cvE85IAj1N3KfnbLNxeMczeRjLheaT5hARgqRNOq+EY
	 Ap/jr+taJ4yvkkEjx2rYTd5l1VFEz4pocuR41IAhTVWfRBJCzwL91gl2yt312NC1YZA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=HL4p9CyQ;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 96537606A31A;
	Tue, 27 Oct 2026 23:30:06 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 123BC1F01825;
	Tue, 27 Oct 2026 23:30:06 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1793143806;
	bh=V8Czi7uwANxlfo3cwGysMdQ69o9XIhhg4pxPBjRYfls=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=HL4p9CyQYZlfbNYhjFph4R3nBesmgoNQCbGOVJfTfetprTSZUgZgTm2X11JfcgPZP
	 RxpAZ22zgrXtPaK1KznmP2rs+1u4KbgvbeRmU1I1STIfS78vt2UFWT2mvNQjAINTlN
	 Eo0BRIN15ct9tPNhbiJXAUVu+zrkYXeTioqnrigH7T7WZ4wYbae8VwE+XFEsUTDoIT
	 Ng5+MSzY2RDGKxzqtiPJKFIXbubEVbutiM+Cvfpq9ZTN3L0yoR+6YyZdyZrSCKfpwW
	 qVF9qYgvAXodKkhsxuatTqCf+o/+OXQiaKR2Uxylw5z0ekEc0y4gPCIuUzRjVk9Xx7
	 4Tbsx7YNZYMDw==
X-Received: from [10.30.226.235] (localhost [IPv6:::1])
	by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id 073EB3AA9413;
	Tue, 27 Oct 2026 23:30:06 +0000 (UTC)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261024084538.256596-1-omermetekaya0@gmail.com>
X-Cc: netdev@vger.kernel.org, oneukum@suse.com, andrew+netdev@lunn.ch,
 davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
 linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org