tree:
https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git keys-next
head: 8d1b9386960784b981ccfabe45f269eba871876a
commit: f22998a0de8af7f28916c3a7f4c4c01232fab1c2 [1/2] security/keys: rewrite big_key
crypto to use library interface
config: x86_64-fedora-25 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout f22998a0de8af7f28916c3a7f4c4c01232fab1c2
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: lib/crypto/chacha20poly1305.o: in function `chacha_crypt':
> include/crypto/chacha.h:92: undefined reference to
`chacha_crypt_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`poly1305_init':
> include/crypto/poly1305.h:67: undefined reference to
`poly1305_init_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`poly1305_update':
> include/crypto/poly1305.h:81: undefined reference to
`poly1305_update_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`chacha_crypt':
> include/crypto/chacha.h:92: undefined reference to
`chacha_crypt_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`poly1305_update':
> include/crypto/poly1305.h:81: undefined reference to
`poly1305_update_arch'
>> ld: include/crypto/poly1305.h:81: undefined
reference to `poly1305_update_arch'
>> ld: include/crypto/poly1305.h:81: undefined reference to
`poly1305_update_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_final':
> include/crypto/poly1305.h:92: undefined reference to
`poly1305_final_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`poly1305_update':
> include/crypto/poly1305.h:81: undefined reference to
`poly1305_update_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`chacha_init':
> include/crypto/chacha.h:78: undefined reference to
`chacha_init_arch'
> ld: include/crypto/chacha.h:78: undefined reference to `chacha_init_arch'
ld: lib/crypto/chacha20poly1305.o: in function `hchacha_block':
> include/crypto/chacha.h:49: undefined reference to
`hchacha_block_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`chacha_init':
> include/crypto/chacha.h:78: undefined reference to
`chacha_init_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`chacha_crypt':
> include/crypto/chacha.h:92: undefined reference to
`chacha_crypt_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`poly1305_init':
> include/crypto/poly1305.h:67: undefined reference to
`poly1305_init_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`poly1305_update':
> include/crypto/poly1305.h:81: undefined reference to
`poly1305_update_arch'
>> ld: include/crypto/poly1305.h:81: undefined
reference to `poly1305_update_arch'
>> ld: include/crypto/poly1305.h:81: undefined reference to
`poly1305_update_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_final':
> include/crypto/poly1305.h:92: undefined reference to
`poly1305_final_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`chacha_crypt':
> include/crypto/chacha.h:92: undefined reference to
`chacha_crypt_arch'
ld: lib/crypto/chacha20poly1305.o: in function
`poly1305_update':
include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: lib/crypto/chacha20poly1305.o: in function `chacha_init':
include/crypto/chacha.h:78: undefined reference to `chacha_init_arch'
ld: include/crypto/chacha.h:78: undefined reference to `chacha_init_arch'
ld: lib/crypto/chacha20poly1305.o: in function `chacha_crypt':
include/crypto/chacha.h:92: undefined reference to `chacha_crypt_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_init':
include/crypto/poly1305.h:67: undefined reference to `poly1305_init_arch'
ld: lib/crypto/chacha20poly1305.o: in function `chacha_crypt':
include/crypto/chacha.h:92: undefined reference to `chacha_crypt_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_update':
include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_final':
include/crypto/poly1305.h:92: undefined reference to `poly1305_final_arch'
ld: lib/crypto/chacha20poly1305.o: in function `chacha_crypt':
include/crypto/chacha.h:92: undefined reference to `chacha_crypt_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_final':
include/crypto/poly1305.h:92: undefined reference to `poly1305_final_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_update':
include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: include/crypto/poly1305.h:81: undefined reference to `poly1305_update_arch'
ld: lib/crypto/chacha20poly1305.o: in function `poly1305_final':
include/crypto/poly1305.h:92: undefined reference to `poly1305_final_arch'
vim +67 include/crypto/poly1305.h
a1d93064094cc5 Ard Biesheuvel 2019-11-08 63
a1d93064094cc5 Ard Biesheuvel 2019-11-08 64 static inline void poly1305_init(struct
poly1305_desc_ctx *desc, const u8 *key)
a1d93064094cc5 Ard Biesheuvel 2019-11-08 65 {
a1d93064094cc5 Ard Biesheuvel 2019-11-08 66 if
(IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305))
a1d93064094cc5 Ard Biesheuvel 2019-11-08 @67 poly1305_init_arch(desc, key);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 68 else
a1d93064094cc5 Ard Biesheuvel 2019-11-08 69 poly1305_init_generic(desc, key);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 70 }
a1d93064094cc5 Ard Biesheuvel 2019-11-08 71
a1d93064094cc5 Ard Biesheuvel 2019-11-08 72 void poly1305_update_arch(struct
poly1305_desc_ctx *desc, const u8 *src,
a1d93064094cc5 Ard Biesheuvel 2019-11-08 73 unsigned int nbytes);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 74 void poly1305_update_generic(struct
poly1305_desc_ctx *desc, const u8 *src,
a1d93064094cc5 Ard Biesheuvel 2019-11-08 75 unsigned int nbytes);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 76
a1d93064094cc5 Ard Biesheuvel 2019-11-08 77 static inline void poly1305_update(struct
poly1305_desc_ctx *desc,
a1d93064094cc5 Ard Biesheuvel 2019-11-08 78 const u8 *src, unsigned int nbytes)
a1d93064094cc5 Ard Biesheuvel 2019-11-08 79 {
a1d93064094cc5 Ard Biesheuvel 2019-11-08 80 if
(IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305))
a1d93064094cc5 Ard Biesheuvel 2019-11-08 @81 poly1305_update_arch(desc, src, nbytes);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 82 else
a1d93064094cc5 Ard Biesheuvel 2019-11-08 83 poly1305_update_generic(desc, src,
nbytes);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 84 }
a1d93064094cc5 Ard Biesheuvel 2019-11-08 85
a1d93064094cc5 Ard Biesheuvel 2019-11-08 86 void poly1305_final_arch(struct
poly1305_desc_ctx *desc, u8 *digest);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 87 void poly1305_final_generic(struct
poly1305_desc_ctx *desc, u8 *digest);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 88
a1d93064094cc5 Ard Biesheuvel 2019-11-08 89 static inline void poly1305_final(struct
poly1305_desc_ctx *desc, u8 *digest)
a1d93064094cc5 Ard Biesheuvel 2019-11-08 90 {
a1d93064094cc5 Ard Biesheuvel 2019-11-08 91 if
(IS_ENABLED(CONFIG_CRYPTO_ARCH_HAVE_LIB_POLY1305))
a1d93064094cc5 Ard Biesheuvel 2019-11-08 @92 poly1305_final_arch(desc, digest);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 93 else
a1d93064094cc5 Ard Biesheuvel 2019-11-08 94 poly1305_final_generic(desc, digest);
a1d93064094cc5 Ard Biesheuvel 2019-11-08 95 }
a1d93064094cc5 Ard Biesheuvel 2019-11-08 96
:::::: The code at line 67 was first introduced by commit
:::::: a1d93064094cc5e24d64e35cf093e7191d0c9344 crypto: poly1305 - expose
init/update/final library interface
:::::: TO: Ard Biesheuvel <ardb(a)kernel.org>
:::::: CC: Herbert Xu <herbert(a)gondor.apana.org.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org