Re: [RFC PATCH] kbuild: re-implement detection of CONFIG options leaked to user-space

2019-08-08 Thread Christoph Hellwig
On Tue, Aug 06, 2019 at 11:00:19AM +0200, Arnd Bergmann wrote: > > I was playing with sed yesterday, but the resulted code might be unreadable. > > > > Sed scripts tend to be somewhat unreadable. > > I just wondered which language is appropriate for this? > > Maybe perl, or what else? I am not good

Re: [RFC PATCH] kbuild: re-implement detection of CONFIG options leaked to user-space

2019-08-06 Thread Masahiro Yamada
Hi Arnd, On Tue, Aug 6, 2019 at 6:00 PM Arnd Bergmann wrote: > > On Tue, Aug 6, 2019 at 6:38 AM Masahiro Yamada > wrote: > > > > I was playing with sed yesterday, but the resulted code might be unreadable. > > > > Sed scripts tend to be somewhat unreadable. > > I just wondered which language is

Re: [RFC PATCH] kbuild: re-implement detection of CONFIG options leaked to user-space

2019-08-06 Thread Arnd Bergmann
On Tue, Aug 6, 2019 at 6:38 AM Masahiro Yamada wrote: > > I was playing with sed yesterday, but the resulted code might be unreadable. > > Sed scripts tend to be somewhat unreadable. > I just wondered which language is appropriate for this? > Maybe perl, or what else? I am not good at perl, though

[RFC PATCH] kbuild: re-implement detection of CONFIG options leaked to user-space

2019-08-05 Thread Masahiro Yamada
scripts/headers_check.pl can detect references to CONFIG options in exported headers, but it has been disabled for more than a decade. Reverting commit 7e3fa5614117 ("kbuild: drop check for CONFIG_ in headers_check") would emit the following warnings for headers_check on x86: usr/include/mtd/ubi-