Received: by 10.223.176.46 with SMTP id f43csp2650104wra; Mon, 22 Jan 2018 00:53:47 -0800 (PST) X-Google-Smtp-Source: AH8x227oUPTQ8LfmQ7axjBNgEwKf0rQALghSOGgeh4ZqJj8OMRahIeMNhROJh8HHgyOawkG/XQdq X-Received: by 2002:a17:902:e65:: with SMTP id 92-v6mr29130plw.148.1516611227047; Mon, 22 Jan 2018 00:53:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516611227; cv=none; d=google.com; s=arc-20160816; b=UL1l3gaQq6s/EvMY2ds1qU00vz1Ou64bQBDfDZ5P3mitMeJbd5bwOPBJc+E82LKbpr pUS2fTHpA/CcChkG1j1Oml4Gg2HIRy/3DmObz251P2nkGFgOmdiqyiiB6tPokhVqtHoz 4gAniV38fS/IkCsn2fWZ6kWeAeqRyx8/Eq7MfIioAIBRoIUDQqPbXqY53gM85TPEf0Td OapawIk9O73OqsqoPnKyqVxvvHgM7ukZQrsQYohL9KNmXZOw5A2u6KVJqsXDmzTZXiMO CRT3AfgJ0ySal8DqyPZ9lMY4neIwTDvRL/1FaRhT7I/Bb4XQ+OUSZa1gkauF3lZ1Q+lO TfrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=G9uEW1Tj9yEf0nAIuJMBfpriELyrDBYhrD+3gpb0sWw=; b=IWKuMiXj5LX/3TtP2peZTK24XUMsNWSRq2TenYH8W5W4VzH879cPgDaEtULEvIxrOy Kt78kFzWWfrviAzunorvic1Uw75jqhTHF3XAjZ09RGtjCapuv8fQu+4np6uo6tKYUrqK /Yo9cmgIB8e4xuSjFBFkNXuMtV6bskf/r+zyJ141n2Fj5sorrdt5DOh3dtrDTiBwUXPl WgddxdavxWg0gr8P6E3kd6ukcxgKvYoM27qUfIUCjnr7FlSuoDw54KBaxhoiGoE8Opbq +/mmDA5ilsvnBdSvbJ84UZY2rVtTqfJDvjwW8VkiR24ZEX4Tb6JWtI/Nmqxiz2BfHpOy uKKA== 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 v11si13364727pgb.825.2018.01.22.00.53.33; Mon, 22 Jan 2018 00:53:47 -0800 (PST) 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 S1753077AbeAVIv4 (ORCPT + 99 others); Mon, 22 Jan 2018 03:51:56 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:33460 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753058AbeAVIvx (ORCPT ); Mon, 22 Jan 2018 03:51:53 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id D9136D08; Mon, 22 Jan 2018 08:51:52 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Andi Kleen , Thomas Gleixner Subject: [PATCH 4.14 39/89] x86/idt: Mark IDT tables __initconst Date: Mon, 22 Jan 2018 09:45:19 +0100 Message-Id: <20180122083958.556306017@linuxfoundation.org> X-Mailer: git-send-email 2.16.0 In-Reply-To: <20180122083954.683903493@linuxfoundation.org> References: <20180122083954.683903493@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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: Andi Kleen commit 327867faa4d66628fcd92a843adb3345736a5313 upstream. const variables must use __initconst, not __initdata. Fix this up for the IDT tables, which got it consistently wrong. Fixes: 16bc18d895ce ("x86/idt: Move 32-bit idt_descr to C code") Signed-off-by: Andi Kleen Signed-off-by: Thomas Gleixner Link: https://lkml.kernel.org/r/20171222001821.2157-7-andi@firstfloor.org Signed-off-by: Greg Kroah-Hartman --- arch/x86/kernel/idt.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) --- a/arch/x86/kernel/idt.c +++ b/arch/x86/kernel/idt.c @@ -56,7 +56,7 @@ struct idt_data { * Early traps running on the DEFAULT_STACK because the other interrupt * stacks work only after cpu_init(). */ -static const __initdata struct idt_data early_idts[] = { +static const __initconst struct idt_data early_idts[] = { INTG(X86_TRAP_DB, debug), SYSG(X86_TRAP_BP, int3), #ifdef CONFIG_X86_32 @@ -70,7 +70,7 @@ static const __initdata struct idt_data * the traps which use them are reinitialized with IST after cpu_init() has * set up TSS. */ -static const __initdata struct idt_data def_idts[] = { +static const __initconst struct idt_data def_idts[] = { INTG(X86_TRAP_DE, divide_error), INTG(X86_TRAP_NMI, nmi), INTG(X86_TRAP_BR, bounds), @@ -108,7 +108,7 @@ static const __initdata struct idt_data /* * The APIC and SMP idt entries */ -static const __initdata struct idt_data apic_idts[] = { +static const __initconst struct idt_data apic_idts[] = { #ifdef CONFIG_SMP INTG(RESCHEDULE_VECTOR, reschedule_interrupt), INTG(CALL_FUNCTION_VECTOR, call_function_interrupt), @@ -150,7 +150,7 @@ static const __initdata struct idt_data * Early traps running on the DEFAULT_STACK because the other interrupt * stacks work only after cpu_init(). */ -static const __initdata struct idt_data early_pf_idts[] = { +static const __initconst struct idt_data early_pf_idts[] = { INTG(X86_TRAP_PF, page_fault), }; @@ -158,7 +158,7 @@ static const __initdata struct idt_data * Override for the debug_idt. Same as the default, but with interrupt * stack set to DEFAULT_STACK (0). Required for NMI trap handling. */ -static const __initdata struct idt_data dbg_idts[] = { +static const __initconst struct idt_data dbg_idts[] = { INTG(X86_TRAP_DB, debug), INTG(X86_TRAP_BP, int3), }; @@ -180,7 +180,7 @@ gate_desc debug_idt_table[IDT_ENTRIES] _ * The exceptions which use Interrupt stacks. They are setup after * cpu_init() when the TSS has been initialized. */ -static const __initdata struct idt_data ist_idts[] = { +static const __initconst struct idt_data ist_idts[] = { ISTG(X86_TRAP_DB, debug, DEBUG_STACK), ISTG(X86_TRAP_NMI, nmi, NMI_STACK), SISTG(X86_TRAP_BP, int3, DEBUG_STACK),