From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795975213; b=nWwHv+4nwMlE5EhRpn8+JONBJfxZlu1uTzv9PzGZdV7kIMFcdrIJ6vciIyxvX1Lx1la5 ZEZJek49PJlHFS93AUUFv/nZRkF5hq2kSUITv8yUyqogIzisFdyL3kW93at7GVu3KHx6U MdV1qemSpXoqzcsscNU5V7Hze2NV98mYQbfH3JM/0rxX5DuKoHAIe2lndPuyk8QvNJpbh F+V7hQifRottDHKwvjXyIBzDBg3saSwL3uI1A84nxTbNTmKKbheew0qLRqJByF3/0QQPM d8Skvp7VLWT9rx4SvXnwFYVer9lGdbuEckmRn6tl2D064yb5dbWNwhl5ifRPabWuN1g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795975213; h=Received:DKIM-Signature:Received:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:Message-Id:Date:References: In-Reply-To:To:Cc; bh=IiZUKSi9rMnTNRQbCUFON/8xtONhquwCMJFGdoODBjk=; b=miyjp9vZpMSJdZYHYS91TtGgH3/RZp6aU7NFmF4RInUoJjBtokRGwNuuaa/QOc+n3QOG /PSf1w36FubXgW39t+HUneHDXzWdJTvkeR+WlLTrq5pNpj6eTuzNTJH5UE/RQsqKAYap7 8UnGDp4tduk+k82T9s4QUqZneJJb/u6lVIX2gxHojLnt2P1bq6IZTG7rXCSRH8biv60du 876wjuwQLhMq3/WH8CGspVwZo6XFZ1f5uAE1JRpmJpv0EVmD8xYQJEeUjGLjNBgHNQMHG YXQynl8XRklwkU0vtyNIFIK77TOPI2kL7Vz/Z+pi/8UzTk3pI+4IuLW9supUnFRIn5Q== 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=l7NPzjqd; arc=none smtp.remote-ip=100.103.45.18 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 18C46606A333; Sun, 29 Nov 2026 18:00:13 +0000 (UTC) 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=l7NPzjqd Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB9911F000C1; Sun, 29 Nov 2026 18:00:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1795975212; bh=IiZUKSi9rMnTNRQbCUFON/8xtONhquwCMJFGdoODBjk=; h=Subject:From:Date:References:In-Reply-To:To:Cc; b=l7NPzjqdOEEnNnwYiNwrzCIJtMCyP4MLhkOTzRvXXDjKX9U1J9u6zsFm1/5bDdTf2 fri112nzKkWIODgt4fqChc4pKpAJFvgc9iO2fbVWZKC9XGcG4CokQ5tHvsMXv3PLq+ 45ZJWynb+GjqrBigW0L63DSm8LmiE1++qEZPLbkjJP8NVrOusQapUHkSZ3NFcJXXex y2WlBKmGotcY2dQXyYvd3QH/HqZcnSM5foy+bZ5tpyRuPlBIVwqiTxLKNNYN05Ekqp y08sHMpAzSp0JxRAiyx6saQZSfzi0gEz2T3/dXCdTiI/Ig631AZt0y12L420sz2O4V EULvaGU19t5EA== Received: from [10.30.226.235] (localhost [IPv6:::1]) by aws-us-west-2-korg-oddjob-rhel9-1.codeaurora.org (Postfix) with ESMTP id AE98F392E9E2; Sun, 29 Nov 2026 18:00:12 +0000 (UTC) Content-Type: text/plain; charset="utf-8" X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH net v3] ipvlan: update port flags only after ipvlan_set_port_mode() succeeds From: patchwork-bot+netdevbpf@kernel.org Message-Id: <179597521124.2381430.12587432311065387750.git-patchwork-notify@kernel.org> Date: Sun, 29 Nov 2026 18:00:11 +0000 References: <20261120032438.18789-1-sunwenbo@cmss.chinamobile.com> In-Reply-To: <20261120032438.18789-1-sunwenbo@cmss.chinamobile.com> To: Wenbo Sun Cc: maheshb@google.com, andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, hangbin.liu@linux.dev, liuhangbin@kylinos.cn, kuniyu@google.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, 1342116488@qq.com Hello: This patch was applied to netdev/net.git (main) by Willem de Bruijn : On Fri, 20 Nov 2026 11:24:38 +0800 you wrote: > In ipvlan_link_new(), port->flags is updated before calling > ipvlan_set_port_mode(). If ipvlan_set_port_mode() fails (for example, > when switching to L3S mode without CONFIG_IPVLAN_L3S), error unwinding > calls unregister_netdevice(dev) via unlink_netdev. > > While unregister_netdevice(dev) destroys the port when creating the > first ipvlan device on a lower interface, struct ipvl_port is shared > across all ipvlan interfaces on the same lower device (tracked via > port->count). If another ipvlan interface already exists, > unregister_netdevice(dev) only drops the extra reference and leaves the > shared port alive with the updated port->flags, unintentionally altering > the flags of existing ipvlan interfaces. > > [...] Here is the summary with links: - [net,v3] ipvlan: update port flags only after ipvlan_set_port_mode() succeeds https://git.kernel.org/netdev/net/c/2dc773eeace2 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html