Linux cryptographic layer development
 help / color / mirror / Atom feed
* Fwd: [linux-next:master 7274/8070] undefined reference to `crypto_alloc_shash'
@ 2017-04-09 20:09 Stephan Müller
  2017-04-10 10:22 ` Herbert Xu
  0 siblings, 1 reply; 5+ messages in thread
From: Stephan Müller @ 2017-04-09 20:09 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, David Howells

Hi Herbert,

I got the attached error report. This is due to CRYPTO_HASH2 is selected as m 
whereas security/keys/dh.c is compiled as y. Note CRYPTO_HASH is selected as 
y.

dh.c requires shash.

Kconfig for dh.c contains:

config KEY_DH_OPERATIONS
       bool "Diffie-Hellman operations on retained keys"
       depends on KEYS
       select MPILIB
       select CRYPTO_HASH


Shall I select CRYPTO_HASH2 instead or in addition to CRYPTO_HASH?

Thanks.

Ciao
Stephan

----------  Weitergeleitete Nachricht  ----------

Betreff: [linux-next:master 7274/8070] undefined reference to 
`crypto_alloc_shash'
Datum: Donnerstag, 6. April 2017, 10:03:30 CEST
Von: kbuild test robot <fengguang.wu@intel.com>
An: Stephan Mueller <smueller@chronox.de>
Kopie: kbuild-all@01.org, David Howells <dhowells@redhat.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git 
master
head:   d203084e692ac2f656cf8c50449f8f90ca7875de
commit: f1c316a3ab9d24df6022682422fe897492f2c0c8 [7274/8070] KEYS: add 
SP800-56A KDF support for DH
config: x86_64-randconfig-s0-04061437 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout f1c316a3ab9d24df6022682422fe897492f2c0c8
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   security/built-in.o: In function `__keyctl_dh_compute':
>> (.text+0xa4f7): undefined reference to `crypto_alloc_shash'
   security/built-in.o: In function `__keyctl_dh_compute':
>> (.text+0xa7b5): undefined reference to `crypto_shash_update'
   security/built-in.o: In function `__keyctl_dh_compute':
   (.text+0xa7ed): undefined reference to `crypto_shash_update'
   security/built-in.o: In function `__keyctl_dh_compute':
>> (.text+0xa832): undefined reference to `crypto_shash_final'
   security/built-in.o: In function `__keyctl_dh_compute':
   (.text+0xa881): undefined reference to `crypto_shash_final'
   security/built-in.o: In function `__keyctl_dh_compute':
>> (.text+0xa9bd): undefined reference to `crypto_destroy_tfm'

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

-------------------------------------------------------------

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

* Re: Fwd: [linux-next:master 7274/8070] undefined reference to `crypto_alloc_shash'
  2017-04-09 20:09 Fwd: [linux-next:master 7274/8070] undefined reference to `crypto_alloc_shash' Stephan Müller
@ 2017-04-10 10:22 ` Herbert Xu
  2017-04-10 10:46   ` Stephan Müller
  0 siblings, 1 reply; 5+ messages in thread
From: Herbert Xu @ 2017-04-10 10:22 UTC (permalink / raw)
  To: Stephan Müller; +Cc: linux-crypto, David Howells

On Sun, Apr 09, 2017 at 10:09:54PM +0200, Stephan Müller wrote:
> Hi Herbert,
> 
> I got the attached error report. This is due to CRYPTO_HASH2 is selected as m 
> whereas security/keys/dh.c is compiled as y. Note CRYPTO_HASH is selected as 
> y.

Hmm that's weird because CRYPTO_HASH selects CRYPTO_HASH2.  Do
you have a kconfig file that reproduces this?

Thanks,
-- 
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] 5+ messages in thread

* Re: Fwd: [linux-next:master 7274/8070] undefined reference to `crypto_alloc_shash'
  2017-04-10 10:22 ` Herbert Xu
@ 2017-04-10 10:46   ` Stephan Müller
  2017-04-11 10:50     ` Herbert Xu
  0 siblings, 1 reply; 5+ messages in thread
From: Stephan Müller @ 2017-04-10 10:46 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-crypto, David Howells

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

Am Montag, 10. April 2017, 12:22:23 CEST schrieb Herbert Xu:

Hi Herbert,

> Hmm that's weird because CRYPTO_HASH selects CRYPTO_HASH2.  Do
> you have a kconfig file that reproduces this?

Please see attached.

Thanks

Ciao
Stephan

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 25410 bytes --]

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

* Re: Fwd: [linux-next:master 7274/8070] undefined reference to `crypto_alloc_shash'
  2017-04-10 10:46   ` Stephan Müller
@ 2017-04-11 10:50     ` Herbert Xu
  2017-04-11 10:56       ` Stephan Müller
  0 siblings, 1 reply; 5+ messages in thread
From: Herbert Xu @ 2017-04-11 10:50 UTC (permalink / raw)
  To: Stephan Müller; +Cc: linux-crypto, David Howells

On Mon, Apr 10, 2017 at 12:46:22PM +0200, Stephan Müller wrote:
> Am Montag, 10. April 2017, 12:22:23 CEST schrieb Herbert Xu:
> 
> Hi Herbert,
> 
> > Hmm that's weird because CRYPTO_HASH selects CRYPTO_HASH2.  Do
> > you have a kconfig file that reproduces this?
> 
> Please see attached.

I see the problem.  When you select CRYPTO_HASH you must also
select CRYPTO.

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] 5+ messages in thread

* Re: Fwd: [linux-next:master 7274/8070] undefined reference to `crypto_alloc_shash'
  2017-04-11 10:50     ` Herbert Xu
@ 2017-04-11 10:56       ` Stephan Müller
  0 siblings, 0 replies; 5+ messages in thread
From: Stephan Müller @ 2017-04-11 10:56 UTC (permalink / raw)
  To: Herbert Xu; +Cc: linux-crypto, David Howells

Am Dienstag, 11. April 2017, 12:50:00 CEST schrieb Herbert Xu:

Hi Herbert,

> I see the problem.  When you select CRYPTO_HASH you must also
> select CRYPTO.

Thank you very much.

I will prepare a patch.

Ciao
Stephan

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

end of thread, other threads:[~2017-04-11 10:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-09 20:09 Fwd: [linux-next:master 7274/8070] undefined reference to `crypto_alloc_shash' Stephan Müller
2017-04-10 10:22 ` Herbert Xu
2017-04-10 10:46   ` Stephan Müller
2017-04-11 10:50     ` Herbert Xu
2017-04-11 10:56       ` Stephan Müller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox