Article View: linux.kernel.netdev
Article #11929Re: [PATCH net-next v2] netdevsim: reject port addition and clean up ports after a failed reload
From: patchwork-bot+netdevbpf
Date: Thu, 05 Nov 2026 23:20
Date: Thu, 05 Nov 2026 23:20
25 lines
8839 bytes
8839 bytes
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Fri, 30 Oct 2026 03:13:20 +0300 you wrote:
> nsim_drv_port_add() does not check devlink_is_reload_failed(), so ports
> can be added via new_port after a failed reload. nsim_dev_reload_destroy()
> returns early in that state, leaving them behind. nsim_drv_remove() then
> hits WARN_ON in bpf_offload_dev_destroy() and a subsequent use-after-free.
>
> Block port creation with -EIO when reload has failed, and delete any
> leftover ports on the early-return path as a safety net.
>
> [...]
Here is the summary with links:
- [net-next,v2] netdevsim: reject port addition and clean up ports after a failed reload
https://git.kernel.org/netdev/net-next/c/39c23556e79f
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID:
<179392080842.233492.7945739633569188610.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-357667-linux-kernel-netdev=dewy.ruReferences:
<20261030001444.289973-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-357667-linux-kernel-netdev=dewy.ru From: patchwork-bot+netdevbpf@kernel.org Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net-next v2] netdevsim: reject port addition and clean up ports after a failed reload Date: Thu, 05 Nov 2026 23:20:08 +0000 Organization: Usenet Network Message-ID: <179392080842.233492.7945739633569188610.git-patchwork-notify@kernel.org> References: <20261030001444.289973-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="3754369"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:LosmlCWzAmxirjZLDRYXuIaZ/xU= sha256:G/PfuZwvWLUXYPUuQKo5qzsghGO1h2bRPJJw+n5sUcE= sha1:cwJkWkSNq7jNKNaNz0Gp6+InobE= sha256:5nc1TaHMdGMhoDevWMbHTqk0F2zqDKdKGfvc1Tpmf0U= 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 8926611310D; Fri, 6 Nov 2026 02:20:56 +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 2sQXRSOl7X9t; Fri, 6 Nov 2026 02:20:52 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-357667-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id 310821130A9; Fri, 6 Nov 2026 02:20:44 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 9C3E42691C; Thu, 5 Nov 2026 23:20:29 +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=1793920828; b=W8v3JpIDSqx0OB22cSxhTcxQ1ewngbjh8hYWakmcx1tmg2Tr4VAkb+q9xx2KLwRC5P57 V6Cf+YUHkcTkUlsy/c3fJEAWpcDr+z79uS4tmCYBLoX/2NSJXYL/iKp/mZptmZ4D8lJB3 fHuutU735BwjS9qa2x429nElQ0V6dwQkHhQesq9jWvZkvM+KZdg58/Jlqwq/a0J8BlGQM GKdgKg+dVd3uod55VReNsL5KysH+tHFmhE3KQlnGS87yJmBVYs1lN1akfB9R1sX53odO+ 96KsMBNec9xv4QiAXXD43qhhBqNyhCwgs71O91DJ/44JSwdIqzr6IXt1CT8kELR9Yig== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793920828; 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=I3LriLqt5gfNkaS3ODQStGRNo7oBu1IRuFacVbTR7Sk=; b=SsJO3OyF0EW0lh/ZdXAeTx/hxPTiNRsWUdRgspdxtpkbQcipO8TxFdGhJmnaWb48kGC2 rmHyxkYomsezgn1rCggcRDlZi6RArknAv7N5iSce33AqYQm9LKIxDvpDOiKQQCouvG80B 8jBogk/LHkMxvA4mqlK/8p/bHFXCmp6VI0k3LQD2Ns6X/wcpYQ3BjuXxhKPES7DNf2HoL yN5cljMaVMECPJiPwDKTDqqsShJalIui9wxWZ6TKugvGRKVxOG3xKEDb5Uv+xarex0VHe P1LZWxlZ9mYDzzObNEP3AyNt29KCClXDvW/ASMTd8WaZVdkVr58Ic6S9rAyZnNfaO6g== 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=cazbQAW2; 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 35E71606A32C; Thu, 5 Nov 2026 23:20:28 +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=cazbQAW2 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=1793920810; b=oty8uy1KVwNsKSmMhqaj2EkUpDIE6uuT6ru+hJVeH+EyDgJYL960HY/SClHWVjnrPnI5 3f1Yxa7Qq30se33zDBepZZ+jDe6Jt/DlKK2TXDLmiFOQhuoHJ6IOodt9C3o1H7dRnvzlX oRnCh7JJKq/mWqS6g2rFmv8GJ5qbBJThPCYtmGTB3cH8aSy03D1v1OGWjxwuEODlj+l1t hkAP16hp1sqHDdvFt2DxKRNr+bwMb2pi5XH3Y41QcvXwOUxcFwMl2DTO13pNlRuaQWWWt kOCtXVQv7C4L8xHcEp9VGf78f7TC8TB/vVSjPIsyt64GnaN45RfU/IDp/6zJE0IM8ug== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793920810; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=I3LriLqt5gfNkaS3ODQStGRNo7oBu1IRuFacVbTR7Sk=; b=eAYSTB7yjpexYf5YonOtcvKojbIIKIt8v+L9Ui50Xw2GDReqFBvSybMpUPQpEgcN9Lp0 WwyNT3nDeuE00aURcr1BqWxqb2VYcpOBzYIvGRQgDEqfE0y+zcpfxcLxggys0t20TAl6i lPmjDgoeNnWuk3WatCT6pkzw3Wtk0uhHCGfHyqa+iBJl348PXM0XvDbzY2BqanHPwICJW YsNkvzLAqfH3Yh0WEFkMM6m/hPptPH63dIzm3+vPg7xZyJM3Mx7innNH11hBCh6oipGa0 u1ZUJcwcLllVI496HjU8WsJ5gONLTygBrb+hAZMu9Tp6kwgkz9H1NfwlhvtXcOj3MAg== 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=cazbQAW2; 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 65AB8606A332; Thu, 5 Nov 2026 23:20:10 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id E4A631F0089F; Thu, 5 Nov 2026 23:20:09 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1793920809; bh=I3LriLqt5gfNkaS3ODQStGRNo7oBu1IRuFacVbTR7Sk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=cazbQAW2XKEPN8Q76nPW8PkF45tZBYwYH7TyB4enSr+6rPfO8NBgC0KvaWkZhqvC0 HoT0+/uPKEIxMUEW2mwy20b0G5AA58hXZfvZHFYU6noRaQpldXB+Sas5Y4cn+V4A6x xu0cldn3SOCOJOTjbwjNe0V3PXMH9Cqa/HE6hFyhUdphG6bRQqAGmmOQg0A1/mIS1+ fC5ORl3+r/8XFYCi5ewYlBMOTfi6IXLSaKhwFQR3C1f0CsGhnviSKZfQGmT8cCfkcG N/uOecMmZk1LJ4VLGdPNYW9at92fHQ6yG0jjgGOaMeLbc6UAveVdifqqw4OEILQVyE 4AiUvXEx0VA8w== 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 D837A391B1AB; Thu, 5 Nov 2026 23:20:09 +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: <20261030001444.289973-1-omermetekaya0@gmail.com> X-Cc: kuba@kernel.org, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, jiri@resnulli.us, syzbot+88435e204734072bf39a@syzkaller.appspotmail.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org