🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #23001

Re: [PATCH net v2] ieee802154: keep the original error after a netns rollback

#23001
From: Stefan Schmidt
Date: Thu, 26 Nov 2026 09:30
22 lines
8210 bytes
Hello Andrey Misiurov.

On Fri, 20 Nov 2026 07:57:49 +0100, Andrey Misiurov wrote:
> cfg802154_switch_netns() moves all of a phy's netdevs into a new netns. If
> one move fails, it jumps to the errout label and moves the already-moved
> netdevs back to the old netns.
> 
> That rollback loop overwrites the same 'err' variable with the result of
> each move-back. The move-backs succeed, so 'err' ends up 0 and the function
> returns 0 -- success -- even though nothing moved and the phy stayed in the
> old netns. nl802154_wpan_phy_netns() then tells userspace the move worked.
> 
> [...]

Applied to wpan/wpan.git, thanks!

[1/1] ieee802154: keep the original error after a netns rollback
      https://git.kernel.org/wpan/wpan/c/006dfe9c1d68

regards,
Stefan Schmidt
Technical Details
Message-ID: <179568544756.1950988.3201920280564563921.b4-ty@datenfreihafen.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372002-linux-kernel-netdev=dewy.ru
References: <20261120065750.3274661-1-amisiurov@cloudlinux.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-372002-linux-kernel-netdev=dewy.ru
From: stefan@datenfreihafen.org (Stefan Schmidt)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2] ieee802154: keep the original error after a netns rollback
Date: Thu, 26 Nov 2026 10:30:50 +0100
Organization: Usenet Network
Message-ID: <179568544756.1950988.3201920280564563921.b4-ty@datenfreihafen.org>
References: <20261120065750.3274661-1-amisiurov@cloudlinux.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="428497"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:cMIm3Vfihgo3wmJBFrv+/2QKRMk= sha256:O3qX6jp3gaB5Tp2HNFUtsSzuJJy/a+LBnfcFKkaBER8=
	sha1:qK7oy3dyYwMRMva0i+DdcnvYeaY= sha256:gS6pcbZ+zeYr84zZ4r0DAU9fX0u3po/v6hxTAmRTqLM=
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 CEA04125EBE; Thu, 26 Nov 2026 12:31:09 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249,
	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-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 YiOHY8lcJdAW;
	Thu, 26 Nov 2026 12:31:05 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-372002-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=datenfreihafen.org
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id 4CF20125EBD; Thu, 26 Nov 2026 12:31:01 +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 CA39E2B920; Thu, 26 Nov 2026 09:30:59 +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=1795685459;
	b=lHemOUCzEMfUp6aWcwnVQINoVcr2Ay0LKU+fuaMo7QaFy+wR+d+sBF1mNQcQR2ePRgEF
	 fhq9ekPyLpSDaNaG5YqDrdmSvFHWuMFyOuvSmnnf91H1rTBu5DoQMZ6+G3jkoX7ZCSeWl
	 nvZYMVUBZ7SvSWHCE2I+AccrdqRP+fuVk0OlgNbiRVCXKervxO1HELE7A+eY+4J3aH4ns
	 ISrqX0mGXmzHARqyJizxQ+HnmL+M+/6IwH6I++Pi1M2BXr6sYzNcGbdeOsGw9y7cksLKi
	 aJ160wm0LOzRC2wK1ZUnNYX1RmUzrqptzCztyvJImoLPB/wbxIxlcm4HAMKqY32m3Zw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795685459;
	h=X-Original-To:Received:DMARC-Filter:Received:From:To:Cc:Subject:Date:
	 Message-ID:X-Mailer:In-Reply-To:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Transfer-Encoding;
	bh=476RQ3GYG4okDny442A7f62x9RH8CtxwgL2Y5IQAN4I=;
	b=VtwoIFVJefFV3jMOOjie01ETEcWCuroZYduIdU805k0hMvCeIZApXDV4fpGPPbTpkwVM
	 faroHKwPrMkWs2MV8WDYlVzgVmUWh9pOKATvyttbDfaY7Tz3QpC+es4SKDTX+OI4IQThk
	 UzcUxYXdGlnltk5zeRjeq4qPb7D9DMl+kDc/ynu2MjZgHRtwqNVvJ3r5hAHtsYLrKwXvy
	 pCTQPS2X1U6sjwHvNRG/BTSQ4SpXGPZR7+s26kbjYtZGg0aE/UC4Eea2e9XycqGiOH46j
	 iEIRtbau8qxf5xTsx7NIp+T5e3fTYPeS5EtWXlQEgFBgYS5oglQg9lmimAlMwx9jr8Q==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=datenfreihafen.org;
	spf=pass smtp.mailfrom=datenfreihafen.org;
	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 271A9606A332;
	Thu, 26 Nov 2026 09:30:59 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=78.47.171.185
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1795685458;
	b=O5HdfgXm/dCZlTdOnn94pP8HF+uY9JSvSZOosVeTR1hGwrysv1KBfSMkJ54+ZhJPwLZH
	 1o3gxlkvrIYjodRTwfpZhX4TP3Y/CAGJEwRa0LZBkjXl/7WNdIEW46dh+zOBjmbX05b85
	 IILuflUaKyjCf26pY1HtPICJZfsjBSUK1jvqy9lLez1ULPCQcC5bnf/6ZVCYiBq+g58Qy
	 R0gUweD7ntIcwM+raKki7fVm0cqQoKypR4fXG3lDJUcHriybqtiwlLeu/e6nJrk2mEdX5
	 Wmdxz8mp/MQ7yE9Nz/NlWNdMgiujOb2NvATs/u1kWelTGHn6FLXgBsyVfC+oWT+tP6Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1795685458;
	h=DMARC-Filter:Received:From:To:Cc:Subject:Date:Message-ID:X-Mailer:
	 In-Reply-To:References:MIME-Version:Content-Type:
	 Content-Transfer-Encoding;
	bh=476RQ3GYG4okDny442A7f62x9RH8CtxwgL2Y5IQAN4I=;
	b=Sl9ckr4+eVApRe10/BxC1nbDQCbibfkyBO34p2vzAko60dGcFo2hh68zKay6cz5PdI/X
	 7avPhK8WLgWFq4cbO0fRpEWudTxF6BFlmJgJHEK3+w3KTIqDl0sJzXnKshM3jBcIdaiB1
	 QlT7DsjOOWHRq7oy3nLWH/mKzj4ghZKwSvPGjor0L8dQ5lanf4REoatIE3op88FP3qfkK
	 omj/MLfw/GT7f26osZ4GBK05f4m/D1LAUpTChNfsSP2YukhenGTP68IkZB6YfC4eEYNiS
	 N0D+sNYhgSXUVop/Jnc2r7Sis9fd+WYiLNtTizVaTbLcRLl6AQ/998mkNLQgoGA+T7w==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=datenfreihafen.org;
	spf=pass smtp.mailfrom=datenfreihafen.org;
	arc=none smtp.remote-ip=78.47.171.185
X-Received: from proxima.lasnet.de (proxima.lasnet.de [78.47.171.185])
	(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 9486A606A31C;
	Thu, 26 Nov 2026 09:30:57 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9486A606A31C
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=datenfreihafen.org
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=datenfreihafen.org
X-Received: from work.datenfreihafen.local (unknown [46.253.254.165])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	(Authenticated sender: stefan@sostec.de)
	by proxima.lasnet.de (Postfix) with ESMTPSA id 63EC7C04A3;
	Thu, 26 Nov 2026 10:30:55 +0100 (CET)
X-Cc: Stefan Schmidt <stefan@datenfreihafen.org>,
	linux-wpan@vger.kernel.org,
	netdev@vger.kernel.org,
	"David S . Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>,
	Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>,
	linux-kernel@vger.kernel.org
X-Mailer: git-send-email 2.56.1
X-In-Reply-To: <20261120065750.3274661-1-amisiurov@cloudlinux.com>
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