Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp3375706imb; Tue, 5 Mar 2019 07:53:33 -0800 (PST) X-Google-Smtp-Source: APXvYqwyqlGiIn30ZJ5JhnOf8hPsQKrHGFh3RfknuFLLUgMpjn/4mi920bzHZ3ErI6TirO7Jv1iF X-Received: by 2002:a63:54c:: with SMTP id 73mr1911717pgf.295.1551801213699; Tue, 05 Mar 2019 07:53:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551801213; cv=none; d=google.com; s=arc-20160816; b=Kqj6YFgjGZi15lN3s9NRT4QdP2ufIJg6Qb9PmXl6W5lTSk8He1O4+LsEUsvvcZQjxI QWHR/Eeu6gjEA3PmSAmPrpEQRO6a8l9e9UXwbgW6gYsT5aaM6NQtEzOEpfZgix6VlNL/ 27W5DjCjzwobTJ1D6lbYv92fRI0OnBh+5gkSZQ15PHyUqAETf+U3e6VyUgWe8ANv3AJ4 0Lj+gYw9ETyrHdJKLGehc/WSkz3uxxp8daHxS16fPnZ3aAmj5U5csDARh+omrtwOQdKT Kqiommj8QzHoRbJUYFSeL1ISNA29wEbf4D1lULyTVbNwR762C078tLFI5fcXC0QCQJN8 jjnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6yxVokxuAk1/iVTWrYvHBu5kvuQwX2bliTePdb2BbAM=; b=yUpgiL2OXXecja6S7sjUQMz7oq2ljvOFjfAs/6a8rxGm7ib+akjYeO8CnpeVD8eCSY 4JXAKjBiOZhoeJYQGfpCxmhF45CApwmVxcvuVeAlQdfRZ9PqELZY0recTYXsSlCaMHEz N+NwTe2qyZKB+XASOxMtb8MvYq8dCL0l/2RAnJYzreP/j03Ad9M8Z9paJzZpuALJIrnH QNTTaVhJ277Wzu3mhXDeD/Kjv+fJcrMb+evUJFgCyDzk9w6Dwg17I1Nm6LZof0httA+m dGxuTTZdO4p1kR+0XcbGsgQx9Ygtb8mL/8zBgaNo2wlLdMuC4LQeitQGK+7CVO2F1/gk 6AfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=dHL4nYBz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b4si8452811pls.231.2019.03.05.07.53.18; Tue, 05 Mar 2019 07:53:33 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=dHL4nYBz; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728320AbfCEO74 (ORCPT + 99 others); Tue, 5 Mar 2019 09:59:56 -0500 Received: from mail.skyhub.de ([5.9.137.197]:41490 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728228AbfCEO74 (ORCPT ); Tue, 5 Mar 2019 09:59:56 -0500 Received: from zn.tnic (p200300EC2BCD6B004025952DC1DD1BBA.dip0.t-ipconnect.de [IPv6:2003:ec:2bcd:6b00:4025:952d:c1dd:1bba]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id C60C21EC014B; Tue, 5 Mar 2019 15:59:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1551797994; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=6yxVokxuAk1/iVTWrYvHBu5kvuQwX2bliTePdb2BbAM=; b=dHL4nYBzI7CsqWu0mL5QiiwRbvlUxOovp4fbB5OFlRk9zZPCNDZLV8BLcxyH0MQrhtImQA 0RPA2IE1ayuk07aNJemZZWPL2o/beb3ovHRPUjSl0/hQGgms3+RnZ3xATk8cmf5SO//8zf wx9fTFad5jSKJwpl/cpo0q7SM1KLZH8= Date: Tue, 5 Mar 2019 15:59:52 +0100 From: Borislav Petkov To: Alan Cox Cc: Matthew Wilcox , Jann Horn , Al Viro , Thomas Gleixner , kernel list , linux-fsdevel@vger.kernel.org, the arch/x86 maintainers , Linux API , Andrew Morton , Linus Torvalds , Richard Weinberger , Anton Ivanov Subject: [PATCH] x86: Deprecate a.out support Message-ID: <20190305145717.GD8256@zn.tnic> References: <20190305091904.GB8256@zn.tnic> <20190305122218.GD13380@bombadil.infradead.org> <20190305134347.4be2449c@alans-desktop> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190305134347.4be2449c@alans-desktop> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org + akpm and Linus. On Tue, Mar 05, 2019 at 01:43:47PM +0000, Alan Cox wrote: > > It's been 25 years since Linux added support for ELF. Can we just > > delete the a.out support entirely now? According to the Linux-ELF HOWTO, > > support was added in 1.1.52 (August 1994). It's pretty much necromancy > > at this point. > > In the unlikely event that someone actually has an a.out binary they > can't live with they can also just write an a.out loader as an ELF > program entirely in userspace. > > I'd vote for giving it the boot unless there are any architectures that > kept using a.out far longer due to tool chain issues ? We can at least deprecate it on x86... --- From: Borislav Petkov Date: Tue, 5 Mar 2019 15:47:51 +0100 Subject: [PATCH] x86: Deprecate a.out support Linux supports ELF binaries for ~25 years now. a.out coredumping has bitrotten quite significantly and would need some fixing to get it into shape again but considering how even the toolchains cannot create a.out executables in its default configuration, let's deprecate a.out support and remove it a couple of releases later, instead. Signed-off-by: Borislav Petkov Cc: Al Viro Cc: Anton Ivanov Cc: Jann Horn Cc: Cc: Cc: lkml Cc: Matthew Wilcox Cc: Richard Weinberger Cc: Thomas Gleixner Cc: --- arch/x86/Kconfig | 2 +- arch/x86/um/Kconfig | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index 68261430fe6e..ade12ec4224b 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -14,7 +14,6 @@ config X86_32 select ARCH_WANT_IPC_PARSE_VERSION select CLKSRC_I8253 select CLONE_BACKWARDS - select HAVE_AOUT select HAVE_GENERIC_DMA_COHERENT select MODULES_USE_ELF_REL select OLD_SIGACTION @@ -2843,6 +2842,7 @@ config IA32_EMULATION config IA32_AOUT tristate "IA32 a.out support" depends on IA32_EMULATION + depends on BROKEN ---help--- Support old a.out binaries in the 32bit emulation. diff --git a/arch/x86/um/Kconfig b/arch/x86/um/Kconfig index f518b4744ff8..494eeb51e4e1 100644 --- a/arch/x86/um/Kconfig +++ b/arch/x86/um/Kconfig @@ -16,7 +16,6 @@ config 64BIT config X86_32 def_bool !64BIT - select HAVE_AOUT select ARCH_WANT_IPC_PARSE_VERSION select MODULES_USE_ELF_REL select CLONE_BACKWARDS -- 2.21.0 -- Regards/Gruss, Boris. Good mailing practices for 400: avoid top-posting and trim the reply.