Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp873977pxu; Thu, 3 Dec 2020 15:06:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJyRoszlGCU2RISs1HtSpmwKI7ujuTfhcO+Ay7TUEO0Vxy+Ch3mrYiYVYVUXO7WEdIZ0qUTX X-Received: by 2002:a17:906:b0c5:: with SMTP id bk5mr4531929ejb.217.1607036809353; Thu, 03 Dec 2020 15:06:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607036809; cv=none; d=google.com; s=arc-20160816; b=bfwWEblb7XWFbknkpNGHmDisKVMrgvzZ1J7yEoe3SDt5A5VPG9/OjOTnpa/Q4v8d7V v59VJVLJKOEiBR6l8I+JjZV9mA2PITn/5qmEgfiTHpdrqk3+tJ0v/KdesMA3rNxqtRVO 3VA29pHQZ/0TkUrzgbEwUAuq8VRjoAhVAXqF0nEqecBqQwse9t2j9+Q0ddqFlHKKiHBi 6uAwPsbyg2aCcDXRVOc4X2aHt/SwQdOVF4ZcbMzERGyt9ShrteOfih5g9wy78H21rwUJ y23Y/OEy8MNduqsBUB4MYYbsIEoHlx+0DF6MYhATqklHHrz+Zro3Yv7/5ou1JYfLA8n4 Y7qA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=9gmqwLPsZzqfFSKsJjuvRHbtEGUwUMxr0cbrzOjttGo=; b=rwTTb6umcrbPYrayEnEBoiNrDZsyRdODGAm2fLkZPahByw1h7ZXh9+KMW6UuO5arCo 4XrVGOgEZm7TnM02KL9NBTbVt71Td2DEjygwTAnOH6z4Pvv/ZuKZRalUAR3LlVcLk73m mZH2lKeMERlFwI7r8uKklrwH7I3W/00Vh9RsF9KX1I5btrv8ldrQzV9Zrmj7RpJXiCZ/ LsxPlmjVw1vmQoOAF+KfK+yZEDXEho5j6Mg8zDN5mnZZkAKduifWBOB1M8+ZQtKPisEy +yLT11/Ri0iD24o+VBieUKDdpW8124gGBT4fSQ5Yvqj7uMjGH4OBIL3Lmn3cjEymQ5kR 3aQQ== 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 co9si1715731edb.379.2020.12.03.15.06.25; Thu, 03 Dec 2020 15:06:49 -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 S1727072AbgLCXEX (ORCPT + 99 others); Thu, 3 Dec 2020 18:04:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35428 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726897AbgLCXEW (ORCPT ); Thu, 3 Dec 2020 18:04:22 -0500 Received: from ZenIV.linux.org.uk (zeniv.linux.org.uk [IPv6:2002:c35c:fd02::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74E52C061A4F; Thu, 3 Dec 2020 15:03:42 -0800 (PST) Received: from viro by ZenIV.linux.org.uk with local (Exim 4.92.3 #3 (Red Hat Linux)) id 1kkxdQ-00GKSn-UB; Thu, 03 Dec 2020 23:03:37 +0000 Date: Thu, 3 Dec 2020 23:03:36 +0000 From: Al Viro To: Linus Torvalds Cc: Thomas Bogendoerfer , Linux Kernel Mailing List , the arch/x86 maintainers , linux-mips@vger.kernel.org, Randy Dunlap Subject: Re: [PATCHSET] saner elf compat Message-ID: <20201203230336.GC3579531@ZenIV.linux.org.uk> References: <20201203214529.GB3579531@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Al Viro Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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.