Re: [PATCH 15/15] kbuild: compile test UAPI headers to ensure they are self-contained

2019-06-21 Thread Masahiro Yamada
On Sat, Jun 22, 2019 at 2:12 PM Masahiro Yamada wrote: > > On Sat, Jun 22, 2019 at 4:05 AM Arnd Bergmann wrote: > > > > On Tue, Jun 4, 2019 at 12:16 PM Masahiro Yamada > > wrote: > > > > > --- a/Makefile > > > +++ b/Makefile > > > @@ -1363,7 +1363,7 @@ CLEAN_DIRS += $(MODVERDIR) include/ksym >

Re: [PATCH 15/15] kbuild: compile test UAPI headers to ensure they are self-contained

2019-06-21 Thread Masahiro Yamada
On Sat, Jun 22, 2019 at 4:05 AM Arnd Bergmann wrote: > > On Tue, Jun 4, 2019 at 12:16 PM Masahiro Yamada > wrote: > > > --- a/Makefile > > +++ b/Makefile > > @@ -1363,7 +1363,7 @@ CLEAN_DIRS += $(MODVERDIR) include/ksym > > CLEAN_FILES += modules.builtin.modinfo > > > > # Directories & files r

Re: [PATCH 15/15] kbuild: compile test UAPI headers to ensure they are self-contained

2019-06-21 Thread Arnd Bergmann
On Tue, Jun 4, 2019 at 12:16 PM Masahiro Yamada wrote: > --- a/Makefile > +++ b/Makefile > @@ -1363,7 +1363,7 @@ CLEAN_DIRS += $(MODVERDIR) include/ksym > CLEAN_FILES += modules.builtin.modinfo > > # Directories & files removed with 'make mrproper' > -MRPROPER_DIRS += include/config usr/inclu

[PATCH 15/15] kbuild: compile test UAPI headers to ensure they are self-contained

2019-06-04 Thread Masahiro Yamada
Multiple people have suggested compile-testing UAPI headers to ensure they can be really included from user-space. "make headers_check" is obviously not enough to catch bugs, and we often leak references to kernel-space definition to user-space. The most recent patch I know is David Howells' work: