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  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]
Date:   Sat, 19 Dec 2020 17:51:50 +0800
From:   kernel test robot <lkp@...el.com>
To:     Marco Chiappero <marco.chiappero@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Herbert Xu <herbert@...dor.apana.org.au>,
        Tomaszx Kowalik <tomaszx.kowalik@...el.com>,
        Giovanni Cabiddu <giovanni.cabiddu@...el.com>
Subject: drivers/crypto/qat/qat_common/qat_algs.c:483: undefined reference to
 `aes_expandkey'

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3644e2d2dda78e21edd8f5415b6d7ab03f5f54f3
commit: 5106dfeaeabea73d5132daab1d89d57b57fa98b7 crypto: qat - add AES-XTS support for QAT GEN4 devices
date:   8 days ago
config: i386-randconfig-m021-20201216 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5106dfeaeabea73d5132daab1d89d57b57fa98b7
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 5106dfeaeabea73d5132daab1d89d57b57fa98b7
        # save the attached .config to linux build tree
        make W=1 ARCH=i386 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   ld: drivers/crypto/qat/qat_common/qat_algs.o: in function `qat_alg_xts_reverse_key':
>> drivers/crypto/qat/qat_common/qat_algs.c:483: undefined reference to `aes_expandkey'


vim +483 drivers/crypto/qat/qat_common/qat_algs.c

   475	
   476	static void qat_alg_xts_reverse_key(const u8 *key_forward, unsigned int keylen,
   477					    u8 *key_reverse)
   478	{
   479		struct crypto_aes_ctx aes_expanded;
   480		int nrounds;
   481		u8 *key;
   482	
 > 483		aes_expandkey(&aes_expanded, key_forward, keylen);
   484		if (keylen == AES_KEYSIZE_128) {
   485			nrounds = 10;
   486			key = (u8 *)aes_expanded.key_enc + (AES_BLOCK_SIZE * nrounds);
   487			memcpy(key_reverse, key, AES_BLOCK_SIZE);
   488		} else {
   489			/* AES_KEYSIZE_256 */
   490			nrounds = 14;
   491			key = (u8 *)aes_expanded.key_enc + (AES_BLOCK_SIZE * nrounds);
   492			memcpy(key_reverse, key, AES_BLOCK_SIZE);
   493			memcpy(key_reverse + AES_BLOCK_SIZE, key - AES_BLOCK_SIZE,
   494			       AES_BLOCK_SIZE);
   495		}
   496	}
   497	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (32469 bytes)

Powered by blists - more mailing lists