All of lore.kernel.org
 help / color / mirror / Atom feed
* gcm.c:undefined reference to `crypto_aead_setauthsize'
@ 2016-04-01 15:02 kbuild test robot
  2016-04-04 14:00 ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: kbuild test robot @ 2016-04-01 15:02 UTC (permalink / raw)
  To: Sabrina Dubroca; +Cc: kbuild-all, linux-kernel, Hannes Frederic Sowa

[-- Attachment #1: Type: text/plain, Size: 5190 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   6ddf37da05cd71bf9e43349d607e810b43c9008a
commit: c09440f7dcb304002dfced8c0fea289eb25f2da0 macsec: introduce IEEE 802.1AE driver
date:   3 weeks ago
config: x86_64-randconfig-s3-04012139 (attached as .config)
reproduce:
        git checkout c09440f7dcb304002dfced8c0fea289eb25f2da0
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   crypto/built-in.o: In function `gcm_enc_copy_hash':
>> gcm.c:(.text+0x278): undefined reference to `crypto_xor'
>> gcm.c:(.text+0x294): undefined reference to `scatterwalk_map_and_copy'
   crypto/built-in.o: In function `crypto_gcm_verify':
   gcm.c:(.text+0x2f7): undefined reference to `crypto_xor'
   gcm.c:(.text+0x313): undefined reference to `scatterwalk_map_and_copy'
>> gcm.c:(.text+0x321): undefined reference to `__crypto_memneq'
   crypto/built-in.o: In function `crypto_gcm_init_common':
>> gcm.c:(.text+0x58d): undefined reference to `scatterwalk_ffwd'
   gcm.c:(.text+0x6d7): undefined reference to `scatterwalk_ffwd'
   crypto/built-in.o: In function `crypto_rfc4106_crypt':
   gcm.c:(.text+0x7c9): undefined reference to `scatterwalk_map_and_copy'
   gcm.c:(.text+0x910): undefined reference to `scatterwalk_ffwd'
   gcm.c:(.text+0xa83): undefined reference to `scatterwalk_ffwd'
   crypto/built-in.o: In function `crypto_gcm_exit_tfm':
>> gcm.c:(.text+0xc46): undefined reference to `crypto_destroy_tfm'
   gcm.c:(.text+0xc52): undefined reference to `crypto_destroy_tfm'
   crypto/built-in.o: In function `crypto_rfc4106_exit_tfm':
   gcm.c:(.text+0xc72): undefined reference to `crypto_destroy_tfm'
   crypto/built-in.o: In function `crypto_rfc4106_init_tfm':
>> gcm.c:(.text+0xc9b): undefined reference to `crypto_spawn_tfm2'
   crypto/built-in.o: In function `crypto_gcm_init_tfm':
   gcm.c:(.text+0xd1e): undefined reference to `crypto_spawn_tfm2'
>> gcm.c:(.text+0xd5d): undefined reference to `crypto_spawn_tfm'
   gcm.c:(.text+0xdcc): undefined reference to `crypto_destroy_tfm'
   crypto/built-in.o: In function `crypto_gcm_setkey':
>> gcm.c:(.text+0xf3a): undefined reference to `crypto_ahash_setkey'
   crypto/built-in.o: In function `crypto_gcm_free':
>> gcm.c:(.text+0xf85): undefined reference to `crypto_drop_spawn'
   gcm.c:(.text+0xf91): undefined reference to `crypto_drop_spawn'
   crypto/built-in.o: In function `crypto_rfc4543_free':
   gcm.c:(.text+0xfb5): undefined reference to `crypto_drop_spawn'
   crypto/built-in.o: In function `crypto_gcm_create_common':
>> gcm.c:(.text+0x1007): undefined reference to `crypto_get_attr_type'
>> gcm.c:(.text+0x1057): undefined reference to `crypto_ahash_type'
>> gcm.c:(.text+0x105c): undefined reference to `crypto_find_alg'
>> gcm.c:(.text+0x10f3): undefined reference to `crypto_init_ahash_spawn'
   gcm.c:(.text+0x1114): undefined reference to `crypto_drop_spawn'
>> gcm.c:(.text+0x1134): undefined reference to `crypto_mod_put'
>> gcm.c:(.text+0x1169): undefined reference to `crypto_grab_skcipher'
   gcm.c:(.text+0x119e): undefined reference to `crypto_drop_spawn'
>> gcm.c:(.text+0x1287): undefined reference to `aead_register_instance'
   crypto/built-in.o: In function `crypto_gcm_base_create':
>> gcm.c:(.text+0x12bf): undefined reference to `crypto_attr_alg_name'
   gcm.c:(.text+0x12f1): undefined reference to `crypto_attr_alg_name'
   crypto/built-in.o: In function `crypto_gcm_create':
   gcm.c:(.text+0x139d): undefined reference to `crypto_attr_alg_name'
   crypto/built-in.o: In function `crypto_rfc4106_create':
   gcm.c:(.text+0x1460): undefined reference to `crypto_get_attr_type'
   gcm.c:(.text+0x14a3): undefined reference to `crypto_attr_alg_name'
>> gcm.c:(.text+0x1531): undefined reference to `crypto_grab_aead'
   gcm.c:(.text+0x155b): undefined reference to `crypto_drop_spawn'
   gcm.c:(.text+0x164d): undefined reference to `aead_register_instance'
   crypto/built-in.o: In function `crypto_rfc4543_create':
   gcm.c:(.text+0x1690): undefined reference to `crypto_get_attr_type'
   gcm.c:(.text+0x16d3): undefined reference to `crypto_attr_alg_name'
   gcm.c:(.text+0x1761): undefined reference to `crypto_grab_aead'
   gcm.c:(.text+0x178b): undefined reference to `crypto_drop_spawn'
   gcm.c:(.text+0x187d): undefined reference to `aead_register_instance'
   crypto/built-in.o: In function `crypto_rfc4106_setauthsize':
>> gcm.c:(.text+0x18cd): undefined reference to `crypto_aead_setauthsize'
   crypto/built-in.o: In function `crypto_rfc4543_setauthsize':
   gcm.c:(.text+0x18f3): undefined reference to `crypto_aead_setauthsize'
   crypto/built-in.o: In function `crypto_rfc4106_setkey':
>> gcm.c:(.text+0x194c): undefined reference to `crypto_aead_setkey'
   crypto/built-in.o: In function `crypto_rfc4543_setkey':
   gcm.c:(.text+0x19bc): undefined reference to `crypto_aead_setkey'
   crypto/built-in.o: In function `crypto_rfc4543_exit_tfm':
   gcm.c:(.text+0x19f2): undefined reference to `crypto_destroy_tfm'

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

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 27054 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcm.c:undefined reference to `crypto_aead_setauthsize'
  2016-04-01 15:02 gcm.c:undefined reference to `crypto_aead_setauthsize' kbuild test robot
@ 2016-04-04 14:00 ` Herbert Xu
  2016-04-05  7:15   ` Li, Philip
  0 siblings, 1 reply; 4+ messages in thread
From: Herbert Xu @ 2016-04-04 14:00 UTC (permalink / raw)
  To: kbuild test robot
  Cc: Sabrina Dubroca, kbuild-all, linux-kernel, Hannes Frederic Sowa,
	Linux Crypto Mailing List

On Fri, Apr 01, 2016 at 03:02:30PM +0000, kbuild test robot wrote:
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   6ddf37da05cd71bf9e43349d607e810b43c9008a
> commit: c09440f7dcb304002dfced8c0fea289eb25f2da0 macsec: introduce IEEE 802.1AE driver
> date:   3 weeks ago
> config: x86_64-randconfig-s3-04012139 (attached as .config)
> reproduce:
>         git checkout c09440f7dcb304002dfced8c0fea289eb25f2da0
>         # save the attached .config to linux build tree
>         make ARCH=x86_64 
> 
> All errors (new ones prefixed by >>):
> 
>    crypto/built-in.o: In function `gcm_enc_copy_hash':
> >> gcm.c:(.text+0x278): undefined reference to `crypto_xor'

GCM is y but AEAD is only m, yet GCM selects AEAD.  Perhaps a kbuild
bug?

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: gcm.c:undefined reference to `crypto_aead_setauthsize'
  2016-04-04 14:00 ` Herbert Xu
@ 2016-04-05  7:15   ` Li, Philip
  2016-04-05  7:19     ` Herbert Xu
  0 siblings, 1 reply; 4+ messages in thread
From: Li, Philip @ 2016-04-05  7:15 UTC (permalink / raw)
  To: Herbert Xu, Wu, Fengguang
  Cc: Sabrina Dubroca, kbuild-all, linux-kernel, Hannes Frederic Sowa,
	Linux Crypto Mailing List



> -----Original Message-----
> From: Herbert Xu [mailto:herbert@gondor.apana.org.au]
> Sent: Monday, April 4, 2016 10:00 PM
> To: Wu, Fengguang <fengguang.wu@intel.com>
> Cc: Sabrina Dubroca <sd@queasysnail.net>; kbuild-all@01.org;
> linux-kernel@vger.kernel.org; Hannes Frederic Sowa
> <hannes@stressinduktion.org>; Linux Crypto Mailing List
> <linux-crypto@vger.kernel.org>
> Subject: Re: gcm.c:undefined reference to `crypto_aead_setauthsize'
> 
> On Fri, Apr 01, 2016 at 03:02:30PM +0000, kbuild test robot wrote:
> > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> master
> > head:   6ddf37da05cd71bf9e43349d607e810b43c9008a
> > commit: c09440f7dcb304002dfced8c0fea289eb25f2da0 macsec: introduce
> IEEE 802.1AE driver
> > date:   3 weeks ago
> > config: x86_64-randconfig-s3-04012139 (attached as .config)
> > reproduce:
> >         git checkout c09440f7dcb304002dfced8c0fea289eb25f2da0
> >         # save the attached .config to linux build tree
> >         make ARCH=x86_64
> >
> > All errors (new ones prefixed by >>):
> >
> >    crypto/built-in.o: In function `gcm_enc_copy_hash':
> > >> gcm.c:(.text+0x278): undefined reference to `crypto_xor'
> 
> GCM is y but AEAD is only m, yet GCM selects AEAD.  Perhaps a kbuild bug?
Thanks Herbert, currently we use make randconfig to generate this kconfig file, is it possible this is still a valid settings?

> 
> Cheers,
> --
> Email: Herbert Xu <herbert@gondor.apana.org.au> Home Page:
> http://gondor.apana.org.au/~herbert/
> PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: gcm.c:undefined reference to `crypto_aead_setauthsize'
  2016-04-05  7:15   ` Li, Philip
@ 2016-04-05  7:19     ` Herbert Xu
  0 siblings, 0 replies; 4+ messages in thread
From: Herbert Xu @ 2016-04-05  7:19 UTC (permalink / raw)
  To: Li, Philip
  Cc: Wu, Fengguang, Sabrina Dubroca, kbuild-all, linux-kernel,
	Hannes Frederic Sowa, Linux Crypto Mailing List

On Tue, Apr 05, 2016 at 07:15:21AM +0000, Li, Philip wrote:
> 
> 
> > -----Original Message-----
> > From: Herbert Xu [mailto:herbert@gondor.apana.org.au]
> > Sent: Monday, April 4, 2016 10:00 PM
> > To: Wu, Fengguang <fengguang.wu@intel.com>
> > Cc: Sabrina Dubroca <sd@queasysnail.net>; kbuild-all@01.org;
> > linux-kernel@vger.kernel.org; Hannes Frederic Sowa
> > <hannes@stressinduktion.org>; Linux Crypto Mailing List
> > <linux-crypto@vger.kernel.org>
> > Subject: Re: gcm.c:undefined reference to `crypto_aead_setauthsize'
> > 
> > On Fri, Apr 01, 2016 at 03:02:30PM +0000, kbuild test robot wrote:
> > > tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
> > master
> > > head:   6ddf37da05cd71bf9e43349d607e810b43c9008a
> > > commit: c09440f7dcb304002dfced8c0fea289eb25f2da0 macsec: introduce
> > IEEE 802.1AE driver
> > > date:   3 weeks ago
> > > config: x86_64-randconfig-s3-04012139 (attached as .config)
> > > reproduce:
> > >         git checkout c09440f7dcb304002dfced8c0fea289eb25f2da0
> > >         # save the attached .config to linux build tree
> > >         make ARCH=x86_64
> > >
> > > All errors (new ones prefixed by >>):
> > >
> > >    crypto/built-in.o: In function `gcm_enc_copy_hash':
> > > >> gcm.c:(.text+0x278): undefined reference to `crypto_xor'
> > 
> > GCM is y but AEAD is only m, yet GCM selects AEAD.  Perhaps a kbuild bug?
> Thanks Herbert, currently we use make randconfig to generate this kconfig file, is it possible this is still a valid settings?

Sorry I didn't mean kbuild as in your build system, but kbuild as in
the kernel kbuild subsystem.

AFAICS, the Kconfig rules should forbid the situation in your
config file where GCM=y but AEAD=m because GCM selects AEAD.  So
the fact that it happened either means that there is something
that I am missing or that the kbuild subsystem is buggy.

Cheers,
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-04-05  7:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-01 15:02 gcm.c:undefined reference to `crypto_aead_setauthsize' kbuild test robot
2016-04-04 14:00 ` Herbert Xu
2016-04-05  7:15   ` Li, Philip
2016-04-05  7:19     ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.