🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #14116

Re: [PATCH net] bonding: fix slave_cnt leak on XDP enslave failure

#14116
From: patchwork-bot+netdevbpf
Date: Tue, 10 Nov 2026 18:40
28 lines
8848 bytes
Hello:

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

On Wed,  4 Nov 2026 10:28:51 +0100 you wrote:
> bond_enslave() increments bond->slave_cnt before setting up XDP on the
> new slave. If that setup fails (slave has no XDP support, already has
> an XDP program, or dev_xdp_propagate() fails), the error path jumps to
> err_sysfs_del, which never decrements slave_cnt.
> 
> Each failed enslave therefore leaves slave_cnt one too high:
> - SIOCBONDINFOQUERY reports a wrong num_slaves,
> - balance-rr picks slave ids beyond the end of the slave list, so
>   bond_get_slave_by_id() falls back to the first usable slave and
>   transmit is skewed toward it.
> 
> [...]

Here is the summary with links:
  - [net] bonding: fix slave_cnt leak on XDP enslave failure
    https://git.kernel.org/netdev/net/c/a97809569964

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Technical Details
Message-ID: <179433600568.4186528.5122039018289345050.git-patchwork-notify@kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360529-linux-kernel-netdev=dewy.ru
References: <20261104092851.688361-1-edumazet@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-360529-linux-kernel-netdev=dewy.ru
From: patchwork-bot+netdevbpf@kernel.org
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] bonding: fix slave_cnt leak on XDP enslave failure
Date: Tue, 10 Nov 2026 18:40:05 +0000
Organization: Usenet Network
Message-ID: <179433600568.4186528.5122039018289345050.git-patchwork-notify@kernel.org>
References: <20261104092851.688361-1-edumazet@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="676209"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:y5Ixd1Ce9AjEQgRFoOdnibarB+g= sha256:pkQoB+upzEqXKm6/vjrxmlv8YpOFO9VLcU2npR2HbAw=
	sha1:/dP302scJxYYycCkzg9OvxUc+MY= sha256:FIt3Xl8SkNLlZnVEMFWTTi3zJ9mAHzqxIFIzErK0keY=
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 E2678113CC5; Tue, 10 Nov 2026 21:50:32 +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 2I1AymghkWZi;
	Tue, 10 Nov 2026 21:50:28 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-360529-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 30DFC113CAB; Tue, 10 Nov 2026 21:50: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 ACA912D0BA; Tue, 10 Nov 2026 18:40:47 +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=1794336008;
	b=yXsQR0ufgXX/Rn2+exVSym+6K01g+HRLUsNb+BbwF8tUxrrKHJhOFjllZ7Ly9Edd1EjC
	 7w/WXxX/suaFp8o1hrguKoEL7S5HeSkH9cF3mCv9YMgKPD2kXBs9HlUKogmC1Pe8ky1zK
	 xU1NbqW4+86y+xeP2oG1Uo852hKMomQJ4XtZdklsyynzfgKOoqYCInxecVYZIo40qT4e8
	 q6XZJiDjDV85K74iazTJ88DfNv9Qm6bTmcl0Y/Ug2bZcBCdIkyB1rnfrRuIOoiFOfMYsU
	 YVvurG2R69qUMiPuYJ2VlpXPmzLvpvWeX2kVQ47UuY+FPDfC6QDuKFu/58GSxsCD1Ww==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794336008;
	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=4MSh5JOaUd5k77i5qW9LbAd13P6R3ude62+HLiVlgeI=;
	b=HWjItTNI7K0Hy1GLuIPfMRUIEtkOQmjNyY404FRaieGGTlnL0sJSyBM70sIpera9csrn
	 EzJJUJiufPnLZqjMXMns/jylDKku7a8AWVE9RUPhCKER8bB+4GIFoW971UiyCvYHBqOlh
	 lJ2wx1WfyAZ4mFYx9hld1IORfU4lK3FsPcGNSfKQzwSSl4V29zMf7N9wQ0wmlFT2PoQZE
	 PLxLytPSQxRTxr5dJchapkTnur/2VVuUNPbsgCQsX+Z9GcRpKD8t4VE+GYqX6dqRpOvDB
	 mvZLgoAn4a4zLg4H1a3FFGuGRLL6S/o890t8N86uW0LOULg8rUpv2PrHwDYgIrb935w==
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=CZzCvEXY;
	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 8959560A3833;
	Tue, 10 Nov 2026 18:40:08 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=CZzCvEXY
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=1794336007;
	b=SfmR/wFZU3DwFRzs/L4gqz0ySkhoBjZoKZZkXhaInrJ7bq+2FxUIzi4xwnx+hHiIWAoE
	 Mo33ox8rLls8fZQAgpa+YtfhTGJGvDf4tlD5LR60fGsh8dx3A/gSbiR52dTC+l2CP76tA
	 lBGsae1kRPlMw+cwpBlVAw4O/deE9OXaRg4Rzro5qqHBS+8OwdipC6fKWP14yhFHwf44l
	 CzImLEVntMb+5EZGN2K/5TW0gpyDMaJXi3xSf6j8TX6tHtWciKNmC+LPbSEZZs4NlYepM
	 Qi5NzqA125IXeo7GqvxQlhlgCvx5SzyVECc/cG2+vQMGIHb5mxTvU+X08JDdK90CqyA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794336007;
	h=Received:DKIM-Signature:Received:Content-Type:MIME-Version:
	 Content-Transfer-Encoding:Subject:From:Message-Id:Date:References:
	 In-Reply-To:To:Cc;
	bh=4MSh5JOaUd5k77i5qW9LbAd13P6R3ude62+HLiVlgeI=;
	b=JrMKDhUyCf7JSSixDmkle4DkPpaixh49iPtgEdudVJfPBtZc+bRsFhW+oCf8BthFO+6M
	 +WKugZjGnXX7zIRMgUgjaj4KK+h0sTL8fHdxOxuHTfc43tGy47hkZBN4zDaTap/MC2ob9
	 JZmxjVd7G23lVuk5Vlpf9SEsER2TUpvDwtEKdC8fV9Y+8peuKk4az9u8O4xvlL/hBYogL
	 jCdCmmwRKB6rk9N0IEyP/krX81JNI2EYwvXeIJ5zi53Bdf5qzePwve/MmT3Zf7K7FdmVE
	 hFzyLMpI4jm3xtlU+ffbTq1Dy77Wtv2HjjYk/5b9lq6zsUrfgYo18jWRdiIkhapmmvA==
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=CZzCvEXY;
	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 68D7260A3838
	for <netdev@vger.kernel.org>; Tue, 10 Nov 2026 18:40:07 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2F1EB1F008A2;
	Tue, 10 Nov 2026 18:40:07 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794336007;
	bh=4MSh5JOaUd5k77i5qW9LbAd13P6R3ude62+HLiVlgeI=;
	h=Subject:From:Date:References:In-Reply-To:To:Cc;
	b=CZzCvEXYT2IoZAzR6jlervKliIyRcaZwRH4sW0H81zIaa9sSRXFfBSrck55QKyGbc
	 4s9MUXOOcH16EkxASuTL2fdlklUQY0cipPsny2GS5YO/6zlTN6+oJf1wyQILW1zPDM
	 OwxFdqmp8KMo19McW161yPv3A9WYyhaDd4iBnffg1NXBbV/b/2diYOqHHwSK3RWkMh
	 VGl0WHdjbfYNxiFE9Eo0Whhxla3hE3gGXqyqMxIyuzP35/qEkd/649Z3v9pYvmP7iG
	 DAp9g5R/vBheX54W8+tXTB5h2E73ggW0lpAsDLVKvyTtIe3LT8T+9w056uFG5YuHUe
	 QNyOutWcIOuVA==
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 2119839D6091;
	Tue, 10 Nov 2026 18:40:07 +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: <20261104092851.688361-1-edumazet@kernel.org>
X-Cc: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org,
 netdev@vger.kernel.org, jv@jvosburgh.net, andrew+netdev@lunn.ch,
 luyun@kylinos.cn