Article View: linux.kernel.netdev
Article #4063Re: [PATCH net v6] usbnet: fix smp_processor_id() use in preemptible context
From: patchwork-bot+netdevbpf
Date: Fri, 16 Oct 2026 15:40
Date: Fri, 16 Oct 2026 15:40
27 lines
6620 bytes
6620 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Mon, 5 Oct 2026 00:59:25 +0300 you wrote:
> tx_complete() calls this_cpu_ptr() before disabling preemption, which
> triggers a BUG when running with CONFIG_DEBUG_PREEMPT:
>
> BUG: using smp_processor_id() in preemptible code in tx_complete
>
> Fix by using get_cpu_ptr()/put_cpu_ptr() which disable preemption and
> return the per-CPU pointer atomically. The usbnet_skb_return() hunk
> is a hardening change: that path runs in softirq context so no warning
> fires there, but the same fix is applied for consistency.
>
> [...]
Here is the summary with links:
- [net,v6] usbnet: fix smp_processor_id() use in preemptible context
https://git.kernel.org/netdev/net-next/c/95a5c641fc7b
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179216521051.826981.1505486150445247313.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-347436-linux-kernel-netdev=dewy.ruReferences:
<20261004215937.302247-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-347436-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v6] usbnet: fix smp_processor_id() use in preemptible context Date: Fri, 16 Oct 2026 15:40:10 +0000 Organization: Usenet Network Message-ID: <179216521051.826981.1505486150445247313.git-patchwork-notify@kernel.org> References: <20261004215937.302247-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="2812848"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0a5PHI8Vf+/q1WeHR5HnO5tKUCA= sha256:tiMcswtTm4A9zNgPD7X95syWDkNqJZmGdphBQ2a7lxk= sha1:pd9jUSHLXfUlbOywmEPYVjaEC9c= sha256:XYDqlAHiVzNNfHbbIPzjniSSK4BE+bc+EcooQ8ZbAmM= 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 6310C110587; Fri, 16 Oct 2026 19:24:45 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -1.9 X-Spam-Status: No, score=-1.9 tagged_above=-9999 required=6.31 tests=[DCC_CHECK=1.1, DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=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=fail (2048-bit key) reason="fail (message has been altered)" 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 0CLRIhN8v-Tb; Fri, 16 Oct 2026 19:24:42 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-347436-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 D2F15110583; Fri, 16 Oct 2026 19:24:33 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 66EB341B93; Fri, 16 Oct 2026 15:43:42 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7E9214EDCCD; Fri, 16 Oct 2026 15:40:13 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="CUPoKfLX" X-Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 600FE4E73D3; Fri, 16 Oct 2026 15:40:12 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792165213; cv=none; b=sfe5b8hITSk4wDjgaon32UeCJvNLHMkhw8d3do07koIP9Tp9knSOeGSpwKMBDYWBmFAz+WH58EYOhRpz5l3d43TFuOne0h5TD9vfUd67CIsWsJjReVs2+w5Vsu61GaQY2eTiZuU1kOLBxa5ty+O3uG6OaQPzhrooIL7z0MBr1r8= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792165213; c=relaxed/simple; bh=kpnhysZohGz0b+ZHYDgrOP3fuFRSCFDtr38eFnrsG3c=; h=Content-Type:MIME-Version:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; b=atTBLcsu+ER1RCFIAMzA6CY+MsJOtgkeEZt0B4224OlE++ayEmRqmGNrqv2HJzz1BaUHVl1Bp12T3Nq81sxAAEW78NZgdbieBxFTTjaHWJDRywETDZp15dNJLj0DBrjXJ7oKc1gL5lAKGJW56R27ZjKWcg4wnwhUG24twi+lDCA= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=CUPoKfLX; arc=none smtp.client-ip=100.103.45.18 X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 07AA21F000C4; Fri, 16 Oct 2026 15:40:12 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1792165212; bh=DZtiGFqMh+o3ljit957qlfXy+ROtKb6EffqVfJk10dw=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=CUPoKfLXnxV2PxgvdtR1PC4qaR7xyRIsFiyUKvsXY4OCyuBSqNwRw1+yBsKCt+O/A 3s8M43zXI7mo7wrMOR15Bac8QrZgT6+j8yu1D5UJ9cAg95j4V7XPywD51BIKimVuN7 IzCu9E4MSG0GsPKVgbAcskLvK1ql3zSjw3hMGqwc8Jsi+s0Qt0A9Q5wbRDcnGG4uya Tsa9LhpLQyLGorz0LPAHR+YR/S0hSvvdKGEMKXdbZvKgwN0/6lDCKMgO5lop7Rv2bR Tf/bLo7QZBe4q511N+Wo10Bcmgj5uOxrrJuGeUwQ+/xt20MIErPU9A9qOsdGukuXAy q+J6meNmc7wVQ== 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 F1616380A96A; Fri, 16 Oct 2026 15:40:11 +0000 (UTC) X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-In-Reply-To: <20261004215937.302247-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, david.laight.linux@gmail.com, syzbot+04cd90bb99c6ef81a65d@syzkaller.appspotmail.com