Received: by 10.223.176.5 with SMTP id f5csp700872wra; Fri, 9 Feb 2018 05:56:24 -0800 (PST) X-Google-Smtp-Source: AH8x224UgkJQqKUHLiFsLhAbuDj5kD51u3S2DX+kiC0KhBSuhdSWRQEx1ceSueyK3HnCWckOOlAN X-Received: by 2002:a17:902:74c1:: with SMTP id f1-v6mr1025027plt.434.1518184584453; Fri, 09 Feb 2018 05:56:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518184584; cv=none; d=google.com; s=arc-20160816; b=guKz8yvJfqerOaBZ+n+oOmlk15mABgpS8qi40LJ/FuPyUQzlb57EIj+W+Kmvr/DnXm gLq6AhMkuU0sIhKG2Iq7LXay7ZB07pB4yCmy3SluPSd58Wg+9IPY5iohnAOtQK82Xhw0 i3g/F7UTvlDK+an8lR4mQK+ik/v07EvSIM4CiTlApnDVZuaLvcLqYJ91cBpSR0eAll9g SPEEM+MPD+oRQcODJu0x4OGvPiLgaTcH+sobxulsmDvmvGYCv/eaKutj+uek8sx73wlz +Z06RlOrRVv4XmnY8J8zceFLSF8oRoh4vy2VvcUybLn6r+spO+4pgoIjbD06CGTRrVHi lopQ== 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=FoqucepkZXc6edLSAXduBiFLeTBfGwLF6I++VpTWZAs=; b=rfBxYFV4fOpsDTJaXeaJ/gJNCyGWQ0JczdOctestmKLw4ngOZ1aNImFWu9KLs77jYB 0mSqBNaSyscNDmuDPRDIwt/S48O0vRdQrr1zWMBcmqBkJD9WLZjDXae2Sn6D8JEgv/d7 CcuQC3nyKXKHmqhrKRmK3SpFyRHhYbI9WFSfx9e7tdgJM3VEkLQFmYQeVEFPNxvb+qMm N0EMA/5Lc1/NzcITarfbPYHVM+e0Y6wwYP/NKm9/DrkPJ+DM/S5guSPkm8Lu/7RG4hWO hxua3v0VKmCpsY19mO6VadiIMAoVgqt9ijyjpj40PEobnUmdfZvFSWszXBs9Imyvv2NG itSg== 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 m27si1774062pfg.64.2018.02.09.05.56.10; Fri, 09 Feb 2018 05:56:24 -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 S1753673AbeBINph (ORCPT + 99 others); Fri, 9 Feb 2018 08:45:37 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:51898 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753658AbeBINpf (ORCPT ); Fri, 9 Feb 2018 08:45:35 -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 7F04F10F1; Fri, 9 Feb 2018 13:45:34 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Vineet Gupta , Sudip Mukherjee , Arnd Bergmann , Alexey Brodkin , Russell King , Jose Abreu , Andrew Morton , Linus Torvalds , Evgeniy Didin Subject: [PATCH 4.14 21/22] kernel/exit.c: export abort() to modules Date: Fri, 9 Feb 2018 14:40:10 +0100 Message-Id: <20180209133935.673577380@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180209133934.024795822@linuxfoundation.org> References: <20180209133934.024795822@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: Andrew Morton commit dc8635b78cd8669c37e230058d18c33af7451ab1 upstream. gcc -fisolate-erroneous-paths-dereference can generate calls to abort() from modular code too. [arnd@arndb.de: drop duplicate exports of abort()] Link: http://lkml.kernel.org/r/20180102103311.706364-1-arnd@arndb.de Reported-by: Vineet Gupta Cc: Sudip Mukherjee Cc: Arnd Bergmann Cc: Alexey Brodkin Cc: Russell King Cc: Jose Abreu Signed-off-by: Andrew Morton Signed-off-by: Arnd Bergmann Signed-off-by: Linus Torvalds Cc: Evgeniy Didin Signed-off-by: Greg Kroah-Hartman --- arch/arm/kernel/traps.c | 1 - arch/m32r/kernel/traps.c | 1 - arch/unicore32/kernel/traps.c | 1 - kernel/exit.c | 1 + 4 files changed, 1 insertion(+), 3 deletions(-) --- a/arch/arm/kernel/traps.c +++ b/arch/arm/kernel/traps.c @@ -790,7 +790,6 @@ void abort(void) /* if that doesn't kill us, halt */ panic("Oops failed to kill thread"); } -EXPORT_SYMBOL(abort); void __init trap_init(void) { --- a/arch/m32r/kernel/traps.c +++ b/arch/m32r/kernel/traps.c @@ -122,7 +122,6 @@ void abort(void) /* if that doesn't kill us, halt */ panic("Oops failed to kill thread"); } -EXPORT_SYMBOL(abort); void __init trap_init(void) { --- a/arch/unicore32/kernel/traps.c +++ b/arch/unicore32/kernel/traps.c @@ -298,7 +298,6 @@ void abort(void) /* if that doesn't kill us, halt */ panic("Oops failed to kill thread"); } -EXPORT_SYMBOL(abort); void __init trap_init(void) { --- a/kernel/exit.c +++ b/kernel/exit.c @@ -1763,3 +1763,4 @@ __weak void abort(void) /* if that doesn't kill us, halt */ panic("Oops failed to kill thread"); } +EXPORT_SYMBOL(abort);