Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3209371yba; Tue, 16 Apr 2019 06:58:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzv+FKD2/HTRTi0sbyIjXI3J770eiPWXlrS9/ONbVnZmA9hBSXYh5h7ExLP80ocPm/qQS1J X-Received: by 2002:a17:902:801:: with SMTP id 1mr6932863plk.14.1555423083372; Tue, 16 Apr 2019 06:58:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555423083; cv=none; d=google.com; s=arc-20160816; b=mcVsvIe1ilenA9FjroI4+T7UtSHmislYvYI/Qiw1nh0lZMdnSiShLy3lygPX6Kf/my Q1wYfvWADQcmNnzW7ovAZJGzZ/Rpuh+A5aBbVZ2kf+60Y5SS6emrqRWdE0qvH6RmGD9+ ADtg0KKbzQa8g0QUZtLOthRmbIGj9Lutc9zzL3jVVB3KH0zKVsrCMX2DnjbT/awk8h++ sxe21qH7SGiO7ee0nAo/rxTDl+qB4eSfkyntf3opdt74Ek0EMfaf3Htzr9Lm7jCcNhTW BW8nEUU899hVIs53bnHGO9SLTjl3SWZ4yuqSMT/AuLA3eWbQzzRtXojuUFf78goyb7pL 7Ltg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=CEd+xSQR2LTimrj2aK/S3itZ61++AERxE8UnNX5os0Y=; b=V3M2duzyr39rO5OrRgvIDs0JteZbr/rcwvV9/FLMxiy118nOyHNZ5xKuWUKMHC8QXY Q/YFeYCdRhklrQTAQl0XTwipyzkzkCBYn3MsBRNS0qf2JqP71WILDe+y2hysRn6wdGyu KA6G67WbEr4RybMZqIUg4ro//lzh/8EnNi9xGKoxqh+t75lpqpDtYdWlZVW2Ffoeidxt djn6cqU4bwcMqLoWGYBXn5clHgXnqVKCGoWBcWibknGxyouFeBBiALxatE8MbjeMAImw MfiF+0yECaZJf1Fs/UCyHfuhnuae2ShHCor3Iwj1bzKN6zlZGCohF1PtA7YhDOZo01Aj /Dxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ec4hopwq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k4si46060679pgq.208.2019.04.16.06.57.47; Tue, 16 Apr 2019 06:58:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=Ec4hopwq; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729405AbfDPN5P (ORCPT + 99 others); Tue, 16 Apr 2019 09:57:15 -0400 Received: from mail-vs1-f67.google.com ([209.85.217.67]:38422 "EHLO mail-vs1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729305AbfDPN5P (ORCPT ); Tue, 16 Apr 2019 09:57:15 -0400 Received: by mail-vs1-f67.google.com with SMTP id s2so11587518vsi.5 for ; Tue, 16 Apr 2019 06:57:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=CEd+xSQR2LTimrj2aK/S3itZ61++AERxE8UnNX5os0Y=; b=Ec4hopwqJh3GcC677f1JmclbZ4Pes8vIBhxrL/B/Ep59Rx4l5qdNWVMadnJKaKL9bl xdFmKjNtHhI400/1ymPCYWCpmoMykZVbVDluBe2SJNaJYNQMb4Z0q2z1FUt9Ns37qpVn l/DymOybQbYTjKaD01N1LCOsg5wzsREjM/MzI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=CEd+xSQR2LTimrj2aK/S3itZ61++AERxE8UnNX5os0Y=; b=mOtFiKCZ7odHkB8gAg4Jhg10UtnLi/HEhYw7UXvPuoSsG6jmmU8salZEfyoVrac5Ml kyPeyBP7Zrdx7cquu0W5BRnVoJmr6HUKtqdlt3JgsXrMZmqt7JozB7ty0JLuYyYlCwVl NGlXZ+/869Cr0GnuDWoWBNFLGd9DwfO8SouBsSVrjUlmJP4VdTNSU0J9rt8fiEaqv2eB cgFi9Znx/Y5ih5gABIV8Gjz1IDKvKSRmbPjAvuEpHSwDSu2AnzVnXZl2s/DAB5zMjNg8 Q1Y/m1pIQlcNkQ7Ks/+NwBxT7wzEhm+zJSF5RYpKK3Wlm4mAtaEKnSBjtndgxWleK6zj Vnqw== X-Gm-Message-State: APjAAAWhJLmuwF//fd0e9rbAq3l54hPkRkbHY0lA2vVm+Q0BmTK7E9zo zTAf7eAjnZqZX2BA2POn7zWdpRdIB68= X-Received: by 2002:a67:edc8:: with SMTP id e8mr43836261vsp.190.1555423030060; Tue, 16 Apr 2019 06:57:10 -0700 (PDT) Received: from mail-ua1-f45.google.com (mail-ua1-f45.google.com. [209.85.222.45]) by smtp.gmail.com with ESMTPSA id q190sm20591306vkd.50.2019.04.16.06.57.08 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 16 Apr 2019 06:57:08 -0700 (PDT) Received: by mail-ua1-f45.google.com with SMTP id b8so6735903uaq.7 for ; Tue, 16 Apr 2019 06:57:08 -0700 (PDT) X-Received: by 2002:ab0:2f8:: with SMTP id 111mr43897232uah.123.1555423027609; Tue, 16 Apr 2019 06:57:07 -0700 (PDT) MIME-Version: 1.0 References: <20190411180117.27704-1-keescook@chromium.org> <20190411180117.27704-2-keescook@chromium.org> <947dbe9a-3444-6fe4-9f79-f8f210da8960@linux.com> <450e21b0-606a-f19a-a4fe-f7508d6a215c@linux.com> In-Reply-To: <450e21b0-606a-f19a-a4fe-f7508d6a215c@linux.com> From: Kees Cook Date: Tue, 16 Apr 2019 08:56:55 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2 1/3] security: Create "kernel hardening" config area To: Alexander Popov Cc: Masahiro Yamada , Alexander Potapenko , James Morris , Nick Desaulniers , Kostya Serebryany , Dmitry Vyukov , Sandeep Patil , Laura Abbott , Randy Dunlap , Michal Marek , Emese Revfy , "Serge E. Hallyn" , Kernel Hardening , linux-security-module , linux-kbuild , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 16, 2019 at 8:55 AM Alexander Popov wrote: > > On 16.04.2019 7:02, Kees Cook wrote: > > On Mon, Apr 15, 2019 at 11:44 AM Alexander Popov wrote: > >> > >> What do you think about some separator between memory initialization options and > >> CONFIG_CRYPTO? > > > > This was true before too > > Hm, yes, it's a generic behavior - there is no any separator at 'endmenu' and > config options stick together. > > I've created a patch to fix that. What do you think about it? > I can send it to LKML separately. > > > From 50bf59d30fafcdebb3393fb742e1bd51e7d2f2da Mon Sep 17 00:00:00 2001 > From: Alexander Popov > Date: Tue, 16 Apr 2019 16:09:40 +0300 > Subject: [PATCH 1/1] kconfig: Terminate menu blocks with a newline in the > generated config > > Currently menu blocks start with a pretty header but end with nothing in > the generated config. So next config options stick together with the > options from the menu block. > > Let's terminate menu blocks with a newline in the generated config. > > Signed-off-by: Alexander Popov > --- > scripts/kconfig/confdata.c | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c > index 08ba146..1459153 100644 > --- a/scripts/kconfig/confdata.c > +++ b/scripts/kconfig/confdata.c > @@ -888,6 +888,8 @@ int conf_write(const char *name) > if (menu->next) > menu = menu->next; > else while ((menu = menu->parent)) { > + if (!menu->sym && menu_is_visible(menu)) > + fprintf(out, "\n"); > if (menu->next) { > menu = menu->next; > break; Seems fine to me. I defer to Masahiro, though. :) -- Kees Cook