Article View: linux.kernel.netdev
Article #14948Re: [PATCH net v2] selftests: net: forwarding: replace bash brace expansion with seq
From: Xia Yan
Date: Thu, 12 Nov 2026 07:58
Date: Thu, 12 Nov 2026 07:58
16 lines
9359 bytes
9359 bytes
On 11/10/26 02:41, Jin Li wrote:
> {1..16384} is bash-specific brace expansion and will not work with POSIX
> shells like dash or busybox ash. This breaks the flowlabel test when
> /bin/sh is not bash.
I ran both loop forms under dash and busybox ash. The old form
hands the inner shell a literal {1..16384}, so the loop body runs
once. With the patch it runs all 16384 iterations, and the spliced
$PING6 expands to the same command line as before.
555e5531635a replaced $(seq 1 16384) with {1..16384} in these
three scripts and nowhere else, so the Fixes tag is accurate. The
rest of the forwarding directory has no sh -c call sites.
Reviewed-by: Xia Yan <yanxia@cmss.chinamobile.com>
Technical Details
Message-ID:
<1794470289000.677730.6981049676553902648@cmss.chinamobile.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361574-linux-kernel-netdev=dewy.ruReferences:
<20261110024123.535210-1-jinli@lanxincomputing.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-361574-linux-kernel-netdev=dewy.ru From: yanxia@cmss.chinamobile.com (Xia Yan) Newsgroups: linux.kernel.netdev Subject: Re: [PATCH net v2] selftests: net: forwarding: replace bash brace expansion with seq Date: Thu, 12 Nov 2026 15:58:09 +0800 Organization: Usenet Network Message-ID: <1794470289000.677730.6981049676553902648@cmss.chinamobile.com> References: <20261110024123.535210-1-jinli@lanxincomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Injection-Info: usenet.network; logging-data="1038822"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:tDAF7iKDduixnx9HBJdo36IQYec= sha256:JQ9jv4f0lbpspIOYBld4qB7rhb7AonFjBnB/wuHo+Lg= sha1:/SVG2PZUE1KxRPYPMWQwfKO5Ows= sha256:0REguQuzwiKn+JX68MB6Rfd7yYwk5BkCwnWPTw2mUSM= 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 4AC0E114144; Thu, 12 Nov 2026 11:05:42 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -2.751 X-Spam-Status: No, score=-2.751 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_INVALID=0.1, DKIM_SIGNED=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-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=fail (1024-bit key) reason="fail (body has been altered)" header.d=cmss.chinamobile.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 47zryZ39BEVM; Thu, 12 Nov 2026 11:05:38 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-361574-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=cmss.chinamobile.com X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id D9C8511411E; Thu, 12 Nov 2026 11:05:27 +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 5D282101F71; Thu, 12 Nov 2026 07:58:17 +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=1794470296; b=5N+5FDRkPvkFtmPxsEwBBpiLf1JGohJhT6CCjYLOYt+pxqWWA6+KeFDFxtjGqIVdJ/br OhXah7hgd5KQJCgmwEwoKp8eWA6lq5yOnq+elXZ8KZK3eJX8uxBNc8RY6CcoEuH0rmVS8 /efJaXm30qc7Y6P4xocH0k/mQIW3+5+CcbJRnaiHHdtZYtIv9g3NJ5Cc2pZ80SijIvp2+ wTPjYnKN8zPGye1RhoybRvlE5oX2ZG3AdlswCHygtpdulIVR9K8qkzqyAAwlrTgNzg9dQ QNUQ19waha7buzlqhLkznjzE2Cz2kcQLrfsCn2om+PUIOgCfiYiw8OaDBrTM2nhxrRA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794470296; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:X-RM-TagInfo: X-RM-SPAM-FLAG:Received:X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG: Received:X-RM-TRANSID:From:To:Cc:Subject:Date:Message-ID:In-Reply-To: References:Content-Type:Content-Transfer-Encoding:X-Mailing-List: List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe: List-Owner:Precedence:MIME-Version; bh=owjWlmr1RZxKH+9vBGpAZpDwjzAy6fCU9wzGVyPy1fU=; b=lAfYGBjsfO2b5/rdGBxK018ai1aQBYPo8kXQ37XayHNoxUwRMUZoLdTcCHuzLSQ4kLa3 7G4UtMX5+ruetsGpxKODGhjEZzZb6vdMYDCip9+kZTeVCCSpFlhO+fDwJsfBh2S9t83UA dTWAg5SvVekNIu8yNv7VuL0oRdH7UwHXhoOigDp+Gpz0leKdo0o5wVrSVspQcrN5qh4rm /+v36foXG9nhR0FdS1xDSyV0L9eLg5b3MrfMioiT0sXxgIu1GLJXyHp8mSIBjb92QG/Y4 Jlsno6EsivO39PfDUTP3sNM4xU14ZMvXBKkZW54a9HvgBS+kxzCaSyFVJEaE0ZDjY8w== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=ApG+FbZK; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; 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 8A08F606A332; Thu, 12 Nov 2026 07:58:16 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=ApG+FbZK X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=111.22.67.139 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794470295; b=3tZdoiqujNSRg2JS/xkw4ofbdYsQ2phx5aCQVQK1WBo8zHF4tkxhxLvKDzZvGVsiTN9Z waE9j4mPmaUHjmRaYdpg5Lc2grKARomvOqMWxm0Ygyd4zfBefSxu4t+F5eyd5kwGBGsdi MILT8rc8S+PBv8QsKopQ6oPtJcLVmDQ7Of1iAx/aGawFJ4ZK9CgoYPjWNF5Swsx261NiA Aisor7QFZzORKUpnmeuzaFdBILiXF4ymFkaSx41Gk794GWIig7qoGROaIQUpJxjV+3F9V /y83hG3tn+Z5yd5OMg4rMJtGfikp3MY+qC7dSRQ25WsbdBBr7bD8qYyRm2bdxpjHRgw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794470295; h=DMARC-Filter:DKIM-Signature:X-RM-TagInfo:X-RM-SPAM-FLAG:Received: X-RM-TRANSID:X-RM-TagInfo:X-RM-SPAM-FLAG:Received:X-RM-TRANSID:From: To:Cc:Subject:Date:Message-ID:In-Reply-To:References:Content-Type: Content-Transfer-Encoding:MIME-Version; bh=owjWlmr1RZxKH+9vBGpAZpDwjzAy6fCU9wzGVyPy1fU=; b=1d893khOjuoVdCqNfrRAxATYZf6kNRW5TKiP/Z9km2qpB0QgUW4RvjAtiC5bnrhDO9Q7 su2JC4B62B67F5IjF4Pheas3FYQVs2z/DO8IOaJX2Vr+fSz/xGdiv2LrRoNUL+yXfqbRo v6wKMbvLHOVSo4sNOB/qoaqntWDSrB40pyIh7r70PjpxLgjk4p3J5GdOQdVHUpfXxjcSl lq4YA5DULUbrOYhEePnkIemVdcqndYDwqT8kox+bs/gFdu/w4Lb6Doqva2iccmEeMwqfh 9cwKOKAwEnYtP/PCtYnH2/bSgnWXxPp3429kEywqUydJ6/7RBiYf0prvPkHzrpUoEzw== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=cmss.chinamobile.com; spf=pass smtp.mailfrom=cmss.chinamobile.com; dkim=pass header.d=cmss.chinamobile.com header.i=@cmss.chinamobile.com header.a=rsa-sha256 header.s=default header.b=ApG+FbZK; arc=none smtp.remote-ip=111.22.67.139 X-Received: from cmccmta6.chinamobile.com (cmccmta6.chinamobile.com [111.22.67.139]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F0854606A321; Thu, 12 Nov 2026 07:58:11 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org F0854606A321 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=cmss.chinamobile.com X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=cmss.chinamobile.com X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cmss.chinamobile.com; s=default; l=0; h=from:subject:message-id:to:cc:mime-version; bh=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=; b=ApG+FbZKloocp0D3HIoLNqMTIFuy5z+Pbz178jxh0JcZ8vbMtiTvEA71QTAxHz5rql7Zzn6w34kJu Amr95cRsh0+F/rin4+WNN0ivt2oIxp2yib9MtnjsS6BXArMg89y6Ww6o456ZebCzeMqy6jdNQcvxlY iyqpWR/RkB9kOogc= X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from spf.mail.chinamobile.com (unknown[10.188.0.87]) by rmmx-syy-dmz-app01-12001 (RichMail) with SMTP id 2ee16af571901d7-bb76e; Thu, 12 Nov 2026 15:58:10 +0800 (CST) X-RM-TRANSID: 2ee16af571901d7-bb76e X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 X-Received: from [198.18.0.6] (unknown[223.108.79.101]) by rmsmtp-syy-appsvr02-12002 (RichMail) with SMTP id 2ee26af57191086-f859b; Thu, 12 Nov 2026 15:58:10 +0800 (CST) X-RM-TRANSID: 2ee26af57191086-f859b X-Cc: Hangbin Liu <liuhangbin@kylinos.cn>, hangbin.liu@linux.dev, dsahern@kernel.org, idosch@nvidia.com, shuah@kernel.org, davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, linux-kselftest@vger.kernel.org, yana06070@163.com X-In-Reply-To: <20261110024123.535210-1-jinli@lanxincomputing.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