From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC PATCH 05/10] crypto: x86/glue-helper - drop XTS helper routines
Date: Thu, 24 Dec 2020 19:54:47 +0800 [thread overview]
Message-ID: <202012241954.M3EGclj3-lkp@intel.com> (raw)
In-Reply-To: <20201223223841.11311-6-ardb@kernel.org>
[-- Attachment #1: Type: text/plain, Size: 8527 bytes --]
Hi Ard,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on cryptodev/master]
[also build test ERROR on crypto/master v5.10 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Ard-Biesheuvel/crypto-x86-remove-XTS-and-CTR-glue-helper-code/20201224-064421
base: https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-randconfig-a016-20201223 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://github.com/0day-ci/linux/commit/ad8857244950d3ad8c01b5bfae95f15e4ba703c4
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ard-Biesheuvel/crypto-x86-remove-XTS-and-CTR-glue-helper-code/20201224-064421
git checkout ad8857244950d3ad8c01b5bfae95f15e4ba703c4
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> arch/x86/crypto/aesni-intel_glue.c:542:2: error: implicit declaration of function 'glue_xts_crypt_128bit_one' [-Werror,-Wimplicit-function-declaration]
glue_xts_crypt_128bit_one(ctx, dst, src, iv, aesni_enc);
^
arch/x86/crypto/aesni-intel_glue.c:547:2: error: implicit declaration of function 'glue_xts_crypt_128bit_one' [-Werror,-Wimplicit-function-declaration]
glue_xts_crypt_128bit_one(ctx, dst, src, iv, aesni_dec);
^
>> arch/x86/crypto/aesni-intel_glue.c:566:14: error: field designator 'xts' does not refer to any field in type 'union (anonymous union at arch/x86/include/asm/crypto/glue_helper.h:21:2)'
.fn_u = { .xts = aesni_xts_enc8 }
^
arch/x86/crypto/aesni-intel_glue.c:569:14: error: field designator 'xts' does not refer to any field in type 'union (anonymous union at arch/x86/include/asm/crypto/glue_helper.h:21:2)'
.fn_u = { .xts = aesni_xts_enc }
^
arch/x86/crypto/aesni-intel_glue.c:579:14: error: field designator 'xts' does not refer to any field in type 'union (anonymous union at arch/x86/include/asm/crypto/glue_helper.h:21:2)'
.fn_u = { .xts = aesni_xts_dec8 }
^
arch/x86/crypto/aesni-intel_glue.c:582:14: error: field designator 'xts' does not refer to any field in type 'union (anonymous union at arch/x86/include/asm/crypto/glue_helper.h:21:2)'
.fn_u = { .xts = aesni_xts_dec }
^
>> arch/x86/crypto/aesni-intel_glue.c:591:9: error: implicit declaration of function 'glue_xts_req_128bit' [-Werror,-Wimplicit-function-declaration]
return glue_xts_req_128bit(&aesni_enc_xts, req, aesni_enc,
^
arch/x86/crypto/aesni-intel_glue.c:591:9: note: did you mean 'glue_ctr_req_128bit'?
arch/x86/include/asm/crypto/glue_helper.h:103:12: note: 'glue_ctr_req_128bit' declared here
extern int glue_ctr_req_128bit(const struct common_glue_ctx *gctx,
^
arch/x86/crypto/aesni-intel_glue.c:602:9: error: implicit declaration of function 'glue_xts_req_128bit' [-Werror,-Wimplicit-function-declaration]
return glue_xts_req_128bit(&aesni_dec_xts, req, aesni_enc,
^
8 errors generated.
vim +/glue_xts_crypt_128bit_one +542 arch/x86/crypto/aesni-intel_glue.c
023af608254add7 Jussi Kivilinna 2012-07-22 538
023af608254add7 Jussi Kivilinna 2012-07-22 539
9c1e8836edbbaf3 Kees Cook 2019-11-26 540 static void aesni_xts_enc(const void *ctx, u8 *dst, const u8 *src, le128 *iv)
32bec973a8435af Jussi Kivilinna 2012-10-18 541 {
9c1e8836edbbaf3 Kees Cook 2019-11-26 @542 glue_xts_crypt_128bit_one(ctx, dst, src, iv, aesni_enc);
32bec973a8435af Jussi Kivilinna 2012-10-18 543 }
32bec973a8435af Jussi Kivilinna 2012-10-18 544
9c1e8836edbbaf3 Kees Cook 2019-11-26 545 static void aesni_xts_dec(const void *ctx, u8 *dst, const u8 *src, le128 *iv)
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 546 {
9c1e8836edbbaf3 Kees Cook 2019-11-26 547 glue_xts_crypt_128bit_one(ctx, dst, src, iv, aesni_dec);
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 548 }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 549
9c1e8836edbbaf3 Kees Cook 2019-11-26 550 static void aesni_xts_enc8(const void *ctx, u8 *dst, const u8 *src, le128 *iv)
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 551 {
9c1e8836edbbaf3 Kees Cook 2019-11-26 552 aesni_xts_crypt8(ctx, dst, src, true, iv);
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 553 }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 554
9c1e8836edbbaf3 Kees Cook 2019-11-26 555 static void aesni_xts_dec8(const void *ctx, u8 *dst, const u8 *src, le128 *iv)
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 556 {
9c1e8836edbbaf3 Kees Cook 2019-11-26 557 aesni_xts_crypt8(ctx, dst, src, false, iv);
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 558 }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 559
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 560 static const struct common_glue_ctx aesni_enc_xts = {
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 561 .num_funcs = 2,
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 562 .fpu_blocks_limit = 1,
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 563
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 564 .funcs = { {
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 565 .num_blocks = 8,
9c1e8836edbbaf3 Kees Cook 2019-11-26 @566 .fn_u = { .xts = aesni_xts_enc8 }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 567 }, {
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 568 .num_blocks = 1,
9c1e8836edbbaf3 Kees Cook 2019-11-26 @569 .fn_u = { .xts = aesni_xts_enc }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 570 } }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 571 };
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 572
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 573 static const struct common_glue_ctx aesni_dec_xts = {
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 574 .num_funcs = 2,
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 575 .fpu_blocks_limit = 1,
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 576
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 577 .funcs = { {
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 578 .num_blocks = 8,
9c1e8836edbbaf3 Kees Cook 2019-11-26 579 .fn_u = { .xts = aesni_xts_dec8 }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 580 }, {
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 581 .num_blocks = 1,
9c1e8836edbbaf3 Kees Cook 2019-11-26 582 .fn_u = { .xts = aesni_xts_dec }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 583 } }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 584 };
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 585
85671860caaca2f Herbert Xu 2016-11-22 586 static int xts_encrypt(struct skcipher_request *req)
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 587 {
85671860caaca2f Herbert Xu 2016-11-22 588 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
85671860caaca2f Herbert Xu 2016-11-22 589 struct aesni_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 590
9c1e8836edbbaf3 Kees Cook 2019-11-26 @591 return glue_xts_req_128bit(&aesni_enc_xts, req, aesni_enc,
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 592 aes_ctx(ctx->raw_tweak_ctx),
8ce5fac2dc1bf64 Ard Biesheuvel 2019-08-16 593 aes_ctx(ctx->raw_crypt_ctx),
8ce5fac2dc1bf64 Ard Biesheuvel 2019-08-16 594 false);
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 595 }
c456a9cd1ac4eae Jussi Kivilinna 2013-04-08 596
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27562 bytes --]
next prev parent reply other threads:[~2020-12-24 11:54 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-23 22:38 [dm-devel] [RFC PATCH 00/10] crypto: x86 - remove XTS and CTR glue helper code Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 01/10] crypto: x86/camellia - switch to XTS template Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 02/10] crypto: x86/cast6 " Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 03/10] crypto: x86/serpent- " Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 04/10] crypto: x86/twofish - " Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 05/10] crypto: x86/glue-helper - drop XTS helper routines Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-24 11:54 ` kernel test robot [this message]
2020-12-24 12:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 06/10] crypto: x86/camellia - drop CTR mode implementation Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 07/10] crypto: x86/cast6 " Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 08/10] crypto: x86/serpent " Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 09/10] crypto: x86/twofish " Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-23 22:38 ` [dm-devel] [RFC PATCH 10/10] crypto: x86/glue-helper - drop CTR helper routines Ard Biesheuvel
2020-12-23 22:38 ` Ard Biesheuvel
2020-12-24 9:33 ` [dm-devel] [RFC PATCH 00/10] crypto: x86 - remove XTS and CTR glue helper code Milan Broz
2020-12-24 9:33 ` Milan Broz
2020-12-24 9:56 ` [dm-devel] " Ard Biesheuvel
2020-12-24 9:56 ` Ard Biesheuvel
2020-12-25 19:20 ` [dm-devel] " Eric Biggers
2020-12-25 19:20 ` Eric Biggers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202012241954.M3EGclj3-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.