Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1340573imm; Tue, 2 Oct 2018 06:47:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV617zrIMuBD/j5b0HFq8I1nA79ByPE2SmDkOeCfsaQOLMN8tl4QjF91Q2UVOYHC/BOh1zkYt X-Received: by 2002:a63:d34f:: with SMTP id u15-v6mr14699184pgi.325.1538488070593; Tue, 02 Oct 2018 06:47:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538488070; cv=none; d=google.com; s=arc-20160816; b=mIDHxF95FM49sOnAFjAWOlcJ1cWt2ztn+fE5rXeNl0aceF2V4ZPFjj5CcYr+WLvt3T A1KP7zvVX8nhA9IQMdkubRkJGM1NkzxPyKHdUmBmyk+kcdi0ed5RBnQFJtu+LJTZ53kk D1iPki/BaA58D7imlsR1lDszSLPIFNQ6idhoPXejv4Rgy8kTynhkDK6IFojvSaSb0Rm5 o8kD8XvwYrWN2F7fTirfgXJuqT3nH7qOn+gNsVvV10iS61KmlcyW7PEwlpGFHCGjlBpx l59+KFZWKnxqPQuBob/wc47G8WKWY8xAjpldviuzvJkeVFqdctYHe3cYC0sLv4vRbxAk 6YZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from; bh=ECyZq7pQu+09LOvaYOq0Nk5bgCEm+HuiWjMGC58X29U=; b=QZyQGqEZi+Ei7OgVSniaf/cygmADKOthyoQKLbXMQIoGtfodzbEejn1EWdCyqQH6Cj ClE4RBia3yU+bXwhidNgEWnByur9ULiCDWGjfL7XysQndA+fxiCFvC3p4u1/XB8nUtOf onTy7dIX6eTXYX7X7NK5hwIvcOgmFug1B1wbTJSg25RGYo5fJzOHoG4+G0OdmvWrccSK Ts/diLyHX0mCfT9CR4JuGXD52H9F2cB8baEZnrG/XZerg/RuwxUB7F6a7doRHEMrckvF rakrYw3y3i8Vn78bkybYR1ZGHBVPWK3Ci07v93H5SgMEhaiMGMCprSaBP7oc+AX+UdT1 0TDA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j91-v6si13522397pld.228.2018.10.02.06.47.35; Tue, 02 Oct 2018 06:47:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732685AbeJBUS4 (ORCPT + 99 others); Tue, 2 Oct 2018 16:18:56 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:35656 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730901AbeJBUSz (ORCPT ); Tue, 2 Oct 2018 16:18:55 -0400 Received: from localhost (24-104-73-23-ip-static.hfc.comcastbusiness.net [24.104.73.23]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id DAEBF5AA; Tue, 2 Oct 2018 13:35:23 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, kbuild test robot , Randy Dunlap , Thomas Gleixner , Andy Lutomirski , Sasha Levin Subject: [PATCH 4.14 137/137] x86/pti: Fix section mismatch warning/error Date: Tue, 2 Oct 2018 06:25:38 -0700 Message-Id: <20181002132508.095916361@linuxfoundation.org> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181002132458.446916963@linuxfoundation.org> References: <20181002132458.446916963@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Randy Dunlap [ Upstream commit ff924c5a1ec7548825cc2d07980b03be4224ffac ] Fix the section mismatch warning in arch/x86/mm/pti.c: WARNING: vmlinux.o(.text+0x6972a): Section mismatch in reference from the function pti_clone_pgtable() to the function .init.text:pti_user_pagetable_walk_pte() The function pti_clone_pgtable() references the function __init pti_user_pagetable_walk_pte(). This is often because pti_clone_pgtable lacks a __init annotation or the annotation of pti_user_pagetable_walk_pte is wrong. FATAL: modpost: Section mismatches detected. Fixes: 85900ea51577 ("x86/pti: Map the vsyscall page if needed") Reported-by: kbuild test robot Signed-off-by: Randy Dunlap Signed-off-by: Thomas Gleixner Cc: Andy Lutomirski Link: https://lkml.kernel.org/r/43a6d6a3-d69d-5eda-da09-0b1c88215a2a@infradead.org Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/x86/mm/pti.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/arch/x86/mm/pti.c +++ b/arch/x86/mm/pti.c @@ -224,7 +224,7 @@ static __init pmd_t *pti_user_pagetable_ * * Returns a pointer to a PTE on success, or NULL on failure. */ -static __init pte_t *pti_user_pagetable_walk_pte(unsigned long address) +static pte_t *pti_user_pagetable_walk_pte(unsigned long address) { gfp_t gfp = (GFP_KERNEL | __GFP_NOTRACK | __GFP_ZERO); pmd_t *pmd;