lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1ef3a7b9-5172-9f7a-01fa-4866e765fbbe@google.com>
Date:   Tue, 12 Jun 2018 13:39:54 -0700
From:   Jayant Chowdhary <jchowdhary@...gle.com>
To:     Randy Dunlap <rdunlap@...radead.org>,
        LKML <linux-kernel@...r.kernel.org>
Cc:     linux-kbuild <linux-kbuild@...r.kernel.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        kernel-team@...roid.com
Subject: Re: uapi headers userspace build results

Hi Randy,

On 06/11/2018 10:49 PM, Randy Dunlap wrote:
> Hi,
> 
> Here is what I have so far.  It begins with a makefile and some
> template files that are added to.  There's a good bit of Perl also.
> 
> I put all of these files in tools/uapi/ and run them from there.
> 
> There is one .c file generated for each .h file in builddir/usr/include
> (O=builddir).
> 

Thanks for this! I wrote a small Makefile (uapi-compile.mk) which I'd put in
tools/build (I can change this to tools/uapi, if that is more apt).

uapi-compile.mk straight-away compiles the uapi headers, without pulling them
into any generated c source files. It may also be invoked with an environment
variable 'UAPI_DIR' specifying the directory, for which the user would like to
compile headers. This way we can test a directory at a time as well. In your
opinion, would this be simpler to have rather than having to auto-generate c
source files including each uapi header and also autog-enerating the make
targets? I feel like this approach would make maintaining these makefiles/
scripts easier as well.

> Out of 889 header files, I see 45 errors.  That is better than I expected.
> 
> The makefiles and scripts are attached (tar), as well as the output (I used
> 'make -ik' so that make would keep going after errors and attempt to build
> all target files).
> 
> have fun!
> 

I did a 'make ARCH=arm64 headers_install' from the kernel source's root, and
then a 'make -kf uapi-compile.mk all > build.log 2>&1' to compile all the
headers. Out of 864 headers, I see 20 compilation failures.

I'm attaching uapi-compile.mk and the build.log file along.

Thanks,
Jayant

View attachment "uapi-compile.mk" of type "text/x-makefile" (1196 bytes)

View attachment "build.log" of type "text/x-log" (250857 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ