Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2277495ybz; Thu, 30 Apr 2020 14:12:20 -0700 (PDT) X-Google-Smtp-Source: APiQypK7S1gXQ414SrKL3VfzBn2dEPjUfweRm0tRACkVSDfnRv1W6WOmYFog0YsfOKpxFG21Vlgy X-Received: by 2002:a50:ee86:: with SMTP id f6mr935614edr.123.1588281140504; Thu, 30 Apr 2020 14:12:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588281140; cv=none; d=google.com; s=arc-20160816; b=xDUNQBEwgKeD7oJ+wTV9uFH8CLE0UhOM+rCoCTNfhhoWZ2s7jvbSArJAWF+kc8utnN 8M+WwxEV6rtIhy7XnJ//LElnfIpw7ty7iGm9aC83+lNE6buE3UPs8BlQ2TTH3R/QSnd8 ZLZifDhK3l2lwtsK3NaKlZIh3QC4FLzzTdcLp5DDOwcSm0ssCTc/07mvo0ggRBWPW+AZ e/piNMZyO45fTyS3kVcX3D1iPHhje8ilA26ezPjdcsWvx+ae4+M1eEltXrvKlE6sWjpP btvWfHS/XQeFou1vK9PeRpMUK2RhvJRPSWS3TEX+NFoEObArkPSCYXzZ1Fp2M8Ye0Z49 RWUw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=Y0BHfY++8ymwoFsyQG3f2a5F1M5FJigDreAt8/y9wkw=; b=F3LdiAjZ8Bqoqr2yA9iKrg7N1PMyNWCTwRLbDTBnZgHMyM302hh1pFPhWhwb6iZaa2 VO4rrc+wlZxsXQoPqoQEp/m/Gcr5PeGOH8oHPs1A8P0h6RUjKXSHkSYh7vUrLshTFge5 CCiV+a8YL/TEpg62THQp6QRXFj1htH8IMF1diQhtTdWHJelaNAImTXH9sqN6nDxAK9SD COtGaYP3be5iUjJ6HYf/2HIoHQwEzbi5RE3tkkwp+7ACd7o8dE908u5l78EEdlDGyaAd oISRxk4VIW6JDE7/jpZWJo9unPh8Qpud3zdgySkPhsjaTaKb0S6rQTuE8TwHSlzbmGFC 0CJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="tT/RHF/b"; 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 r24si467372edc.217.2020.04.30.14.11.53; Thu, 30 Apr 2020 14:12:20 -0700 (PDT) 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; dkim=pass header.i=@landley-net.20150623.gappssmtp.com header.s=20150623 header.b="tT/RHF/b"; 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 S1726757AbgD3VHJ (ORCPT + 99 others); Thu, 30 Apr 2020 17:07:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725844AbgD3VHJ (ORCPT ); Thu, 30 Apr 2020 17:07:09 -0400 Received: from mail-oi1-x242.google.com (mail-oi1-x242.google.com [IPv6:2607:f8b0:4864:20::242]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF9AEC035495 for ; Thu, 30 Apr 2020 14:07:08 -0700 (PDT) Received: by mail-oi1-x242.google.com with SMTP id j16so916622oih.10 for ; Thu, 30 Apr 2020 14:07:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20150623.gappssmtp.com; s=20150623; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Y0BHfY++8ymwoFsyQG3f2a5F1M5FJigDreAt8/y9wkw=; b=tT/RHF/bfPnesXqFK6JRHF+/fL7TDEmxW2tMH4v+nGg1wDgnRcU5rKSFkUGLbHazAh sn9+u/EMiquXspfC2UFxr9W2jqoSZSaLda3L7b3hzX+oPSu0gd8P8x1QrH3VGLm02C2C +s4OMCohXuqTaeY0tssIradw6kYxEW9PsJwfBj4gPy1U66MYcQf7DncO6ljoe+lk5jvU fKnVvytwK6V0wNiaFIWTLhP7C2dzeakwoRCc3lSBWMr3v2MOLe2j3gf80/t/ARVNw99j on5eko7k+LRuZjwBgwTw7HxQuWXx22H4hy3vhQrNPmMiXk/Ns5dhIpdqZL0xyj8TkFQ6 0vow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Y0BHfY++8ymwoFsyQG3f2a5F1M5FJigDreAt8/y9wkw=; b=tROjKrE9L6T9MTkQpizvRCx2yr9T2bLxsg/R/BfrtPz7f2Q7sVrK/sQ9ZaVpDHyckk U0A5z7PUhm4uX9N0PV2kkQYmMqFmYWIx1dL5M3jhbDlTRiKeTFhJModhSAPJl9Y3R6TY EjiA8rXxurqSI1VXla0rczPHDpVbjzlJ+zsMce4PqfGBtkjGm8UKRjmvB92qNLrIFklq emfSwa7QhlWUR5KES1f9bs1WZGyfVgvEVWdKAhlJRyDpYJN0Kec1Sn9u+wMlf7yhyqHO CPstDn5pySAkgTKEpoeg9p5X+1SIlMEECY84yWoqyOeCh89sP4v5Majq29p+/oaVWwPE LZeQ== X-Gm-Message-State: AGi0PuahWQesUgF71HGABJu/F/Foe5l8JqBC2eCXK7HRQvWhsZvTPB3m XlWMxYkPZ7b9JlvZAjBV+nDMqQ== X-Received: by 2002:aca:438b:: with SMTP id q133mr799994oia.148.1588280828409; Thu, 30 Apr 2020 14:07:08 -0700 (PDT) Received: from [192.168.86.21] ([136.62.4.88]) by smtp.gmail.com with ESMTPSA id v9sm268330oib.56.2020.04.30.14.07.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 30 Apr 2020 14:07:07 -0700 (PDT) Subject: Re: [PATCH v2 0/5] Fix ELF / FDPIC ELF core dumping, and use mmap_sem properly in there To: Rich Felker , Greg Ungerer Cc: Linus Torvalds , Russell King - ARM Linux admin , Jann Horn , Nicolas Pitre , Andrew Morton , Christoph Hellwig , Linux Kernel Mailing List , Linux-MM , linux-fsdevel , Alexander Viro , "Eric W . Biederman" , Oleg Nesterov , Linux ARM , Mark Salter , Aurelien Jacquiot , linux-c6x-dev@linux-c6x.org, Yoshinori Sato , Linux-sh list References: <20200429214954.44866-1-jannh@google.com> <20200429215620.GM1551@shell.armlinux.org.uk> <31196268-2ff4-7a1d-e9df-6116e92d2190@linux-m68k.org> <20200430145123.GE21576@brightrain.aerifal.cx> From: Rob Landley Message-ID: <34688b36-4fdf-0c71-77cc-f98e6b9962df@landley.net> Date: Thu, 30 Apr 2020 16:13:10 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 MIME-Version: 1.0 In-Reply-To: <20200430145123.GE21576@brightrain.aerifal.cx> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/30/20 9:51 AM, Rich Felker wrote: > This sounds correct. My understanding of FLAT shared library support > is that it's really bad and based on having preassigned slot indices > for each library on the system, and a global array per-process to give > to data base address for each library. Libraries are compiled to know > their own slot numbers so that they just load from fixed_reg[slot_id] > to get what's effectively their GOT pointer. > > I'm not sure if anybody has actually used this in over a decade. Last > time I looked the tooling appeared broken, but in this domain lots of > users have forked private tooling that's not publicly available or at > least not publicly indexed, so it's hard to say for sure. Lots of people in this area are also still using 10 year old tools because it breaks every time they upgrade. Heck, nommu support for architectures musl doesn't support yet is _explicitly_ the main thing keeping uClibc alive: https://www.openwall.com/lists/musl/2015/05/30/1 Rob