* [arm-platforms:kvm-arm64/ptrauth-fixes 29/29] arch/arm64/kvm/hyp/debug-sr.c:188:19: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2020-06-06 22:44 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-06 22:44 UTC (permalink / raw)
To: Marc Zyngier; +Cc: kbuild-all, linux-arm-kernel
[-- Attachment #1: Type: text/plain, Size: 4159 bytes --]
tree: https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git kvm-arm64/ptrauth-fixes
head: 393909d3365ca0d4400b444d18e4b8b00f09e84c
commit: 393909d3365ca0d4400b444d18e4b8b00f09e84c [29/29] KVM: arm64: Remove host_cpu_context member from vcpu structure
config: arm64-randconfig-s032-20200607 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-247-gcadbd124-dirty
git checkout 393909d3365ca0d4400b444d18e4b8b00f09e84c
# save the attached .config to linux build tree
make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
sparse warnings: (new ones prefixed by >>)
>> arch/arm64/kvm/hyp/debug-sr.c:188:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct kvm_cpu_context *host_ctxt @@ got struct kvm_cpu_context [noderef] <asn:3> * @@
>> arch/arm64/kvm/hyp/debug-sr.c:188:19: sparse: expected struct kvm_cpu_context *host_ctxt
>> arch/arm64/kvm/hyp/debug-sr.c:188:19: sparse: got struct kvm_cpu_context [noderef] <asn:3> *
arch/arm64/kvm/hyp/debug-sr.c:210:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct kvm_cpu_context *host_ctxt @@ got struct kvm_cpu_context [noderef] <asn:3> * @@
arch/arm64/kvm/hyp/debug-sr.c:210:19: sparse: expected struct kvm_cpu_context *host_ctxt
arch/arm64/kvm/hyp/debug-sr.c:210:19: sparse: got struct kvm_cpu_context [noderef] <asn:3> *
--
>> arch/arm64/kvm/hyp/switch.c:547:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct kvm_cpu_context *ctxt @@ got struct kvm_cpu_context [noderef] <asn:3> * @@
>> arch/arm64/kvm/hyp/switch.c:547:14: sparse: expected struct kvm_cpu_context *ctxt
>> arch/arm64/kvm/hyp/switch.c:547:14: sparse: got struct kvm_cpu_context [noderef] <asn:3> *
>> arch/arm64/kvm/hyp/switch.c:718:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct kvm_cpu_context *host_ctxt @@ got struct kvm_cpu_context [noderef] <asn:3> * @@
>> arch/arm64/kvm/hyp/switch.c:718:19: sparse: expected struct kvm_cpu_context *host_ctxt
arch/arm64/kvm/hyp/switch.c:718:19: sparse: got struct kvm_cpu_context [noderef] <asn:3> *
arch/arm64/kvm/hyp/switch.c:823:19: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct kvm_cpu_context *host_ctxt @@ got struct kvm_cpu_context [noderef] <asn:3> * @@
arch/arm64/kvm/hyp/switch.c:823:19: sparse: expected struct kvm_cpu_context *host_ctxt
arch/arm64/kvm/hyp/switch.c:823:19: sparse: got struct kvm_cpu_context [noderef] <asn:3> *
arch/arm64/kvm/hyp/switch.c:656:13: sparse: sparse: dereference of noderef expression
arch/arm64/kvm/hyp/switch.c:668:13: sparse: sparse: dereference of noderef expression
vim +188 arch/arm64/kvm/hyp/debug-sr.c
170
171 void __hyp_text __debug_switch_to_guest(struct kvm_vcpu *vcpu)
172 {
173 struct kvm_cpu_context *host_ctxt;
174 struct kvm_cpu_context *guest_ctxt;
175 struct kvm_guest_debug_arch *host_dbg;
176 struct kvm_guest_debug_arch *guest_dbg;
177
178 /*
179 * Non-VHE: Disable and flush SPE data generation
180 * VHE: The vcpu can run, but it can't hide.
181 */
182 if (!has_vhe())
183 __debug_save_spe_nvhe(&vcpu->arch.host_debug_state.pmscr_el1);
184
185 if (!(vcpu->arch.flags & KVM_ARM64_DEBUG_DIRTY))
186 return;
187
> 188 host_ctxt = &__hyp_this_cpu_ptr(kvm_host_data)->host_ctxt;
189 guest_ctxt = &vcpu->arch.ctxt;
190 host_dbg = &vcpu->arch.host_debug_state.regs;
191 guest_dbg = kern_hyp_va(vcpu->arch.debug_ptr);
192
193 __debug_save_state(vcpu, host_dbg, host_ctxt);
194 __debug_restore_state(vcpu, guest_dbg, guest_ctxt);
195 }
196
---
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: 35783 bytes --]
[-- Attachment #3: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-06 22:45 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-06 22:44 [arm-platforms:kvm-arm64/ptrauth-fixes 29/29] arch/arm64/kvm/hyp/debug-sr.c:188:19: sparse: sparse: incorrect type in assignment (different address spaces) kernel test robot
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).