From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.1 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, FSL_HELO_FAKE,INCLUDES_PATCH,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7882C3F2C6 for ; Tue, 3 Mar 2020 14:58:02 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 454EE20842 for ; Tue, 3 Mar 2020 14:58:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="i+qnpQSB" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 454EE20842 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 8831C6B0005; Tue, 3 Mar 2020 09:58:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 833B56B0006; Tue, 3 Mar 2020 09:58:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 6D61F6B0007; Tue, 3 Mar 2020 09:58:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0119.hostedemail.com [216.40.44.119]) by kanga.kvack.org (Postfix) with ESMTP id 4F4126B0005 for ; Tue, 3 Mar 2020 09:58:01 -0500 (EST) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 1F29D282A for ; Tue, 3 Mar 2020 14:58:01 +0000 (UTC) X-FDA: 76554355962.19.toad76_45f05b3e9c842 X-HE-Tag: toad76_45f05b3e9c842 X-Filterd-Recvd-Size: 7221 Received: from mail-pf1-f193.google.com (mail-pf1-f193.google.com [209.85.210.193]) by imf23.hostedemail.com (Postfix) with ESMTP for ; Tue, 3 Mar 2020 14:58:00 +0000 (UTC) Received: by mail-pf1-f193.google.com with SMTP id q9so1580934pfs.5 for ; Tue, 03 Mar 2020 06:58:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=GJFGyn/8d5ErHNMw57KjLALqI5If5X2Z1m2wATVPFU8=; b=i+qnpQSBKPtiWDrx3R5AfS/+YVkCZFfW3y6VUmlK5qTm+6ZUkc1nD83V99u1pXw9U/ 5deoWdSX47yv83d9lhr/ZrIGNh34HQ/vW6Um4cuv2T414/DJnLBDHueWlcmVBGaV4FZn ZlP4WC97MeR/XS/qD7Tf4AC6nzNNuVdaRZS13lSNu6ADZTx3LA3kYHgW1NDQlMHr7SXr spfT3zi1Q+I0OfN8iUG6rB6DBSg8mPonu+9roLhNXELm4rhb4iXBxlHEg2hP9TJ1H+73 kBpzs2BTSw7tBJK0m+mAPrMU/DPyexIlzY8Rl1O/lPCtH8BXVvDuee3pBzaqDP9b/wNk AikA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to:user-agent; bh=GJFGyn/8d5ErHNMw57KjLALqI5If5X2Z1m2wATVPFU8=; b=SXpqsWUC1nHwmnHW2tkLK64rTFG3hfNIucdyKG+9hYON+pBjup9LqdT4l0Y98WFAOV kAEsqueDvrfLDkcOx56avgwkm0jWYpptagMQq9hyk3Q9uMkw9YdWA9n39SICmKY2WOaa SWO8MEuewwu5M7gstB8sZJOkWiXPoSVVqdDJ9Crmr+zS3VJOrrPx2Fk6D0cK92WFsTH4 okbIDO8z71U9q+qnF0toO8TKYKIJ2QaoIocdwSdt9x5GX5GksvcwZxmUYC30DlXTZuv7 pG2KFJtKE0QFO/otiO4ZFN39hjDDWPgCxLP818kMlcOZY61rfIqV8dLTcGQ/U8e24LOQ dnOA== X-Gm-Message-State: ANhLgQ2aYVFmpH1hK146XoGInsWBP+h50/0xhRPzsCsTZb9XUZoeaDCg Oz/GGS0IeeZay6t5JPy5ZsI= X-Google-Smtp-Source: ADFU+vuCSIFxzYGItAduWa+4fExa+pt2ZOKbBoM8+ykuney3MOwGeDYBTOIZX3KHAu3zsxSf2e/unw== X-Received: by 2002:a62:1dd8:: with SMTP id d207mr4402292pfd.78.1583247479146; Tue, 03 Mar 2020 06:57:59 -0800 (PST) Received: from google.com ([2620:15c:211:1:3e01:2939:5992:52da]) by smtp.gmail.com with ESMTPSA id a3sm8085218pfl.132.2020.03.03.06.57.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Mar 2020 06:57:57 -0800 (PST) Date: Tue, 3 Mar 2020 06:57:56 -0800 From: Minchan Kim To: kbuild test robot Cc: kbuild-all@lists.01.org, Andrew Morton , Linux Memory Management List Subject: Re: [PATCH v7 2/7] mm: introduce external memory hinting API Message-ID: <20200303145756.GA219683@google.com> References: <20200302193630.68771-3-minchan@kernel.org> <202003031853.wHSB4BG2%lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202003031853.wHSB4BG2%lkp@intel.com> User-Agent: Mutt/1.12.2 (2019-09-21) X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue, Mar 03, 2020 at 06:33:03PM +0800, kbuild test robot wrote: > Hi Minchan, > > I love your patch! Yet something to improve: > > [auto build test ERROR on arm64/for-next/core] > [also build test ERROR on arm/for-next m68k/for-next powerpc/next s390/features linus/master v5.6-rc4 next-20200302] > [cannot apply to tip/x86/asm hp-parisc/for-next] > [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 https://stackoverflow.com/a/37406982] > > url: https://github.com/0day-ci/linux/commits/Minchan-Kim/introduce-memory-hinting-API-for-external-process/20200303-044625 > base: https://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-next/core > config: arm64-defconfig (attached as .config) > compiler: aarch64-linux-gcc (GCC) 7.5.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.5.0 make.cross ARCH=arm64 > > If you fix the issue, kindly add following tag > Reported-by: kbuild test robot > > All errors (new ones prefixed by >>): > > aarch64-linux-ld: arch/arm64/kernel/head.o: relocation R_AARCH64_ABS32 against `_kernel_offset_le_lo32' can not be used when making a shared object > aarch64-linux-ld: arch/arm64/kernel/efi-entry.stub.o: relocation R_AARCH64_ABS32 against `__efistub_stext_offset' can not be used when making a shared object > arch/arm64/kernel/head.o: In function `kimage_vaddr': > (.idmap.text+0x0): dangerous relocation: unsupported relocation > arch/arm64/kernel/head.o: In function `__primary_switch': > (.idmap.text+0x378): dangerous relocation: unsupported relocation > (.idmap.text+0x380): dangerous relocation: unsupported relocation > >> arch/arm64/kernel/sys32.o:(.rodata+0xdb8): undefined reference to `__arm64_process_madvise' > > --- > 0-DAY CI Kernel Test Service, Intel Corporation > https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Thanks. I guess I had a mistake so I hope this patch should fix the issue. >From 3cd8bc4dda41d13bcce6fcf6d9252ff684a1929d Mon Sep 17 00:00:00 2001 From: Minchan Kim Date: Tue, 3 Mar 2020 06:53:13 -0800 Subject: [PATCH] mm: fix process_madvise build break for arm64 0-day reported build break from process_madvise on ARM64. aarch64-linux-ld: arch/arm64/kernel/head.o: relocation R_AARCH64_ABS32 against `_kernel_offset_le_lo32' can not be used when making a shared object aarch64-linux-ld: arch/arm64/kernel/efi-entry.stub.o: relocation R_AARCH64_ABS32 against `__efistub_stext_offset' can not be used when making a shared object arch/arm64/kernel/head.o: In function `kimage_vaddr': (.idmap.text+0x0): dangerous relocation: unsupported relocation arch/arm64/kernel/head.o: In function `__primary_switch': (.idmap.text+0x378): dangerous relocation: unsupported relocation (.idmap.text+0x380): dangerous relocation: unsupported relocation >> arch/arm64/kernel/sys32.o:(.rodata+0xdb8): undefined reference to `__arm64_process_madvise' This patch should fix it. Reported-by: kbuild test robot Signed-off-by: Minchan Kim --- arch/arm64/include/asm/unistd32.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/include/asm/unistd32.h b/arch/arm64/include/asm/unistd32.h index 2a27be7a1f91..a1eec8d879d4 100644 --- a/arch/arm64/include/asm/unistd32.h +++ b/arch/arm64/include/asm/unistd32.h @@ -884,7 +884,7 @@ __SYSCALL(__NR_openat2, sys_openat2) #define __NR_pidfd_getfd 438 __SYSCALL(__NR_pidfd_getfd, sys_pidfd_getfd) #define __NR_process_madvise 439 -__SYSCALL(__NR_process_madvise, process_madvise) +__SYSCALL(__NR_process_madvise, sys_process_madvise) /* * Please add new compat syscalls above this comment and update -- 2.25.1.481.gfbce0eb801-goog