Received: by 10.223.185.116 with SMTP id b49csp1099854wrg; Fri, 23 Feb 2018 11:57:06 -0800 (PST) X-Google-Smtp-Source: AH8x225B2qbLvATtDnP54iPUxsl584k9BFuzH5V4G7rirX6NytOdIffC8wtUIQG8arTADuWiSbrF X-Received: by 2002:a17:902:5596:: with SMTP id g22-v6mr2659031pli.4.1519415826129; Fri, 23 Feb 2018 11:57:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519415826; cv=none; d=google.com; s=arc-20160816; b=qN9C/AoG48Bwo3wjkzj/AHA6US2XptrmYK6GZ54LNqfk/ov2c7w7g0Jj1F3KGwQcFT eeh0FukC6h+GZaAO9+/dMCNbdywWnSmwL+iKMFYvr97Mzy88OIVR+76EcZ3AnBLNEUT/ Igp2q6SHP9H5TLXS3YXDC5dWY8tZXM/xVtFfsz22HgLIEv2MbI4vGOzT9VlzjKe3eOA8 6iWZex0nnaa4GevB7P28V80U2SCFcg0ACxkSE4YI15kifQ8RaMs47KIDa+nyNuNvabSX Ig5Ut/bERhZG6ymwyemowgRnD7+cgpaPqUv4eZtKwi8Gc5PjdVrxcbMXw9RhetmFiW1j FKcw== 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=CvKpxu+6vo2skOSS0zqQZYDKcFuAVh2VM5O9WZo8o18=; b=HHh4/0fVXImxhyhDgLEgaI6CGRnw/K2G+I4HW2EOS47kSntr+++CmCUA6RrEmijcRK /0PX9W2ny1o3EGs8BVN7V8ZYdxP1vu6qQOWQbbK6TbFBf0gjQWjy4GeS7Q4v7j1CG/Sr 5u93pwEHQPRJlPysHKZw9jyuyOk4NHz7n21lbbJcy4Pxi6V8e6Bdw2PvFM+5lPrSmvWj wu5RKlJGZARzXhRz0jj0gw4GpyhN8+WSagNhZtE47Q5vkdIVD9m6IWzZov3yY78lWGBk 9gA3SZeIORcIsVPF5tRPwgRz7xQZLWOttk9eMcFfDyGZGbvJd6Nt/1fxVqb6mhUAA0mK yt7g== 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 t3-v6si2165861plm.224.2018.02.23.11.56.51; Fri, 23 Feb 2018 11:57:06 -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 S933668AbeBWSox (ORCPT + 99 others); Fri, 23 Feb 2018 13:44:53 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:42914 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933660AbeBWSou (ORCPT ); Fri, 23 Feb 2018 13:44:50 -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 99AAB122E; Fri, 23 Feb 2018 18:44:45 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Greg Ungerer , Sasha Levin Subject: [PATCH 4.9 060/145] m68k: add missing SOFTIRQENTRY_TEXT linker section Date: Fri, 23 Feb 2018 19:26:06 +0100 Message-Id: <20180223170732.556947141@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180223170724.669759283@linuxfoundation.org> References: <20180223170724.669759283@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review 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.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Greg Ungerer [ Upstream commit 969de0988b77e5a57aac2f7270191a3c50540c52 ] Commit be7635e7287e ("arch, ftrace: for KASAN put hard/soft IRQ entries into separate sections") added a new linker section, SOFTIRQENTRY_TEXT, to the linker scripts for most architectures. It didn't add it to any of the linker scripts for the m68k architecture. This was not really a problem because it is only defined if either of CONFIG_FUNCTION_GRAPH_TRACER or CONFIG_KASAN are enabled - which can never be true for m68k. However commit 229a71860547 ("irq: Make the irqentry text section unconditional") means that SOFTIRQENTRY_TEXT is now always defined. So on m68k we now end up with a separate ELF section for .softirqentry.text instead of it being part of the .text section. On some m68k targets in some configurations this can also cause a fatal link error: LD vmlinux /usr/local/bin/../m68k-uclinux/bin/ld.real: section .softirqentry.text loaded at [0000000010de10c0,0000000010de12dd] overlaps section .rodata loaded at [0000000010de10c0,0000000010e0fd67] To fix add in the missing SOFTIRQENTRY_TEXT section into the m68k linker scripts. I noticed that m68k is also missing the IRQENTRY_TEXT section, so this patch also adds an entry for that too. Signed-off-by: Greg Ungerer Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- arch/m68k/kernel/vmlinux-nommu.lds | 2 ++ arch/m68k/kernel/vmlinux-std.lds | 2 ++ arch/m68k/kernel/vmlinux-sun3.lds | 2 ++ 3 files changed, 6 insertions(+) --- a/arch/m68k/kernel/vmlinux-nommu.lds +++ b/arch/m68k/kernel/vmlinux-nommu.lds @@ -44,6 +44,8 @@ SECTIONS { .text : { HEAD_TEXT TEXT_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT SCHED_TEXT CPUIDLE_TEXT LOCK_TEXT --- a/arch/m68k/kernel/vmlinux-std.lds +++ b/arch/m68k/kernel/vmlinux-std.lds @@ -15,6 +15,8 @@ SECTIONS .text : { HEAD_TEXT TEXT_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT SCHED_TEXT CPUIDLE_TEXT LOCK_TEXT --- a/arch/m68k/kernel/vmlinux-sun3.lds +++ b/arch/m68k/kernel/vmlinux-sun3.lds @@ -15,6 +15,8 @@ SECTIONS .text : { HEAD_TEXT TEXT_TEXT + IRQENTRY_TEXT + SOFTIRQENTRY_TEXT SCHED_TEXT CPUIDLE_TEXT LOCK_TEXT