linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Hongbo Li <herbert.tencent@gmail.com>,
	keyrings@vger.kernel.org, linux-crypto@vger.kernel.org,
	herbert@gondor.apana.org.au, dhowells@redhat.com,
	zohar@linux.ibm.com, jarkko@kernel.org, herberthbli@tencent.com
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	linux-integrity@vger.kernel.org, herbert.tencent@gmail.com
Subject: Re: [PATCH v4 2/4] crypto: support rsa-pss encoding
Date: Thu, 8 Apr 2021 21:12:33 +0800	[thread overview]
Message-ID: <202104082140.nc1qYPae-lkp@intel.com> (raw)
In-Reply-To: <1617802906-30513-3-git-send-email-herbert.tencent@gmail.com>

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

Hi Hongbo,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on cryptodev/master]
[also build test ERROR on crypto/master security/next-testing linus/master v5.12-rc6 next-20210407]
[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/Hongbo-Li/crypto-add-rsa-pss-support-for-x509/20210407-214446
base:   https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git master
config: x86_64-randconfig-a006-20210408 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
        # https://github.com/0day-ci/linux/commit/16672847d0bd803ad40d0b2065125645c082585a
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Hongbo-Li/crypto-add-rsa-pss-support-for-x509/20210407-214446
        git checkout 16672847d0bd803ad40d0b2065125645c082585a
        # save the attached .config to linux build tree
        make W=1 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 >>):

   ld: crypto/rsa_helper.o: in function `rsa_get_pss_hash':
>> crypto/rsa_helper.c:161: undefined reference to `look_up_OID'
   ld: crypto/rsa_helper.o: in function `rsa_get_pss_mgf':
   crypto/rsa_helper.c:195: undefined reference to `look_up_OID'
   ld: crypto/rsa_helper.o: in function `rsa_get_pss_mgf_hash':
   crypto/rsa_helper.c:212: undefined reference to `look_up_OID'


vim +161 crypto/rsa_helper.c

   151	
   152	int rsa_get_pss_hash(void *context, size_t hdrlen, unsigned char tag,
   153			     const void *value, size_t vlen)
   154	{
   155		struct rsa_pss_ctx *ctx = context;
   156		enum OID oid;
   157	
   158		if (!value || !vlen)
   159			return -EINVAL;
   160	
 > 161		oid = look_up_OID(value, vlen);
   162		switch (oid) {
   163		case OID_sha1:
   164			ctx->hash_algo = "sha1";
   165			break;
   166		case OID_sha224:
   167			ctx->hash_algo = "sha224";
   168			break;
   169		case OID_sha256:
   170			ctx->hash_algo = "sha256";
   171			break;
   172		case OID_sha384:
   173			ctx->hash_algo = "sha384";
   174			break;
   175		case OID_sha512:
   176			ctx->hash_algo = "sha512";
   177			break;
   178		default:
   179			return -ENOPKG;
   180	
   181		}
   182	
   183		return 0;
   184	}
   185	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

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

  reply	other threads:[~2021-04-08 13:13 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-07 13:41 [PATCH v4 0/4] crypto: add rsa pss support for x509 Hongbo Li
2021-04-07 13:41 ` [PATCH v4 1/4] x509: add support for rsa-pss Hongbo Li
2021-04-07 13:41 ` [PATCH v4 2/4] crypto: support rsa-pss encoding Hongbo Li
2021-04-08 13:12   ` kernel test robot [this message]
2021-04-07 13:41 ` [PATCH v4 3/4] crypto: add rsa pss test vector Hongbo Li
2021-04-07 13:41 ` [PATCH v4 4/4] ima: add support for rsa pss verification Hongbo Li

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=202104082140.nc1qYPae-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dhowells@redhat.com \
    --cc=herbert.tencent@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=herberthbli@tencent.com \
    --cc=jarkko@kernel.org \
    --cc=kbuild-all@lists.01.org \
    --cc=keyrings@vger.kernel.org \
    --cc=linux-crypto@vger.kernel.org \
    --cc=linux-integrity@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=zohar@linux.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).