From nobody Wed Jan 08 17:21:31 2025 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 4YSvpg4SDNz5kpBh for ; Wed, 08 Jan 2025 17:21:31 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSvpg0sw6z424S for ; Wed, 8 Jan 2025 17:21:31 +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=1736356891; 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; bh=fdn8kCih+cX1aC2B71FpPGjg4fzlN1cxFylEGO+Clrg=; b=G+S+SnYZ4RW1b31t2Ed5qyXt4ms1daa0vQHXUhNpyI9BPTptugH9IudjATws5Jpndl7qfI MZ2WMFupVnleuc+wduYtBHqfe0Indt7HM4QzvlIjelKP5aIBKG+qkZCuXXbAXmqYB687Vj y6pqPxAdWljCCdYYOJl5w8DwwWqPp1rXmmc3ird+XsmaJFvdOb1MAEtkqORNTtRP2Bb2Q8 sAmFN4Merd4WqpFYJUxTigcpJsGeqTBBib9jx8g0hbaM25QlendkDPMsirgsaBtj7UpFia OVkh2wUkKkOAO/Kwwu8t2fYrx14XgUtASKP7+wFabkKvYqqJ5OjOGdjWsp1FIQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736356891; a=rsa-sha256; cv=none; b=QoTuZMdltfCmJnHg/iPonWPwA/0Iwgq5fmlWGXgpedlYiKxr5aZXec7iplmHwy5G/32aEO EpsUv7tb1SbXvKrAAU7VWfZ6qrgCgaWBsA4q+y6Je40imvIEm9d1T/8osfy1LPPIve8U3Y Y3R2DDp6EI1ao+N9eXBOFT+ON1C6dCw6Xh9ZxmKEGa2UjP0Qe8ZNsfOFcpdo28p5P6m3Al cEC3+d9sBTIl2a91jqA3qqCSBUmHvtpjG/UicZ85avs7ph0woNMMLU057paZ4gbe4olEwj EXztNv70dinNTYX60Ur9enmyvBdqE3ebbT4zsy66mVlgqV4h7622jrihc8CqLg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YSvpg0T7Bz14v2 for ; Wed, 08 Jan 2025 17:21:31 +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 508HLUNd084961 for ; Wed, 8 Jan 2025 17:21:30 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 508HLU7k084960 for bugs@FreeBSD.org; Wed, 8 Jan 2025 17:21:30 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 283934] The jail.conf(5) parser crashes when expanding a multi-valued variable inside an other variable. Date: Wed, 08 Jan 2025 17:21:31 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: misc X-Bugzilla-Version: 14.2-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: crest@rlwinm.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" 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 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D283934 Bug ID: 283934 Summary: The jail.conf(5) parser crashes when expanding a multi-valued variable inside an other variable. Product: Base System Version: 14.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: misc Assignee: bugs@FreeBSD.org Reporter: crest@rlwinm.de The following jail.conf minimal reproducer snippet is enough to segfault jail(8) during parsing (e.g. when invoked as `jail -e $'\n'`): $x =3D "foo"; $x +=3D "bar"; $y +=3D "$x"; Instead of crashing jail(8) should either expand the multi-valued $x variab= le (with values joined by newlines) or at least refuse to expand multi-valued variables with a error message containing the configuration file path, line number, and a short description of the configuration error. --=20 You are receiving this mail because: You are the assignee for the bug.=