Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp154708pxk; Tue, 22 Sep 2020 22:32:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSbLxHoz4WBvfLY5biU4PK1Nl8s9oJIJPfpThEi4lxdjYZPO6gnvVhgDWTAmSlWZx7+j6K X-Received: by 2002:a17:906:1115:: with SMTP id h21mr8677198eja.273.1600839147463; Tue, 22 Sep 2020 22:32:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600839147; cv=none; d=google.com; s=arc-20160816; b=UYvlfrh3nEoKEtaa5xi9qZyj5JyFo+AREJ0iGoj2W86+j+lyJTZvHF26rJrtZ92b93 DvR5FIh32it5SnMns5NrzA6d03Ywpp76Xtsi8dFfDtIlxyOkOkPW+OgU0RAt2+sxKn8t e8o9oKYQ3gu2j1f6tk4y8dq8D4c2ajveUTDqAZaWrCTj5xJu/BJZcpcOasXhKl7Rnz/m ue+MTiYvXouJTpe+ZVqT7U7QUkC9fex6Q7yaiBkm00tK0ZKraES/plpNiGIjb2zb+sX/ 6wOexStcr18GURwA2ewSa7pc81Xjij+KdEdC/zrUU79xY8IA40VwCWRz8Dh89VgaK/4V /KQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=R83Gd9XdX8aF1X2fefXv4B3QT1b7+TXEJOt2Ic7eass=; b=WbJoI2w2IjuhUfD09CZgecyQF6icJAIb/Qna1ZVIBVrVsVuZGdUAMtjVLR6FyvLYZz BmNGrUwufzE0oWNjKvJHKmzQ9Z133G/DOEgfc3M9puw6PVLk0dRyk8B97IQYPZTbcXuv BTSqZlOEJac4ay8fZnS+gig6e5b1uh9OkifXSJg4dCjcctogP9jm0crJWK51fZUtWCUH I64Y0nD9/NCeso1KRZrcn6crYWwT2WxrA4yDo/FjdHseBmAkR3ZQngl3rleElp54ExDs /F/zmROEXpsQ+/5RCDsHq5Jray8q9WAo0vwdRo3CO5k2hxJyfS+r3gvlND18fNoxfj1V H2GA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=blEgjPEA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w5si10786748eji.82.2020.09.22.22.32.03; Tue, 22 Sep 2020 22:32:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=blEgjPEA; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbgIWFaT (ORCPT + 99 others); Wed, 23 Sep 2020 01:30:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:52386 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbgIWFaT (ORCPT ); Wed, 23 Sep 2020 01:30:19 -0400 Received: from devnote2 (NE2965lan1.rev.em-net.ne.jp [210.141.244.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id F320121974; Wed, 23 Sep 2020 05:30:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600839018; bh=VKNf7pcVHn3Vk/qGB21QR1LCfAkRtjsm0TzWPXBtDtY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=blEgjPEAedKjmAk62c9zT7HCM9PoTgz2dpJ2gaIIb4vw66mcl/QvEg7CAF607B+IC sStIcZoPVG6WNvR2M6O8L3Q4qx/JNiNGZqU3sZtJa53gYNFgbhKIvWA0cXuSm1cmPi TZP9OJ99odeRqQJFXyvdCrQ7SJLuLgu1JFZc319w= Date: Wed, 23 Sep 2020 14:30:14 +0900 From: Masami Hiramatsu To: Masami Hiramatsu Cc: Steven Rostedt , LKML , Ingo Molnar Subject: Re: [PATCH 0/4] bootconfig: Fix a parser bug Message-Id: <20200923143014.6c904389a4b20fe904144d3f@kernel.org> In-Reply-To: <160068147328.1088739.7282405187565509762.stgit@devnote2> References: <160068147328.1088739.7282405187565509762.stgit@devnote2> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Steve, Thank you for merging previous 3 serieses! Could you also pick this series as urgent-fix branch? Thank you, On Mon, 21 Sep 2020 18:44:33 +0900 Masami Hiramatsu wrote: > Hi, > > Here are patches to fix 2 bugs in the parser. One issue happens > when a key has a siblings and the key repeated with brace after > sibling nodes. Another one is that the parser keeps tailing > spaces when we put a comment on the line. > > For example, the minimum example of the 1st issue is here; > > foo > bar > foo { buz } > > This should be parsed as > > foo.buz > bar > > But the bootconfig parser parses it as foo.buz (no bar node) > because foo->bar link is unlinked when the brace ("foo {") was > found. > > The second one is simpler, if we have > > foo = val # comment > > The value's space after the word was not removed. > > foo="val " > > But this also should be > > foo="val" > > If user needs tailing spaces, they can use quotes, e.g. > > foo = "val " # comment > > > Thank you, > > --- > > Masami Hiramatsu (4): > lib/bootconfig: Fix a bug of breaking existing tree nodes > lib/bootconfig: Fix to remove tailing spaces after value > tools/bootconfig: Add testcases for repeated key with brace > tools/bootconfig: Add testcase for tailing space > > > tools/bootconfig/test-bootconfig.sh | 25 +++++++++++++++++++++++++ > 1 file changed, 25 insertions(+) > > -- > Masami Hiramatsu (Linaro) -- Masami Hiramatsu