lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Date:   Tue, 16 Aug 2022 23:40:18 +0800
From:   kernel test robot <lkp@...el.com>
To:     Isaku Yamahata <isaku.yamahata@...el.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Paolo Bonzini <pbonzini@...hat.com>
Subject: [intel-tdx:kvm-upstream-workaround 91/308]
 arch/x86/kvm/vmx/tdx.c:332:9: error: 'tdx' undeclared

tree:   https://github.com/intel/tdx.git kvm-upstream-workaround
head:   85c097fdd1667a842a9e75d8f658fc16bd72981a
commit: 90c8f0dbd2fb21b26877851078f8bbe2bdda28ef [91/308] KVM: TDX: vcpu_run: save/restore host state(host kernel gs)
config: x86_64-allyesconfig
compiler: gcc-11 (Debian 11.3.0-5) 11.3.0
reproduce (this is a W=1 build):
        # https://github.com/intel/tdx/commit/90c8f0dbd2fb21b26877851078f8bbe2bdda28ef
        git remote add intel-tdx https://github.com/intel/tdx.git
        git fetch --no-tags intel-tdx kvm-upstream-workaround
        git checkout 90c8f0dbd2fb21b26877851078f8bbe2bdda28ef
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash arch/x86/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

Note: the intel-tdx/kvm-upstream-workaround HEAD 85c097fdd1667a842a9e75d8f658fc16bd72981a builds fine.
      It only hurts bisectability.

All errors (new ones prefixed by >>):

   arch/x86/kvm/vmx/tdx.c: In function 'tdx_vcpu_create':
>> arch/x86/kvm/vmx/tdx.c:332:9: error: 'tdx' undeclared (first use in this function)
     332 |         tdx->host_state_need_save = true;
         |         ^~~
   arch/x86/kvm/vmx/tdx.c:332:9: note: each undeclared identifier is reported only once for each function it appears in


vim +/tdx +332 arch/x86/kvm/vmx/tdx.c

   313	
   314	int tdx_vcpu_create(struct kvm_vcpu *vcpu)
   315	{
   316		/* TDX only supports x2APIC, which requires an in-kernel local APIC. */
   317		if (!vcpu->arch.apic)
   318			return -EINVAL;
   319	
   320		fpstate_set_confidential(&vcpu->arch.guest_fpu);
   321	
   322		vcpu->arch.efer = EFER_SCE | EFER_LME | EFER_LMA | EFER_NX;
   323	
   324		vcpu->arch.cr0_guest_owned_bits = -1ul;
   325		vcpu->arch.cr4_guest_owned_bits = -1ul;
   326	
   327		vcpu->arch.tsc_offset = to_kvm_tdx(vcpu->kvm)->tsc_offset;
   328		vcpu->arch.l1_tsc_offset = vcpu->arch.tsc_offset;
   329		vcpu->arch.guest_state_protected =
   330			!(to_kvm_tdx(vcpu->kvm)->attributes & TDX_TD_ATTRIBUTE_DEBUG);
   331	
 > 332		tdx->host_state_need_save = true;
   333		tdx->host_state_need_restore = false;
   334	
   335		return 0;
   336	}
   337	

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

View attachment "config" of type "text/plain" (289637 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ