From: kbuild test robot <lkp@intel.com>
To: Sandy Harris <sandyinchina@gmail.com>
Cc: kbuild-all@01.org, "Theodore Ts\\\\'o" <tytso@mit.edu>,
Jason Cooper <jason@lakedaemon.net>,
"H. Peter Anvin" <hpa@zytor.com>, John Denker <jsd@av8n.com>,
linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org
Subject: Re: [PATCH 7/7] Create generated/random_init.h, used by random driver
Date: Sun, 8 Nov 2015 00:00:23 +0800 [thread overview]
Message-ID: <201511072334.5Wol1hVb%fengguang.wu@intel.com> (raw)
In-Reply-To: <1446906642-19372-7-git-send-email-sandyinchina@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 3962 bytes --]
Hi Sandy,
[auto build test ERROR on: char-misc/char-misc-testing]
[also build test ERROR on: v4.3 next-20151106]
url: https://github.com/0day-ci/linux/commits/Sandy-Harris/A-couple-of-generated-files/20151107-223540
config: sh-allyesconfig (attached as .config)
reproduce:
wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
make.cross ARCH=sh
All errors (new ones prefixed by >>):
>> scripts/gen_random.c:61:19: fatal error: stdio.h: No such file or directory
compilation terminated.
make[2]: *** [scripts/gen_random] Error 1
<stdin>:1229:2: warning: #warning syscall sched_setattr not implemented [-Wcpp]
<stdin>:1232:2: warning: #warning syscall sched_getattr not implemented [-Wcpp]
<stdin>:1235:2: warning: #warning syscall renameat2 not implemented [-Wcpp]
<stdin>:1238:2: warning: #warning syscall seccomp not implemented [-Wcpp]
<stdin>:1241:2: warning: #warning syscall getrandom not implemented [-Wcpp]
<stdin>:1244:2: warning: #warning syscall memfd_create not implemented [-Wcpp]
<stdin>:1247:2: warning: #warning syscall bpf not implemented [-Wcpp]
<stdin>:1250:2: warning: #warning syscall execveat not implemented [-Wcpp]
<stdin>:1298:2: warning: #warning syscall userfaultfd not implemented [-Wcpp]
<stdin>:1301:2: warning: #warning syscall membarrier not implemented [-Wcpp]
make[2]: Target '__build' not remade because of errors.
make[1]: *** [prepare0] Error 2
make[1]: Target 'prepare' not remade because of errors.
make: *** [sub-make] Error 2
vim +61 scripts/gen_random.c
06038f35 Sandy Harris 2015-11-07 45 * This is certainly done early enough and the data is random
06038f35 Sandy Harris 2015-11-07 46 * enough, but it is not necessarily secret enough.
06038f35 Sandy Harris 2015-11-07 47 *
06038f35 Sandy Harris 2015-11-07 48 * In some cases -- for example, a firewall machine that compiles
06038f35 Sandy Harris 2015-11-07 49 * its own kernel -- this alone might be enough to ensure secure
06038f35 Sandy Harris 2015-11-07 50 * initialisation, since only an enemy who already has root could
06038f35 Sandy Harris 2015-11-07 51 * discover this data. Of course even in those cases it should not
06038f35 Sandy Harris 2015-11-07 52 * be used alone, only as one layer of a defense in depth.
06038f35 Sandy Harris 2015-11-07 53 *
06038f35 Sandy Harris 2015-11-07 54 * In other cases -- a kernel that is compiled once then used in
06038f35 Sandy Harris 2015-11-07 55 * a Linux distro or installed on many devices -- this is likely
06038f35 Sandy Harris 2015-11-07 56 * of very little value. It complicates an attack somewhat, but
06038f35 Sandy Harris 2015-11-07 57 * it clearly will not stop a serious attacker and may not even
06038f35 Sandy Harris 2015-11-07 58 * slow them down much.
06038f35 Sandy Harris 2015-11-07 59 */
06038f35 Sandy Harris 2015-11-07 60
06038f35 Sandy Harris 2015-11-07 @61 #include <stdio.h>
06038f35 Sandy Harris 2015-11-07 62 #include <stdlib.h>
06038f35 Sandy Harris 2015-11-07 63 #include <unistd.h>
06038f35 Sandy Harris 2015-11-07 64 #include <fcntl.h>
06038f35 Sandy Harris 2015-11-07 65 #include <stdint.h>
06038f35 Sandy Harris 2015-11-07 66 #include <ctype.h>
06038f35 Sandy Harris 2015-11-07 67
06038f35 Sandy Harris 2015-11-07 68 /*
06038f35 Sandy Harris 2015-11-07 69 * Configuration information
:::::: The code at line 61 was first introduced by commit
:::::: 06038f35641185897feb14917d89d03fab1710ba Produces generated/random_init.h for random driver
:::::: TO: Sandy Harris <sandyinchina@gmail.com>
:::::: CC: 0day robot <fengguang.wu@intel.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 37373 bytes --]
next prev parent reply other threads:[~2015-11-07 16:01 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-07 14:30 [PATCH 1/7] A couple of generated files Sandy Harris
2015-11-07 14:30 ` [PATCH 2/7] Two new CONFIG options for the random(4) driver Sandy Harris
2015-11-07 14:30 ` [PATCH 3/7] Initialise pools randomly if CONFIG_RANDOM_INIT=y Sandy Harris
2015-11-07 16:54 ` Jason Cooper
2015-11-07 17:08 ` kbuild test robot
2015-11-07 14:30 ` [PATCH 4/7] Different version of driver using hash from AES-GCM Compiled if CONFIG_RANDOM_GCM=y Sandy Harris
2015-11-07 14:30 ` [PATCH 5/7] Conditionals for CONFIG_RANDOM_INIT and CONFIG_RANDOM_GCM Sandy Harris
2015-11-07 17:11 ` kbuild test robot
2015-11-07 14:30 ` [PATCH 6/7] Produces generated/random_init.h for random driver Sandy Harris
2015-11-07 14:30 ` [PATCH 7/7] Create generated/random_init.h, used by " Sandy Harris
2015-11-07 16:00 ` kbuild test robot [this message]
2015-11-07 21:18 ` kbuild test robot
2015-11-08 11:14 ` kbuild test robot
2015-11-07 16:53 ` [PATCH 1/7] A couple of generated files Jason Cooper
2015-11-07 18:50 ` Sandy Harris
2016-03-02 3:15 ` Sandy Harris
2015-11-07 17:01 ` Jason Cooper
2015-11-07 17:50 ` Sandy Harris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201511072334.5Wol1hVb%fengguang.wu@intel.com \
--to=lkp@intel.com \
--cc=hpa@zytor.com \
--cc=jason@lakedaemon.net \
--cc=jsd@av8n.com \
--cc=kbuild-all@01.org \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=sandyinchina@gmail.com \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®