Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp3650584pxu; Tue, 15 Dec 2020 12:00:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFQbBQZJg+b2mdmlkfGrS6KQZw9CkPKavPmUfEAuJH829+Q6VqmgZI8cLllj4DwF4UAg5c X-Received: by 2002:a50:9354:: with SMTP id n20mr31710903eda.231.1608062418865; Tue, 15 Dec 2020 12:00:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608062418; cv=none; d=google.com; s=arc-20160816; b=ViDLyQbCcMdpMPvWpYrX+4C/rXBHoKxU4NYX7NeYW6jKT8tl14EjM6EZh/eRLUxv33 qSDPK4C4XTqzDo5t6031yM38PE8v+zGAY34i8B0uB6omCF99/YsDR9se8zg3fjLFLsTe 4fZ8LBzPuYJOw+YjJArQmFoDirqEZo4Iatl9gVILPJUYj9aQVxlWADfjxO4Z+KrT7cjF 0Ov0OhLSrF2Dak2Ug3QRogL5JWpezHTGSeyd79mdQPlLLJKQBImQrI7eHKFEhs8jnv+Q VIJAJXCFF7E/RD3UO4EL2M55VhE4V59+0w0sMm2f0BiWxLzFQYI7dC2X8iy5EYFzZpkd HwWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=Ekw8FJuNmFlTIlBzedPYrwwNkDOLFVG8YSuaE0cWJAw=; b=Vq0v0GtGrz/ytKxEKERrHnqSXzPKF1pUBiMN8X3nexFS/KKsHvmUsH9P837siYJImX LKx3xGMzh64hA7jaxAzWRd8zQyUKZi8WiiVglfeEROx6Vw4CFiJ0umfl0jmCODL/PbOr TVmS/GwZ2Txv7l8+gc5+0Km2JP5A8R61x5JoedvjlRCRlWPkG1yVGelZa0vTpLH92fPc lrs66P4cfCbJOH47/HGjnSZLvbDqIHoGOd2Hp28glNuFiBqDEaUTZVEV1Qk8XeIma4Df OsKGAxDePknOyeqo6ASZSoT4h/cwsWiOQjvhpF8jfxIJZaCIl1jEJFg6QPUXdyNK82hR 4chA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cm2si1395702edb.472.2020.12.15.11.59.53; Tue, 15 Dec 2020 12:00:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728222AbgLOTzX (ORCPT + 99 others); Tue, 15 Dec 2020 14:55:23 -0500 Received: from elvis.franken.de ([193.175.24.41]:42806 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727833AbgLOTzP (ORCPT ); Tue, 15 Dec 2020 14:55:15 -0500 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kpGP4-0005zz-00; Tue, 15 Dec 2020 20:54:34 +0100 Received: by alpha.franken.de (Postfix, from userid 1000) id 1A13EC03B6; Tue, 15 Dec 2020 20:54:14 +0100 (CET) Date: Tue, 15 Dec 2020 20:54:14 +0100 From: Thomas Bogendoerfer To: Al Viro Cc: Linus Torvalds , Linux Kernel Mailing List , the arch/x86 maintainers , linux-mips@vger.kernel.org, Randy Dunlap Subject: Re: [PATCHSET] saner elf compat Message-ID: <20201215195414.GA15551@alpha.franken.de> References: <20201203214529.GB3579531@ZenIV.linux.org.uk> <20201203230336.GC3579531@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201203230336.GC3579531@ZenIV.linux.org.uk> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 03, 2020 at 11:03:36PM +0000, Al Viro wrote: > On Thu, Dec 03, 2020 at 02:09:04PM -0800, Linus Torvalds wrote: > > On Thu, Dec 3, 2020 at 1:46 PM Al Viro wrote: > > > > > > The answer (for mainline) is that mips compat does *NOT* want > > > COMPAT_BINFMT_ELF. Not a problem with that series, though, so I'd > > > retested it (seems to work, both for x86_64 and mips64, execs and > > > coredumps for all ABIs alike), with centralization of Kconfig logics > > > thrown in. > > > > Well, the diffstat looks nice: > > > > > 26 files changed, 127 insertions(+), 317 deletions(-) > > > > and the patches didn't trigger anything for me, but how much did this > > get tested? Do you actually have both kinds of 32-bit elf mips > > binaries around and a machine to test on? > > Yes (aptitude install gcc-multilib on debian mips64el/stretch sets the toolchain > and libraries just fine, and then it's just a matter of -mabi=n32 passed > to gcc). "Machine" is qemu-system-mips64el -machine malta -m 1024 -cpu 5KEc > and the things appear to work; I hadn't tried that on the actual hardware. > I do have a Loongson-2 box, but it would take a while to dig it out and > get it up-to-date. > > > Linux-mips was cc'd, but I'm adding Thomas B to the cc here explicitly > > just so that he has a heads-up on this thing and can go and look at > > the mailing list in case it goes to a separate mailbox for him.. > > I would certainly appreciate review and testing - this branch sat > around in the "should post it someday" state since June (it was > one of the followups grown from regset work back then), and I'm > _not_ going to ask pulling it without an explicit OK from mips > folks. I've tested it on real hardware and so far everything looks good. You can add my Acked-by: Thomas Bogendoerfer for the MIPS part. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]