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>] [day] [month] [year] [list]
Message-ID: <201606080850.bJmQ2YrP%fengguang.wu@intel.com>
Date:	Wed, 8 Jun 2016 08:12:53 +0800
From:	kbuild test robot <fengguang.wu@...el.com>
To:	unlisted-recipients:; (no To-header on input)
Cc:	kbuild-all@...org, linux-kernel@...r.kernel.org,
	tipbuild@...or.com, "H. Peter Anvin" <hpa@...ux.intel.com>
Subject: [tip:x86/asm 11/12] arch/x86/include/asm/archrandom.h:95:20: error:
 redefinition of 'arch_get_random_long'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git x86/asm
head:   8d0d5a8abd88fa9671867b8b8ab4ee61b85c0c81
commit: b0bdba9825feefa46998f29225736ef9bd77bd2e [11/12] x86, asm: Use CC_SET()/CC_OUT() and static_cpu_has() in archrandom.h
config: x86_64-randconfig-s2-06080621 (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
        git checkout b0bdba9825feefa46998f29225736ef9bd77bd2e
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:95:20: error: redefinition of 'arch_get_random_long'
    static inline bool arch_get_random_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:98:20: note: previous definition of 'arch_get_random_long' was here
    static inline bool arch_get_random_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:100:20: error: redefinition of 'arch_get_random_int'
    static inline bool arch_get_random_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:102:20: note: previous definition of 'arch_get_random_int' was here
    static inline bool arch_get_random_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:105:20: error: redefinition of 'arch_get_random_seed_long'
    static inline bool arch_get_random_seed_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:110:20: note: previous definition of 'arch_get_random_seed_long' was here
    static inline bool arch_get_random_seed_long(unsigned long *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/kernel/cpu/common.c:21:0:
>> arch/x86/include/asm/archrandom.h:110:20: error: redefinition of 'arch_get_random_seed_int'
    static inline bool arch_get_random_seed_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~
   In file included from arch/x86/include/asm/stackprotector.h:43:0,
                    from arch/x86/kernel/cpu/common.c:18:
   include/linux/random.h:114:20: note: previous definition of 'arch_get_random_seed_int' was here
    static inline bool arch_get_random_seed_int(unsigned int *v)
                       ^~~~~~~~~~~~~~~~~~~~~~~~

vim +/arch_get_random_long +95 arch/x86/include/asm/archrandom.h

    89	}
    90	
    91	/* Conditional execution based on CPU type */
    92	#define arch_has_random()	static_cpu_has(X86_FEATURE_RDRAND)
    93	#define arch_has_random_seed()	static_cpu_has(X86_FEATURE_RDSEED)
    94	
  > 95	static inline bool arch_get_random_long(unsigned long *v)
    96	{
    97		return arch_has_random() ? rdrand_long(v) : false;
    98	}
    99	
 > 100	static inline bool arch_get_random_int(unsigned int *v)
   101	{
   102		return arch_has_random() ? rdrand_int(v) : false;
   103	}
   104	
 > 105	static inline bool arch_get_random_seed_long(unsigned long *v)
   106	{
   107		return arch_has_random_seed() ? rdseed_long(v) : false;
   108	}
   109	
 > 110	static inline bool arch_get_random_seed_int(unsigned int *v)
   111	{
   112		return arch_has_random_seed() ? rdseed_int(v) : false;
   113	}

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Download attachment ".config.gz" of type "application/octet-stream" (26276 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ