From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D1BF12F59 for ; Sat, 9 Jul 2022 23:21:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1657408882; x=1688944882; h=date:from:to:cc:subject:message-id:mime-version; bh=oITfWi4j+w3lW4w5dIdlJ6FTgZPOGpbS4WG1B8GgCiI=; b=UOTdCyd19H3WNMFd7N5TFKJwoPpp3Qg/fY8GCEylphxeFEadNZmtcOA4 PSWkqDBisBcf6ZComPTycgQ6cmf65ur2h0QTjxJGLoRysZqwR16kgKSIz sRiF2oPhZNGYFLzhLf4Tx9VAv61uH5Vjy0m7At/ia1dnjY8Hoe8gT7gzG hTZZLj7AqXFb4eoK8YsqqryFP5gVGPhGPRXOoz0jprcM84lI4Exkxczdq vwxNaAOG16R+rQtiDLxqTrpy8C1uwSe3EbNBO9o5wpRXhft+LmwI/8QwV GUQmdj69lub77pqWILVCxYE9xZMZaPtaUo7TGCjrxFLSeEqSa37+o0BH/ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10403"; a="283220215" X-IronPort-AV: E=Sophos;i="5.92,259,1650956400"; d="scan'208";a="283220215" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2022 16:21:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,259,1650956400"; d="scan'208";a="921367604" Received: from lkp-server01.sh.intel.com (HELO 68b931ab7ac1) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 09 Jul 2022 16:21:20 -0700 Received: from kbuild by 68b931ab7ac1 with local (Exim 4.95) (envelope-from ) id 1oAJlI-000PFo-34; Sat, 09 Jul 2022 23:21:20 +0000 Date: Sun, 10 Jul 2022 07:20:54 +0800 From: kernel test robot To: "Jason A. Donenfeld" Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, zx2c4@kernel.org, linux-kernel@vger.kernel.org Subject: [crng-random:tip 1/2] arch/x86/kernel/kexec-bzimage64.c:219:14: error: no member named 'ima_buffer_size' in 'struct kimage' Message-ID: <202207100728.6J1p2SEd-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 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 :::::: CC: Borislav Petkov -- 0-DAY CI Kernel Test Service https://01.org/lkp