Skip to contentSkip to conversation

CRYPTO: Fix more AES build errors:

RFC PATCH New Russell King 4 participants 7 messages Jan 2, 2014 – Jan 5, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

RFC PATCH 1/1 CRYPTO: Fix more AES build errors:

Building a multi-arch kernel results in:

arch/arm/crypto/built-in.o: In function `aesbs_xts_decrypt':
sha1_glue.c:(.text+0x15c8): undefined reference to bsaes_xts_decrypt' arch/arm/crypto/built-in.o: In function aesbs_xts_encrypt':
sha1_glue.c:(.text+0x1664): undefined reference to bsaes_xts_encrypt' arch/arm/crypto/built-in.o: In function aesbs_ctr_encrypt':
sha1_glue.c:(.text+0x184c): undefined reference to bsaes_ctr32_encrypt_blocks' arch/arm/crypto/built-in.o: In function aesbs_cbc_decrypt':
sha1_glue.c:(.text+0x19b4): undefined reference to `bsaes_cbc_encrypt'

This code is already runtime-conditional on NEON being supported, so there's no point compiling it out depending on the minimum build architecture.

---
This is more a request for acks since I'd like to keep it/push it through my tree to reduce the autobuilder failures.

 arch/arm/crypto/bsaes-armv7.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/crypto/bsaes-armv7.pl +1 -1
index f3d96d932573..be068db960ee 100644
@@ -701,7 +701,7 @@ $code.=<<___;
 # define VFP_ABI_FRAME	0
 # define BSAES_ASM_EXTENDED_KEY
 # define XTS_CHAIN_TWEAK
-# define __ARM_ARCH__ __LINUX_ARM_ARCH__
+# define __ARM_ARCH__	7
 #endif
 
 #ifdef __thumb__
Signature · 1 line
1.7.4.4
#1 lore raw

RFC PATCH 1/1 CRYPTO: Fix more AES build errors:

Quoted 11 lines · Russell King

Building a multi-arch kernel results in:

arch/arm/crypto/built-in.o: In function `aesbs_xts_decrypt':
sha1_glue.c:(.text+0x15c8): undefined reference to bsaes_xts_decrypt' arch/arm/crypto/built-in.o: In function aesbs_xts_encrypt':
sha1_glue.c:(.text+0x1664): undefined reference to bsaes_xts_encrypt' arch/arm/crypto/built-in.o: In function aesbs_ctr_encrypt':
sha1_glue.c:(.text+0x184c): undefined reference to bsaes_ctr32_encrypt_blocks' arch/arm/crypto/built-in.o: In function aesbs_cbc_decrypt':
sha1_glue.c:(.text+0x19b4): undefined reference to `bsaes_cbc_encrypt'

Interestingly, when I try to reproduce this, the reference is (correctly) reported to reside in aesbs-glue.c and not sha1_glue.c

Quoted 4 lines

This code is already runtime-conditional on NEON being supported, so there's no point compiling it out depending on the minimum build architecture.

Agreed. It is a leftover from the way this code was embedded into OpenSSL originally.

Quoted 6 lines

---
This is more a request for acks since I'd like to keep it/push it through my tree to reduce the autobuilder failures.

 arch/arm/crypto/bsaes-armv7.pl |    2 +-

The .S_shipped file produced by this script should be updated at the same time.

Regards,
Ard.

Quoted 18 lines
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/arm/crypto/bsaes-armv7.pl +1 -2
index f3d96d932573..be068db960ee 100644
@@ -701,7 +701,7 @@ $code.=<<___;
 # define VFP_ABI_FRAME 0
 # define BSAES_ASM_EXTENDED_KEY
 # define XTS_CHAIN_TWEAK
-# define __ARM_ARCH__ __LINUX_ARM_ARCH__
+# define __ARM_ARCH__  7
 #endif
 
 #ifdef __thumb__
--

1.7.4.4

#2 lore raw

RFC PATCH 1/1 CRYPTO: Fix more AES build errors:

Quoted 24 lines · Ard Biesheuvel
Quoted 11 lines · Russell King

Building a multi-arch kernel results in:

arch/arm/crypto/built-in.o: In function `aesbs_xts_decrypt':
sha1_glue.c:(.text+0x15c8): undefined reference to bsaes_xts_decrypt' arch/arm/crypto/built-in.o: In function aesbs_xts_encrypt':
sha1_glue.c:(.text+0x1664): undefined reference to bsaes_xts_encrypt' arch/arm/crypto/built-in.o: In function aesbs_ctr_encrypt':
sha1_glue.c:(.text+0x184c): undefined reference to bsaes_ctr32_encrypt_blocks' arch/arm/crypto/built-in.o: In function aesbs_cbc_decrypt':
sha1_glue.c:(.text+0x19b4): undefined reference to `bsaes_cbc_encrypt'

Interestingly, when I try to reproduce this, the reference is (correctly) reported to reside in aesbs-glue.c and not sha1_glue.c

Quoted 4 lines

This code is already runtime-conditional on NEON being supported, so there's no point compiling it out depending on the minimum build architecture.

Agreed. It is a leftover from the way this code was embedded into OpenSSL originally.

Quoted 9 lines
Quoted 6 lines

---
This is more a request for acks since I'd like to keep it/push it through my tree to reduce the autobuilder failures.

 arch/arm/crypto/bsaes-armv7.pl |    2 +-

The .S_shipped file produced by this script should be updated at the same time.

Hello Russell,

I noticed that this patch has turned up in rmk/fixes.

Please be aware that by not updating the .S_shipped file in concert with the .pl file, we have a build time dependency on Perl now, something we tried to avoid when we discussed the original series
http://marc.info/?l=linux-arm-kernel&m=138091140313491&w=2

Regards,
Ard.

#3 lore raw

RFC PATCH 1/1 CRYPTO: Fix more AES build errors:

Quoted 6 lines · Ard Biesheuvel

I noticed that this patch has turned up in rmk/fixes.

Please be aware that by not updating the .S_shipped file in concert with the .pl file, we have a build time dependency on Perl now, something we tried to avoid when we discussed the original series
http://marc.info/?l=linux-arm-kernel&m=138091140313491&w=2

Added, thanks for reminding me.

Signature · 3 lines
FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up.  Estimation
in database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad.
Estimate before purchase was "up to 13.2Mbit".
maintainer
#4 lore raw

RFC PATCH 1/1 CRYPTO: Fix more AES build errors:

In reply to Ard Biesheuvel
Quoted 29 lines · Ard Biesheuvel
Quoted 11 lines · Russell King

Building a multi-arch kernel results in:

arch/arm/crypto/built-in.o: In function `aesbs_xts_decrypt':
sha1_glue.c:(.text+0x15c8): undefined reference to bsaes_xts_decrypt' arch/arm/crypto/built-in.o: In function aesbs_xts_encrypt':
sha1_glue.c:(.text+0x1664): undefined reference to bsaes_xts_encrypt' arch/arm/crypto/built-in.o: In function aesbs_ctr_encrypt':
sha1_glue.c:(.text+0x184c): undefined reference to bsaes_ctr32_encrypt_blocks' arch/arm/crypto/built-in.o: In function aesbs_cbc_decrypt':
sha1_glue.c:(.text+0x19b4): undefined reference to `bsaes_cbc_encrypt'

Interestingly, when I try to reproduce this, the reference is (correctly) reported to reside in aesbs-glue.c and not sha1_glue.c

Quoted 4 lines

This code is already runtime-conditional on NEON being supported, so there's no point compiling it out depending on the minimum build architecture.

Agreed. It is a leftover from the way this code was embedded into OpenSSL originally.

Quoted 5 lines

---
This is more a request for acks since I'd like to keep it/push it through my tree to reduce the autobuilder failures.

Quoted 5 lines
Quoted 1 line
 arch/arm/crypto/bsaes-armv7.pl |    2 +-

The .S_shipped file produced by this script should be updated at the same time.

Patch applied to the crypto tree. Thanks a lot!

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
#5 lore raw

RFC PATCH 1/1 CRYPTO: Fix more AES build errors:

Quoted 30 lines · Herbert Xu
Quoted 29 lines · Ard Biesheuvel
Quoted 11 lines · Russell King

Building a multi-arch kernel results in:

arch/arm/crypto/built-in.o: In function `aesbs_xts_decrypt':
sha1_glue.c:(.text+0x15c8): undefined reference to bsaes_xts_decrypt' arch/arm/crypto/built-in.o: In function aesbs_xts_encrypt':
sha1_glue.c:(.text+0x1664): undefined reference to bsaes_xts_encrypt' arch/arm/crypto/built-in.o: In function aesbs_ctr_encrypt':
sha1_glue.c:(.text+0x184c): undefined reference to bsaes_ctr32_encrypt_blocks' arch/arm/crypto/built-in.o: In function aesbs_cbc_decrypt':
sha1_glue.c:(.text+0x19b4): undefined reference to `bsaes_cbc_encrypt'

Interestingly, when I try to reproduce this, the reference is (correctly) reported to reside in aesbs-glue.c and not sha1_glue.c

Quoted 4 lines

This code is already runtime-conditional on NEON being supported, so there's no point compiling it out depending on the minimum build architecture.

Agreed. It is a leftover from the way this code was embedded into OpenSSL originally.

Quoted 5 lines

---
This is more a request for acks since I'd like to keep it/push it through my tree to reduce the autobuilder failures.

Quoted 7 lines
Quoted 5 lines
Quoted 1 line
 arch/arm/crypto/bsaes-armv7.pl |    2 +-

The .S_shipped file produced by this script should be updated at the same time.

Patch applied to the crypto tree. Thanks a lot!

Since when do patches with "RFC" in the subject line get applied to other people's trees?

I also had this in the original message:

"This is more a request for acks since I'd like to keep it/push it through
my tree to reduce the autobuilder failures."

And I've just sent Linus the pull request which contains this... though I now realise I didn't add Ard's ack. Oh well, too late. :(

Signature · 3 lines
FTTC broadband for 0.8mile line: 5.8Mbps down 500kbps up.  Estimation
in database were 13.1 to 19Mbit for a good line, about 7.5+ for a bad.
Estimate before purchase was "up to 13.2Mbit".
maintainer
#6 lore raw

RFC PATCH 1/1 CRYPTO: Fix more AES build errors:

Quoted 33 lines · Russell King - ARM Linux
Quoted 32 lines · Herbert Xu
Quoted 31 lines · Ard Biesheuvel
Quoted 11 lines · Russell King

Building a multi-arch kernel results in:

arch/arm/crypto/built-in.o: In function `aesbs_xts_decrypt':
sha1_glue.c:(.text+0x15c8): undefined reference to bsaes_xts_decrypt' arch/arm/crypto/built-in.o: In function aesbs_xts_encrypt':
sha1_glue.c:(.text+0x1664): undefined reference to bsaes_xts_encrypt' arch/arm/crypto/built-in.o: In function aesbs_ctr_encrypt':
sha1_glue.c:(.text+0x184c): undefined reference to bsaes_ctr32_encrypt_blocks' arch/arm/crypto/built-in.o: In function aesbs_cbc_decrypt':
sha1_glue.c:(.text+0x19b4): undefined reference to `bsaes_cbc_encrypt'

Interestingly, when I try to reproduce this, the reference is (correctly) reported to reside in aesbs-glue.c and not sha1_glue.c

Quoted 4 lines

This code is already runtime-conditional on NEON being supported, so there's no point compiling it out depending on the minimum build architecture.

Agreed. It is a leftover from the way this code was embedded into OpenSSL originally.

Quoted 6 lines

---
This is more a request for acks since I'd like to keep it/push it through my tree to reduce the autobuilder failures.

 arch/arm/crypto/bsaes-armv7.pl |    2 +-
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

The .S_shipped file produced by this script should be updated at the same time.

Patch applied to the crypto tree. Thanks a lot!

Since when do patches with "RFC" in the subject line get applied to other people's trees?

OK I'll back it out.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt