lkml.org 
[lkml]   [2015]   [Nov]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 7/7] Create generated/random_init.h, used by random driver
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
[unhandled content-type:application/octet-stream]
\
 
 \ /
  Last update: 2015-11-07 17:21    [W:0.113 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site