From nobody Wed Dec 14 18:57:59 2022 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NXPkw0Fbdz4kK1d for ; Wed, 14 Dec 2022 18:58:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NXPkv2xzsz3sr9 for ; Wed, 14 Dec 2022 18:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671044279; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=POvmL6elRRwwVLEtiWxJieI3ClwbAB7Fsw2p2M8Cdlo=; b=vjhQcViFXC4wIo8nZHyL/B6cEqDn/lUoZq3Sn070q3qUBHu2WDuIB0IWskaONFvURXBJpI YWXbZKDDruFMmxan/+L5Kke8o5fsyWs4AsLLCrJBq5P+2ZvxwgQ7fbSOObQ5aLzI5kUFcJ 3IEoENFNMl5fiKCkdvX4yVIoKIr/duqX/87g3mCT5NSY7I3/rvFfUQ7ZBodaabxEjvcErU AKqUa5o+x4p86e5QT+QcUMoFWzokyV2HCv7sXGgUzt9Y3MdEW80JlNiiUdtyDjzCEkBsAa Sr2qfGDtmUgR0ow+QOvDWlPigpMVpLFbuNwC0v8NQT3uiPW0Up+w/7q99rI74A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671044279; a=rsa-sha256; cv=none; b=IAta+bfwbpaLlYCGeSEOANuzwCgiIlOjS+fZnkc/k6svIEwQxE3t7jq0fu1yiSqVKpeF90 dZfV6JM2QUkHQsduPNqwjv5Oq2Eob1echaiCbcwjeQJEoPob/hUXoHGAVoDsydRS7LnD+L PYgGpVRbI9DgM6egnUpXB5/QojB3DcCJuLl3G8NO1HhuXztWDjC4EcO8T+cu88QbkdqTEJ UQ8IazWr5JmdsK6XBzfGREZ6J5gqWdTXXWwnM45rWSSPTlHGlEiz6FBQSk9Co0Ukeu7UAq jjX+SPkOtmPI+/7WEQQ2rYKTYxXZhhFLrOHMXotxkqtpBHmpL/zxWxT7sz77Kg== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NXPkv1mMCz14f1 for ; Wed, 14 Dec 2022 18:57:59 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2BEIvxZ9096024 for ; Wed, 14 Dec 2022 18:57:59 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2BEIvxIW096023 for bugs@FreeBSD.org; Wed, 14 Dec 2022 18:57:59 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 268378] parsing error in network.subr can result in infinite loop on bootup Date: Wed, 14 Dec 2022 18:57:59 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: conf X-Bugzilla-Version: 13.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: jyoung15@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D268378 --- Comment #1 from jyoung15@gmail.com --- Comment on attachment 238789 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238789 network.subr ifalias_af_common_handler patch >--- /etc/network.subr 2022-12-13 22:55:03.480523000 -0500 >+++ /etc/network.subr 2022-12-14 12:24:00.168988000 -0500 >@@ -1047,14 +1047,11 @@ > esac > done > # Process the last component if any. >- if [ -n "$_tmpargs}" ]; then >- case $_tmpargs in >- ${_af}\ *[0-9a-fA-F]-*) >+ if [ -n "$_tmpargs" ]; then >+ if expr "$_tmpargs" : ${_af}' \{1,\}[0-9a-fA-F.:]\{1,\}-[0= -9a-fA-F.:]\{1,\}/[0-9]\{1,\}' >/dev/null 2>&1; then > ifalias_af_common_handler $_if $_af $_action \ > `ifalias_expand_addr $_af $_action ${_tmpargs#${_a= f}\ }` >- ;; >- ${_af}\ *) >+ elif expr "$_tmpargs" : "${_af} " >/dev/null 2>&1; then > ${IFCONFIG_CMD} $_if $_tmpargs $_action && _ret=3D0 >- ;; >- esac >+ fi > fi > > return $_ret --=20 You are receiving this mail because: You are the assignee for the bug.=