Article View: linux.kernel.netdev
Article #3531Re: [PATCH net 1/2] veth: keep carrier off when resizing channels with a down peer
From: Xia Yan
Date: Thu, 15 Oct 2026 10:27
Date: Thu, 15 Oct 2026 10:27
21 lines
6663 bytes
6663 bytes
Hi, Resending as plain text because the mailing lists rejected my previous reply for containing HTML. This issue was found during LLM-assisted source review of veth_set_channels(). I reproduced it with a veth pair in a network namespace by bringing one end up, leaving the peer down, and changing the active end's RX/TX channel counts with ethtool -L. The UP endpoint then incorrectly reported LOWER_UP. I built and booted unpatched and patched UML kernels and ran the accompanying selftest. The four mixed up/down cases fail before the fix; all eight cases pass after the fix. I will include the discovery method in the commit message if another revision is needed. Thanks, Xia Yan
Technical Details
Message-ID:
<179205999714.14383.12377248582345992543.discovery-plain@163.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-346668-linux-kernel-netdev=dewy.ruReferences:
<20261015085821.12725-1-yana06070@163.com> <179205503431.408196.3787158263559792614@kernel.org>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-346668-linux-kernel-netdev=dewy.ru From: yana06070@163.com (Xia Yan) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net 1/2] veth: keep carrier off when resizing channels with a down peer Date: Thu, 15 Oct 2026 18:27:15 +0800 Organization: Usenet Network Message-ID: <179205999714.14383.12377248582345992543.discovery-plain@163.com> References: <20261015085821.12725-1-yana06070@163.com> <179205503431.408196.3787158263559792614@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="2507783"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:gtsVpFgUQQ/wljFjLGBxCC9SDgM= sha256:cyWs+u4PF4hM1gIssk1itH3/juHucSjzthTD41MFZf4= sha1:aApjvqZVPq/kmEbtYZP+ua9TBtM= sha256:wBBD+iBOLQqAseFQzTFB1vIea2UuAZwuWtAWZhT/QCA= 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 C9E011102BB; Thu, 15 Oct 2026 13:35:44 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -0.747 X-Spam-Status: No, score=-0.747 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, MAILING_LIST_MULTI=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=163.com 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 tVgmATK-DDY3; Thu, 15 Oct 2026 13:35:42 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-346668-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=163.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 4478D1102AC; Thu, 15 Oct 2026 13:35:34 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.90.174.1]) by sea.lore.kernel.org (Postfix) with ESMTP id 629C82AC86; Thu, 15 Oct 2026 10:28:04 +0000 (UTC) X-Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5C4B501F4F; Thu, 15 Oct 2026 10:28:03 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b="YOoo5loU" X-Received: from m16.mail.163.com (m16.mail.163.com [117.135.210.3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 793FD439F75; Thu, 15 Oct 2026 10:27:59 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=117.135.210.3 X-ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792060083; cv=none; b=iMnTe+3fnSw0x4suRImAnWKaVCZGOAvvMG7bzB+T/FaV+6SnPZSH2G+XxzHOm7v3wRb1QEPR+tdzRFyC7jfDJ6FwTMcdcYp2q86gm7snsoxoS7j2Nr7DVOAomId5kFwtWXui3cernZrLCGsveJv2lF0kiMW45xJ3ddGb93sQtng= X-ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792060083; c=relaxed/simple; bh=JZ9/4jmbJeCBHPwSgo1TDGUTRv1owDqAWV7mKohbsQs=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: Content-Type:MIME-Version; b=sAiM6RXxDU12oWG1wLuTetepwUnq5Sen9meqVvnT1DjTxjgIq+sB9t4+bvVmQ67FYkqhXlt6gq61PmBomgQE8zLbC4hKpRFyCYSHxRWxpVxcdmo1OlUbQ4EAqLTfSDRL8vRZTyMsT78+H+TEyUGtuGF4IMP8oizOD92IAo5FDG0= X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com; spf=pass smtp.mailfrom=163.com; dkim=pass (1024-bit key) header.d=163.com header.i=@163.com header.b=YOoo5loU; arc=none smtp.client-ip=117.135.210.3 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=163.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=163.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=From:To:Subject:Date:Message-Id:Content-Type: MIME-Version; bh=JZ9/4jmbJeCBHPwSgo1TDGUTRv1owDqAWV7mKohbsQs=; b=YOoo5loUEYuaq0txI/H5rEuExv1nkKTKNxF1Lwh2vffHzjWZHTWlTGPtynqNYo uI8nnjHg23YF8bgwyro1L0deJu2epbCFkqkeRkWxJEvhEze4rPDq9DrgWIFOB+C5 6bKYtRoZDSN/O3lqikbQB8ll815ZCizHStReZAkrGwZoI= X-Received: from localhost.localdomain (unknown []) by gzga-smtp-mtada-g1-0 (Coremail) with SMTP id _____wD3fyOPqtBqLrTzEQ--.45522S2; Thu, 15 Oct 2026 18:27:28 +0800 (CST) X-Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, linux-kernel@vger.kernel.org, netdev-bot+sinfo@kernel.org, pabeni@redhat.com, stable@vger.kernel.org X-Mailer: git-send-email 2.33.0 X-In-Reply-To: <179205503431.408196.3787158263559792614@kernel.org> X-Precedence: bulk X-Mailing-List: netdev@vger.kernel.org X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-CM-TRANSID: _____wD3fyOPqtBqLrTzEQ--.45522S2 X-Coremail-Antispam: 1Uf129KBjvdXoW7GF1xCF45Gw4DJw45CrW8Xrb_yoWxurc_u3 97t34Iga1xAFyUJF9rKF45urs7KayYgr9Yy3y8Wa42kw1vyrWIg392qr17Wr109ayqqFs5 GF45Gw4Yywn3CjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUvcSsGvfC2KfnxnUUI43ZEXa7IUUG-e7UUUUU== X-CM-SenderInfo: p1dqtiawqxiqqrwthudrp/xtbC3xCdJGrQqpB9xwAA3M