Thread (9 messages) 9 messages, 7 authors, 2026-08-18

Re: [PATCH net] bonding: initialize err for empty target lists

flat view

From: patchwork-bot+netdevbpf@kernel.org
Date: 2026-08-18 16:51:01
Also in: lkml

Hello:

This patch was applied to netdev/net.git (main)
by Jakub Kicinski [off-list ref]:

On Thu, 13 Aug 2026 23:31:26 +0800 you wrote:
Empty NLA_NESTED attributes are valid, and bonding uses them to clear
the ARP and NS target lists. When either target attribute is empty,
nla_for_each_nested() does not execute, so err retains an uninitialized
value before it is tested. The request can consequently return an
unpredictable error after clearing the targets.

Initialize err to zero so an empty target list completes successfully.
Non-empty lists still propagate errors from __bond_opt_set() unchanged.

[...]
Here is the summary with links:
  - [net] bonding: initialize err for empty target lists
    https://git.kernel.org/netdev/net/c/8ccc9bf9afee

You are awesome, thank you!
-- 
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help