From: kbuild test robot <lkp@intel.com>
To: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Cc: kbuild-all@lists.01.org, zohar@linux.ibm.com,
dmitry.kasatkin@gmail.com, jmorris@namei.org, serge@hallyn.com,
zhangliguang@linux.alibaba.com, linux-integrity@vger.kernel.org,
linux-security-module@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] ima: support to tune appraise mode in runtime
Date: Thu, 9 Apr 2020 13:40:46 +0800 [thread overview]
Message-ID: <202004091353.oe3lEspJ%lkp@intel.com> (raw)
In-Reply-To: <20200409033907.102833-3-tianjia.zhang@linux.alibaba.com>
[-- Attachment #1: Type: text/plain, Size: 2712 bytes --]
Hi Tianjia,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on integrity/next-integrity]
[also build test ERROR on v5.6 next-20200408]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Tianjia-Zhang/support-to-read-and-tune-appraise-mode-in-runtime/20200409-114057
base: https://git.kernel.org/pub/scm/linux/kernel/git/zohar/linux-integrity.git next-integrity
config: c6x-randconfig-a001-20200409 (attached as .config)
compiler: c6x-elf-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# save the attached .config to linux build tree
GCC_VERSION=9.3.0 make.cross ARCH=c6x
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
security/integrity/ima/ima_fs.c: In function 'repopulate_ima_appraise_mode':
>> security/integrity/ima/ima_fs.c:518:9: error: implicit declaration of function 'verify_pkcs7_signature' [-Werror=implicit-function-declaration]
518 | ret = verify_pkcs7_signature(s, strlen(s), pkcs7, pkcs7_len,
| ^~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/verify_pkcs7_signature +518 security/integrity/ima/ima_fs.c
499
500 /* Verify the supplied PKCS#7 signature. The signed content may be off,
501 * enforce, log, fix.
502 */
503 static int repopulate_ima_appraise_mode(void *pkcs7, size_t pkcs7_len)
504 {
505 static char *appraise_mode_strings[] = { "off", "enforce", "fix", "log" };
506 static int appraise_modes[] = {
507 0,
508 IMA_APPRAISE_ENFORCE,
509 IMA_APPRAISE_FIX,
510 IMA_APPRAISE_LOG,
511 };
512 int index, ret = -1;
513 const char *s;
514 int size = ARRAY_SIZE(appraise_mode_strings);
515
516 for (index = 0; index < size; index++) {
517 s = appraise_mode_strings[index];
> 518 ret = verify_pkcs7_signature(s, strlen(s), pkcs7, pkcs7_len,
519 NULL, VERIFYING_UNSPECIFIED_SIGNATURE,
520 NULL, NULL);
521 if (!ret)
522 break;
523 }
524
525 if (index == size)
526 goto out;
527
528 ima_appraise = appraise_modes[index];
529
530 out:
531 return ret;
532 }
533
---
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: 17909 bytes --]
next prev parent reply other threads:[~2020-04-09 5:41 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-09 3:39 [PATCH 0/2] support to read and tune appraise mode in runtime Tianjia Zhang
2020-04-09 3:39 ` [PATCH 1/2] ima: support to read appraise mode Tianjia Zhang
2020-04-09 3:39 ` [PATCH 2/2] ima: support to tune appraise mode in runtime Tianjia Zhang
2020-04-09 5:40 ` kbuild test robot [this message]
2020-04-13 21:55 ` [PATCH 0/2] support to read and " Mimi Zohar
2020-04-14 3:36 ` Tianjia Zhang
2020-04-14 13:41 ` Mimi Zohar
2020-04-15 2:49 ` Tianjia Zhang
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=202004091353.oe3lEspJ%lkp@intel.com \
--to=lkp@intel.com \
--cc=dmitry.kasatkin@gmail.com \
--cc=jmorris@namei.org \
--cc=kbuild-all@lists.01.org \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-security-module@vger.kernel.org \
--cc=serge@hallyn.com \
--cc=tianjia.zhang@linux.alibaba.com \
--cc=zhangliguang@linux.alibaba.com \
--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).