Received: from list by lists.gnu.org with archive (Exim 4.71) id 1e0UhR-0003p9-Ab for mharc-grub-devel@gnu.org; Fri, 06 Oct 2017 11:38:05 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48869) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e0UhO-0003om-MQ for grub-devel@gnu.org; Fri, 06 Oct 2017 11:38:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e0UhL-0007UQ-Is for grub-devel@gnu.org; Fri, 06 Oct 2017 11:38:02 -0400 Received: from aserp1040.oracle.com ([141.146.126.69]:37425) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1e0UhL-0007Sf-9G for grub-devel@gnu.org; Fri, 06 Oct 2017 11:37:59 -0400 Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id v96FbtDP000379 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Oct 2017 15:37:56 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id v96FbtTq031014 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 6 Oct 2017 15:37:55 GMT Received: from abhmp0013.oracle.com (abhmp0013.oracle.com [141.146.116.19]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id v96FbtFs030870; Fri, 6 Oct 2017 15:37:55 GMT Received: from dhcp-amer-vpn-adc-anyconnect-10-154-145-151.vpn.oracle.com (/10.154.145.151) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 06 Oct 2017 08:37:54 -0700 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: [PATCH] parser: Remove escape from the state transitions From: Eric Snowberg In-Reply-To: <20171006144735.GB2075@router-fw-old.local.net-space.pl> Date: Fri, 6 Oct 2017 09:37:54 -0600 Cc: phcoder@gmail.com, daniel.kiper@oracle.com Content-Transfer-Encoding: quoted-printable Message-Id: <2118C79B-07C9-4C38-9BEF-99A9AFDF68DB@oracle.com> References: <1496182072-146693-1-git-send-email-eric.snowberg@oracle.com> <20171006144735.GB2075@router-fw-old.local.net-space.pl> To: The development of GNU GRUB X-Mailer: Apple Mail (2.3124) X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] [fuzzy] X-Received-From: 141.146.126.69 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 06 Oct 2017 15:38:03 -0000 > On Oct 6, 2017, at 8:47 AM, Daniel Kiper wrote: >=20 > On Tue, May 30, 2017 at 04:07:52PM -0600, Eric Snowberg wrote: >> Remove GRUB_PARSER_STATE_ESC with state GRUB_PARSER_STATE_TEXT from >> the list of not allowed characters. >=20 > Once again, NACK for this patch. I explained why earlier but... >=20 >> This fixes a problem where a properly escaped comma is in the disk = path. >>=20 >> For example: /pci@306/pci@1/LSI,mrsas@0/disk@0:a >>=20 >> During grub install, the search.fs_uuid is correctly stored in the >> core.img. >>=20 >> As seen here: >>=20 >> 001e380: 7365 6172 6368 2e66 735f 7575 6964 2039 search.fs_uuid 9 >> 001e390: 6462 6137 6333 362d 6431 6432 2d34 6163 dba7c36-d1d2-4ac >> 001e3a0: 642d 6135 3037 2d30 3634 6132 3462 3538 d-a507-064a24b58 >> 001e3b0: 3666 3420 726f 6f74 2069 6565 6531 3237 6f4 root ieee127 >> 001e3c0: 352f 2f70 6369 4033 3036 2f70 6369 4031 5//pci@306/pci@1 >> 001e3d0: 2f4c 5349 5c2c 6d72 7361 7340 302f 6469 /LSI\,mrsas@0/di >> 001e3e0: 736b 4030 3a61 200a 7365 7420 7072 6566 sk@0:a .set pref >> 001e3f0: 6978 3d28 2472 6f6f 7429 272f 6772 7562 ix=3D($root)'/grub >> 001e400: 3227 0a00 0000 0000 0000 0003 0000 0010 2'.............. >> 001e410: 2f67 7275 6232 0000 /grub2.. >>=20 >> Before this change the following args would be sent to >> grub_cmd_do_search: >>=20 >> key: 9dba7c36-d1d2-4acd-a507-064a24b586f4 >> var: root >> hint: ieee1275//pci@306/pci@1/LSI,mrsas@0/disk@0:a >=20 > ...because hint should be quoted in core.img using double quotes or = even single quotes... > Or every control char should be escaped. Normal shell rules apply = here. >=20 Hints are written during the install into the core.img. Once the system = boots, the parser is used to retrieve information from the core.img. = Currently the parser will strip double quotes, single quotes and = escapes. So I don=E2=80=99t understand how you recommend fixing this = then.