From: kernel test robot <lkp@intel.com>
To: Stefan Berger <stefanb@linux.ibm.com>,
kexec@lists.infradead.org, devicetree@vger.kernel.org,
linux-integrity@vger.kernel.org
Cc: kbuild-all@lists.01.org, nayna@linux.ibm.com,
nasastry@in.ibm.com, Stefan Berger <stefanb@linux.ibm.com>,
Rob Herring <robh+dt@kernel.org>,
Frank Rowand <frowand.list@gmail.com>,
Eric Biederman <ebiederm@xmission.com>
Subject: Re: [PATCH v2 3/3] tpm/kexec: Duplicate TPM measurement log in of-tree for kexec
Date: Wed, 29 Jun 2022 00:53:11 +0800 [thread overview]
Message-ID: <202206290021.AodC96Vc-lkp@intel.com> (raw)
In-Reply-To: <20220616154130.2052541-4-stefanb@linux.ibm.com>
Hi Stefan,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on linus/master v5.19-rc4 next-20220628]
[cannot apply to robh/for-next]
[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/intel-lab-lkp/linux/commits/Stefan-Berger/tpm-Preserve-TPM-measurement-log-across-kexec/20220616-234240
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 0a35780c755ccec097d15c6b4ff8b246a89f1689
config: parisc-randconfig-r012-20220627 (https://download.01.org/0day-ci/archive/20220629/202206290021.AodC96Vc-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 11.3.0
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
# https://github.com/intel-lab-lkp/linux/commit/c28e0f7321d0b7245454e811a3dd0f2134d9dd74
git remote add linux-review https://github.com/intel-lab-lkp/linux
git fetch --no-tags linux-review Stefan-Berger/tpm-Preserve-TPM-measurement-log-across-kexec/20220616-234240
git checkout c28e0f7321d0b7245454e811a3dd0f2134d9dd74
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=parisc SHELL=/bin/bash drivers/of/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/of/kexec.c: In function 'tpm_add_kexec_buffer':
>> drivers/of/kexec.c:371:18: error: implicit declaration of function 'vmalloc'; did you mean 'kvmalloc'? [-Werror=implicit-function-declaration]
371 | buffer = vmalloc(size);
| ^~~~~~~
| kvmalloc
drivers/of/kexec.c:371:16: warning: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
371 | buffer = vmalloc(size);
| ^
drivers/of/kexec.c: In function 'tpm_post_kexec':
drivers/of/kexec.c:446:42: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
446 | *(u64 *)newprop->value = (u64)phyaddr;
| ^
cc1: some warnings being treated as errors
vim +371 drivers/of/kexec.c
349
350 void tpm_add_kexec_buffer(struct kimage *image)
351 {
352 struct kexec_buf kbuf = { .image = image, .buf_align = 1,
353 .buf_min = 0, .buf_max = ULONG_MAX,
354 .top_down = true };
355 struct device_node *np;
356 void *buffer;
357 u32 size;
358 u64 base;
359 int ret;
360
361 if (!IS_ENABLED(CONFIG_PPC64))
362 return;
363
364 np = of_find_node_by_name(NULL, "vtpm");
365 if (!np)
366 return;
367
368 if (of_tpm_get_sml_parameters(np, &base, &size) < 0)
369 return;
370
> 371 buffer = vmalloc(size);
372 if (!buffer)
373 return;
374 memcpy(buffer, __va(base), size);
375
376 kbuf.buffer = buffer;
377 kbuf.bufsz = size;
378 kbuf.memsz = size;
379 ret = kexec_add_buffer(&kbuf);
380 if (ret) {
381 pr_err("Error passing over kexec TPM measurement log buffer: %d\n",
382 ret);
383 return;
384 }
385
386 image->tpm_buffer = buffer;
387 image->tpm_buffer_addr = kbuf.mem;
388 image->tpm_buffer_size = size;
389 }
390
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2022-06-28 16:53 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-16 15:41 [PATCH v2 0/3] tpm: Preserve TPM measurement log across kexec Stefan Berger
2022-06-16 15:41 ` [PATCH v2 1/3] tpm: of: Move of-tree specific code from tpm driver into of driver Stefan Berger
2022-06-27 22:43 ` Rob Herring
2022-06-28 13:29 ` Stefan Berger
2022-06-29 2:45 ` Jarkko Sakkinen
2022-06-29 14:16 ` Stefan Berger
2022-06-30 23:16 ` Jarkko Sakkinen
2022-06-16 15:41 ` [PATCH v2 2/3] of: kexec: Refactor IMA buffer related functions to make them reusable Stefan Berger
2022-06-16 15:41 ` [PATCH v2 3/3] tpm/kexec: Duplicate TPM measurement log in of-tree for kexec Stefan Berger
2022-06-16 20:25 ` kernel test robot
2022-06-28 16:53 ` kernel test robot [this message]
2022-06-27 22:33 ` [PATCH v2 0/3] tpm: Preserve TPM measurement log across kexec Rob Herring
2022-06-28 12:45 ` Stefan Berger
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=202206290021.AodC96Vc-lkp@intel.com \
--to=lkp@intel.com \
--cc=devicetree@vger.kernel.org \
--cc=ebiederm@xmission.com \
--cc=frowand.list@gmail.com \
--cc=kbuild-all@lists.01.org \
--cc=kexec@lists.infradead.org \
--cc=linux-integrity@vger.kernel.org \
--cc=nasastry@in.ibm.com \
--cc=nayna@linux.ibm.com \
--cc=robh+dt@kernel.org \
--cc=stefanb@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