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: <202307271008.RbzxDGux-lkp@intel.com>
Date:   Thu, 27 Jul 2023 10:24:30 +0800
From:   kernel test robot <lkp@...el.com>
To:     LeoLiu-oc <LeoLiu-oc@...oxin.com>, olivia@...enic.com,
        herbert@...dor.apana.org.au, jiajie.ho@...rfivetech.com,
        conor.dooley@...rochip.com, martin@...ser.cx, mmyangfl@...il.com,
        jenny.zhang@...rfivetech.com, linux-kernel@...r.kernel.org,
        linux-crypto@...r.kernel.org
Cc:     llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
        leoliu@...oxin.com, CobeChen@...oxin.com, YunShen@...oxin.com,
        TonyWWang@...oxin.com, leoliu-oc <leoliu-oc@...oxin.com>
Subject: Re: [PATCH] hwrng: add Zhaoxin HW RNG driver

Hi LeoLiu-oc,

kernel test robot noticed the following build errors:

[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on char-misc/char-misc-next char-misc/char-misc-linus herbert-cryptodev-2.6/master linus/master v6.5-rc3 next-20230726]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/LeoLiu-oc/hwrng-add-Zhaoxin-HW-RNG-driver/20230726-193710
base:   char-misc/char-misc-testing
patch link:    https://lore.kernel.org/r/20230726113553.1965627-1-LeoLiu-oc%40zhaoxin.com
patch subject: [PATCH] hwrng: add Zhaoxin HW RNG driver
config: i386-randconfig-i014-20230726 (https://download.01.org/0day-ci/archive/20230727/202307271008.RbzxDGux-lkp@intel.com/config)
compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07)
reproduce: (https://download.01.org/0day-ci/archive/20230727/202307271008.RbzxDGux-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202307271008.RbzxDGux-lkp@intel.com/

All errors (new ones prefixed by >>):

>> drivers/char/hw_random/zhaoxin-rng.c:58:2: error: register %rcx is only available in 64-bit mode
           "movq %0, %%rcx\n"
           ^
   <inline asm>:1:13: note: instantiated into assembly here
           movq %eax, %rcx
                      ^~~~
>> drivers/char/hw_random/zhaoxin-rng.c:59:3: error: register %rdx is only available in 64-bit mode
           "movq %1, %%rdx\n"
            ^
   <inline asm>:2:12: note: instantiated into assembly here
   movq %ecx, %rdx
              ^~~~
>> drivers/char/hw_random/zhaoxin-rng.c:60:3: error: register %rdi is only available in 64-bit mode
           "movq %2, %%rdi\n"
            ^
   <inline asm>:3:12: note: instantiated into assembly here
   movq %edx, %rdi
              ^~~~
   3 errors generated.


vim +58 drivers/char/hw_random/zhaoxin-rng.c

    54	
    55	static inline int rep_xstore(size_t size, size_t factor, void *result)
    56	{
    57		__asm__ __volatile__ (
  > 58		"movq %0, %%rcx\n"
  > 59		"movq %1, %%rdx\n"
  > 60		"movq %2, %%rdi\n"
    61		".byte 0xf3, 0x0f, 0xa7, 0xc0"
    62		:
    63		: "r"(size), "r"(factor), "r"(result)
    64		: "%rcx", "%rdx", "%rdi", "memory");
    65	
    66		return 0;
    67	}
    68	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ