From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CFE5C433EF for ; Wed, 20 Apr 2022 16:59:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id D12456B0071; Wed, 20 Apr 2022 12:59:39 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id CC1A06B0073; Wed, 20 Apr 2022 12:59:39 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B89DA6B0074; Wed, 20 Apr 2022 12:59:39 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (relay.hostedemail.com [64.99.140.25]) by kanga.kvack.org (Postfix) with ESMTP id AAA476B0071 for ; Wed, 20 Apr 2022 12:59:39 -0400 (EDT) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay09.hostedemail.com (Postfix) with ESMTP id 7059625D40 for ; Wed, 20 Apr 2022 16:59:39 +0000 (UTC) X-FDA: 79377868878.13.E340996 Received: from brightrain.aerifal.cx (brightrain.aerifal.cx [216.12.86.13]) by imf15.hostedemail.com (Postfix) with ESMTP id 13D33A0019 for ; Wed, 20 Apr 2022 16:59:36 +0000 (UTC) Date: Wed, 20 Apr 2022 12:59:37 -0400 From: Rich Felker To: Palmer Dabbelt Cc: ebiederm@xmission.com, damien.lemoal@opensource.wdc.com, keescook@chromium.org, Niklas.Cassel@wdc.com, viro@zeniv.linux.org.uk, Paul Walmsley , aou@eecs.berkeley.edu, vapier@gentoo.org, stable@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, linux-arch@vger.kernel.org, geert@linux-m68k.org, linux-m68k@lists.linux-m68k.org, gerg@linux-m68k.org, linux-arm-kernel@lists.infradead.org, linux-sh@vger.kernel.org, ysato@users.sourceforge.jp Subject: Re: [PATCH] binfmt_flat: Remove shared library support Message-ID: <20220420165935.GA12207@brightrain.aerifal.cx> References: <87levzzts4.fsf_-_@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-Rspam-User: X-Rspamd-Queue-Id: 13D33A0019 X-Stat-Signature: jpp6diiectunf8pis339ytb35ngy991o Authentication-Results: imf15.hostedemail.com; dkim=none; spf=none (imf15.hostedemail.com: domain of dalias@libc.org has no SPF policy when checking 216.12.86.13) smtp.mailfrom=dalias@libc.org; dmarc=none X-Rspamd-Server: rspam01 X-HE-Tag: 1650473976-600804 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Wed, Apr 20, 2022 at 09:17:22AM -0700, Palmer Dabbelt wrote: > On Wed, 20 Apr 2022 07:58:03 PDT (-0700), ebiederm@xmission.com wrote: > > > >In a recent discussion[1] it was reported that the binfmt_flat library > >support was only ever used on m68k and even on m68k has not been used > >in a very long time. > > > >The structure of binfmt_flat is different from all of the other binfmt > >implementations becasue of this shared library support and it made > >life and code review more effort when I refactored the code in fs/exec.c. > > > >Since in practice the code is dead remove the binfmt_flat shared libarary > >support and make maintenance of the code easier. > > > >[1] https://lkml.kernel.org/r/81788b56-5b15-7308-38c7-c7f2502c4e15@linux-m68k.org > >Signed-off-by: "Eric W. Biederman" > >--- > > > >Can the binfmt_flat folks please verify that the shared library support > >really isn't used? > > I don't actually know follow the RISC-V flat support, last I heard it was still > sort of just in limbo (some toolchain/userspace bugs th at needed to be sorted > out). Damien would know better, though, he's already on the thread. I'll > leave it up to him to ack this one, if you were even looking for anything from > the RISC-V folks at all (we don't have this in any defconfigs). For what it's worth, bimfmt_flat (with or without shared library support) should be simple to implement as a binfmt_misc handler if anyone needs the old shared library support (or if kernel wanted to drop it entirely, which I would be in favor of). That's how I handled old aout binaries I wanted to run after aout was removed: trivial binfmt_misc loader. Rich