lkml.org 
[lkml]   [2022]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[crng-random:tip 1/2] arch/x86/kernel/kexec-bzimage64.c:219:14: error: no member named 'ima_buffer_size' in 'struct kimage'
tree:   git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git tip
head: 532de96923f9c8e0ec456c1b91499327579c2aba
commit: acc53fc31a5e3d990d8241a09438d98b1a6aee1f [1/2] x86/setup: Use rng seeds from setup_data
config: x86_64-randconfig-a001 (https://download.01.org/0day-ci/archive/20220710/202207100728.6J1p2SEd-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 77a38f6839980bfac61babb40d83772c51427011)
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://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git/commit/?id=acc53fc31a5e3d990d8241a09438d98b1a6aee1f
git remote add crng-random git://git.kernel.org/pub/scm/linux/kernel/git/crng/random.git
git fetch --no-tags crng-random tip
git checkout acc53fc31a5e3d990d8241a09438d98b1a6aee1f
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash

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 >>):

>> arch/x86/kernel/kexec-bzimage64.c:219:14: error: no member named 'ima_buffer_size' in 'struct kimage'
if (!image->ima_buffer_size)
~~~~~ ^
>> arch/x86/kernel/kexec-bzimage64.c:226:21: error: no member named 'ima_buffer_addr' in 'struct kimage'
ima->addr = image->ima_buffer_addr;
~~~~~ ^
arch/x86/kernel/kexec-bzimage64.c:227:21: error: no member named 'ima_buffer_size' in 'struct kimage'
ima->size = image->ima_buffer_size;
~~~~~ ^
3 errors generated.


vim +219 arch/x86/kernel/kexec-bzimage64.c

6a2c20e7d8900ed Vivek Goyal 2014-08-08 209
b69a2afd5afce9b Jonathan McDowell 2022-06-30 210 static void
b69a2afd5afce9b Jonathan McDowell 2022-06-30 211 setup_ima_state(const struct kimage *image, struct boot_params *params,
b69a2afd5afce9b Jonathan McDowell 2022-06-30 212 unsigned long params_load_addr,
b69a2afd5afce9b Jonathan McDowell 2022-06-30 213 unsigned int ima_setup_data_offset)
b69a2afd5afce9b Jonathan McDowell 2022-06-30 214 {
b69a2afd5afce9b Jonathan McDowell 2022-06-30 215 struct setup_data *sd = (void *)params + ima_setup_data_offset;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 216 unsigned long setup_data_phys;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 217 struct ima_setup_data *ima;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 218
b69a2afd5afce9b Jonathan McDowell 2022-06-30 @219 if (!image->ima_buffer_size)
b69a2afd5afce9b Jonathan McDowell 2022-06-30 220 return;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 221
b69a2afd5afce9b Jonathan McDowell 2022-06-30 222 sd->type = SETUP_IMA;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 223 sd->len = sizeof(*ima);
b69a2afd5afce9b Jonathan McDowell 2022-06-30 224
b69a2afd5afce9b Jonathan McDowell 2022-06-30 225 ima = (void *)sd + sizeof(struct setup_data);
b69a2afd5afce9b Jonathan McDowell 2022-06-30 @226 ima->addr = image->ima_buffer_addr;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 227 ima->size = image->ima_buffer_size;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 228
b69a2afd5afce9b Jonathan McDowell 2022-06-30 229 /* Add setup data */
b69a2afd5afce9b Jonathan McDowell 2022-06-30 230 setup_data_phys = params_load_addr + ima_setup_data_offset;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 231 sd->next = params->hdr.setup_data;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 232 params->hdr.setup_data = setup_data_phys;
b69a2afd5afce9b Jonathan McDowell 2022-06-30 233 }
b69a2afd5afce9b Jonathan McDowell 2022-06-30 234

:::::: The code at line 219 was first introduced by commit
:::::: b69a2afd5afce9bf6d56e349d6ab592c916e20f2 x86/kexec: Carry forward IMA measurement log on kexec

:::::: TO: Jonathan McDowell <noodles@fb.com>
:::::: CC: Borislav Petkov <bp@suse.de>

--
0-DAY CI Kernel Test Service
https://01.org/lkp

\
 
 \ /
  Last update: 2022-07-10 01:22    [W:0.026 / U:0.448 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site