RE: [PATCH v4 3/3] mm: fix double page fault on arm64 if PTE_AF is cleared

From: Justin He (Arm Technology China)
Date: Wed Sep 18 2019 - 21:46:51 EST




> -----Original Message-----
> From: kbuild test robot <lkp@xxxxxxxxx>
> Sent: 2019年9月19日 3:36
> To: Justin He (Arm Technology China) <Justin.He@xxxxxxx>
> Cc: kbuild-all@xxxxxx; Catalin Marinas <Catalin.Marinas@xxxxxxx>; Will
> Deacon <will@xxxxxxxxxx>; Mark Rutland <Mark.Rutland@xxxxxxx>;
> James Morse <James.Morse@xxxxxxx>; Marc Zyngier <maz@xxxxxxxxxx>;
> Matthew Wilcox <willy@xxxxxxxxxxxxx>; Kirill A. Shutemov
> <kirill.shutemov@xxxxxxxxxxxxxxx>; linux-arm-kernel@xxxxxxxxxxxxxxxxxxx;
> linux-kernel@xxxxxxxxxxxxxxx; linux-mm@xxxxxxxxx; Suzuki Poulose
> <Suzuki.Poulose@xxxxxxx>; Punit Agrawal <punitagrawal@xxxxxxxxx>;
> Anshuman Khandual <Anshuman.Khandual@xxxxxxx>; Jun Yao
> <yaojun8558363@xxxxxxxxx>; Alex Van Brunt <avanbrunt@xxxxxxxxxx>;
> Robin Murphy <Robin.Murphy@xxxxxxx>; Thomas Gleixner
> <tglx@xxxxxxxxxxxxx>; Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>;
> jglisse@xxxxxxxxxx; Ralph Campbell <rcampbell@xxxxxxxxxx>;
> hejianet@xxxxxxxxx; Kaly Xin (Arm Technology China)
> <Kaly.Xin@xxxxxxx>; Justin He (Arm Technology China)
> <Justin.He@xxxxxxx>
> Subject: Re: [PATCH v4 3/3] mm: fix double page fault on arm64 if PTE_AF
> is cleared
>
> Hi Jia,
>
> Thank you for the patch! Yet something to improve:
>
> [auto build test ERROR on linus/master]
> [cannot apply to v5.3 next-20190917]
> [if your patch is applied to the wrong git tree, please drop us a note to help
> improve the system]
>
> url: https://github.com/0day-ci/linux/commits/Jia-He/fix-double-page-
> fault-on-arm64/20190918-220036
> config: arm64-allnoconfig (attached as .config)
> compiler: aarch64-linux-gcc (GCC) 7.4.0
> reproduce:
> wget https://raw.githubusercontent.com/intel/lkp-
> tests/master/sbin/make.cross -O ~/bin/make.cross
> chmod +x ~/bin/make.cross
> # save the attached .config to linux build tree
> GCC_VERSION=7.4.0 make.cross ARCH=arm64
>
> If you fix the issue, kindly add following tag
> Reported-by: kbuild test robot <lkp@xxxxxxxxx>
>
> All errors (new ones prefixed by >>):
>
> mm/memory.o: In function `wp_page_copy':
> >> memory.c:(.text+0x8fc): undefined reference to `cpu_has_hw_af'
> memory.c:(.text+0x8fc): relocation truncated to fit: R_AARCH64_CALL26
> against undefined symbol `cpu_has_hw_af'
>
Ah, I should add a stub for CONFIG_ARM64_HW_AFDBM is 'N' on arm64 arch
Will fix it asap

--
Cheers,
Justin (Jia He)


> 0-DAY kernel test infrastructure Open Source Technology Center
> https://lists.01.org/pipermail/kbuild-all Intel Corporation
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.