Subject: Re: [PATCH v2 1/3] security: Create "kernel hardening" config area 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> From: Alexander Popov Message-ID: <1f6b75d7-94d0-4ae8-f9ef-00528381ee4e@linux.com> Date: Fri, 19 Apr 2019 22:15:06 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit To: Kees Cook , Masahiro Yamada Cc: 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 List-ID: On 16.04.2019 16:56, Kees Cook wrote: > 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. :) Hi! I've sent this patch separately to LKML: https://lore.kernel.org/lkml/1555669773-9766-1-git-send-email-alex.popov@linux.com/T/#u Best regards, Alexander