Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp985098imc; Mon, 11 Mar 2019 04:03:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqwHY2Q424mxZngnqJ5qS6Iol6pqXJrCcK0Vtv8tSKYwEoes8cdbTgI8EvE3fQnsTh6ElNe0 X-Received: by 2002:a17:902:a981:: with SMTP id bh1mr33904120plb.88.1552302216132; Mon, 11 Mar 2019 04:03:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552302216; cv=none; d=google.com; s=arc-20160816; b=YJpTfAAwqnm5JbCNgw5wYQT0+Ljsf/OQCTntcYyu+BL3ZJfOs4ALg4Su1JEQdNvu1b bJ+BzgtN0hhx9xf+z0MP1QgJDO83hBR6M+Jvd40ovgsWRlQr14z0ttoPAfJlEYP72kfQ uFQWiWo5+9stTF7IjqNf5rFF4AWMrMPLuQbcFH4jDPiXklIrq7K8DTQfnikMZbIA+dQ0 oNOliAFaaPPvMt9NW0Nf+N+n5S7PAeg1VPYUuaosEVH+3dld2+Y0gheA/8HVyZnn4S2D y8yKJvDF78HxXPw5LbFWOe7zkasBG5XeOVmYHyYnMyjrIbtSywN1l/ii60snr6NfjxFX Qq0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=lf2IrSFaiNZ6uVVV9GTG38DOCEKqyi8KfqRbP6Lsg+o=; b=J6m+AbcxojQ+M7Jl2FTufQ/9E7etgREl7GhKgnvd5QevcXcNCyoT1d2VLA23GTxhR5 cMTHLJ3rqXObYlnvfuaZkvkPUT7R0MXu6OtYs0R1ekzRUtufqBhPhzc7WxslBa76negq 2E/QN4LiRKiaCEwOWSuh7qI2IdIYpaBkS5H2dKvsdT2nHPaW0KUo+ZjYKwZ/vDwlMATV rx9e7WVmY5IHjuJGo1e/JZO8sp4CXbesXLeAhovnfIdT+JzA/GcWEjrjwJEZg2+QfROR FNoOdefYeAQufMIkcSFSMZRdB2vLjwRYlLrsNqejFLVyiKUsIFVJcAWfT9/hFqXQuIvk Qu+A== 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 j64si4644320pge.260.2019.03.11.04.03.17; Mon, 11 Mar 2019 04:03:36 -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 S1727262AbfCKLCw (ORCPT + 99 others); Mon, 11 Mar 2019 07:02:52 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:44803 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727099AbfCKLCw (ORCPT ); Mon, 11 Mar 2019 07:02:52 -0400 Received: by mail-qk1-f195.google.com with SMTP id u22so2376464qkj.11; Mon, 11 Mar 2019 04:02:50 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=lf2IrSFaiNZ6uVVV9GTG38DOCEKqyi8KfqRbP6Lsg+o=; b=S5XFvnYYCOXiePvFByq2BSmS7oEx+1I2Ufz2FONsHs9emHQG3DNqc9jTIIPYQCJQlJ 3GDzVHRJ8ZgifJGtOmMZykoKrl5Kdy8F1J4M+iln3gvKW5ZhjnHl5t4irvdVsXsbLilJ DcwtMsgfar8+4LE+exCRrIW/o+8/Q8xIkji3I4Owi3ydpkIF5ZrVRPt0E1i2y9kv8I9e 8rN9sAU9R55GeZ4zJHgLa3ubOWi4fRnxGR8xhF28Hx9pJrpC2sIYBOo9zS3MLC/rarvi GCSUy//rugJIy4dUx9s0U+rYeu3cYY86mp4h24QG1EB0BYcvTFy+YdOP6kQOHD3x7xz7 gtnQ== X-Gm-Message-State: APjAAAVEDqkvS8y/isJyKRK2GRsvbXFwnUC3KCTBxMiPwFeRquZWQ1Jh ojgrM+JOk3RP9uA5oA4O3+bdkPDf7sW3d/OQ01E= X-Received: by 2002:ae9:e10d:: with SMTP id g13mr10521517qkm.343.1552302170367; Mon, 11 Mar 2019 04:02:50 -0700 (PDT) MIME-Version: 1.0 References: <20190305091904.GB8256@zn.tnic> <20190305122218.GD13380@bombadil.infradead.org> <20190305134347.4be2449c@alans-desktop> <20190305145717.GD8256@zn.tnic> <20190305173134.GE8256@zn.tnic> <20190305181138.GG8256@zn.tnic> <20190305181808.GH8256@zn.tnic> In-Reply-To: From: Arnd Bergmann Date: Mon, 11 Mar 2019 12:02:33 +0100 Message-ID: Subject: Re: [PATCH] x86: Deprecate a.out support To: Linus Torvalds Cc: Matt Turner , Borislav Petkov , Alan Cox , Matthew Wilcox , Jann Horn , Al Viro , Thomas Gleixner , kernel list , linux-fsdevel , "the arch/x86 maintainers" , Linux API , Andrew Morton , Richard Weinberger , Anton Ivanov , linux-alpha , linux-m68k 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 On Sun, Mar 10, 2019 at 11:46 PM Linus Torvalds wrote: > > On Sun, Mar 10, 2019 at 2:37 PM Matt Turner wrote: > > > > I'm not aware of a reason to keep a.out support on alpha. > > Hmm. I was looking at removing a.out support entirely, but it's > actually fairly incestuous on alpha. > > For example, arch/alpha/boot/tools/objstrip.c very much has some a.out > support in it. Maybe it can just be removed entirely. > > There's also an a.out.h include in arch/alpha/kernel/binfmt_loader.c. > > Finally, note that CONFIG_OSF4_COMPAT also no longer makes sense > without a.out support. > > So this attached patch does not compile on alpha, but it's been many > many years since I had an alpha to test with, so I'm stuck. > > Matt, can you fill in the details and complete this patch? I wonder if we could remove the osf time32 compat code as well, this was one of the areas that kept causing problems with the y2038 rework. (I think it's all good now, but it's never been tested as far as I can tell). For some syscalls (e.g. brk, mmap, getxuid, ...) we definitely need to keep the osf1 version, since it is the only supported ABI. I just looked up some really old source trees and found that glibc-2.1 was the first release to use 64-bit time_t the way we do it today, as implemented in [1], so all Debian and SuSE releases for alpha had it, but any ELF binaries built on Red Hat Linux 4.x and 5.x (released 1996 through 1998) or earlier would use 32-bit time_t osf1 syscalls. Red Hat 2.x and 3.x were a.out based on alpha. Arnd [1] https://repo.or.cz/glibc/history.git/commitdiff/64819b5c3a94e81e4