Re: [PATCH] KVM: fix overflow of zero page refcount ksm use_zero_pages

From: kbuild test robot
Date: Mon Oct 14 2019 - 08:04:20 EST

Hi Zhuang,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on kvm/linux-next]
[cannot apply to v5.4-rc3 next-20191011]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see]

base: linux-next
config: x86_64-lkp (attached as .config)
compiler: gcc-7 (Debian 7.4.0-13) 7.4.0
# save the attached .config to linux build tree
make ARCH=x86_64

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

arch/x86/kvm/../../../virt/kvm/kvm_main.c: In function 'kvm_is_reserved_pfn':
>> arch/x86/kvm/../../../virt/kvm/kvm_main.c:155:23: error: 'page' undeclared (first use in this function)
return PageReserved(page) && !is_zero_pfn(pfn);
arch/x86/kvm/../../../virt/kvm/kvm_main.c:155:23: note: each undeclared identifier is reported only once for each function it appears in

vim +/page +155 arch/x86/kvm/../../../virt/kvm/kvm_main.c

152 bool kvm_is_reserved_pfn(kvm_pfn_t pfn)
153 {
154 if (pfn_valid(pfn))
> 155 return PageReserved(page) && !is_zero_pfn(pfn);
157 return true;
158 }

0-DAY kernel test infrastructure Open Source Technology Center Intel Corporation

Attachment: .config.gz
Description: application/gzip