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 X-Spam-Level: X-Spam-Status: No, score=-2.2 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E6103C4724C for ; Thu, 30 Apr 2020 21:07:10 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A21822070B for ; Thu, 30 Apr 2020 21:07:10 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=landley-net.20150623.gappssmtp.com header.i=@landley-net.20150623.gappssmtp.com header.b="tT/RHF/b" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A21822070B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=landley.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 24DC28E0005; Thu, 30 Apr 2020 17:07:10 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1FD438E0001; Thu, 30 Apr 2020 17:07:10 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0ED058E0005; Thu, 30 Apr 2020 17:07:10 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0201.hostedemail.com [216.40.44.201]) by kanga.kvack.org (Postfix) with ESMTP id E8A5E8E0001 for ; Thu, 30 Apr 2020 17:07:09 -0400 (EDT) Received: from smtpin29.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 9A1B62826 for ; Thu, 30 Apr 2020 21:07:09 +0000 (UTC) X-FDA: 76765756578.29.ghost99_78aa99142b722 X-HE-Tag: ghost99_78aa99142b722 X-Filterd-Recvd-Size: 5103 Received: from mail-oi1-f196.google.com (mail-oi1-f196.google.com [209.85.167.196]) by imf19.hostedemail.com (Postfix) with ESMTP for ; Thu, 30 Apr 2020 21:07:09 +0000 (UTC) Received: by mail-oi1-f196.google.com with SMTP id o24so977266oic.0 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=j1tTg8PpTTIGeceB2c7tjO9QnHrObmfFEOxeGRwDCuOfM4VHx4kE/ZyN3S5LFCKGIj oHIUJwrWXWis9p+z0ySqiTXqoh8lk3ZlBwmfTCwS8L7/lsyTfeUaHpWnnRUhBNaaykZt 0WOcx+VpCOTJZA2Bq8dlYDD87WT4KP7o04PkEiCCY6K8D7fByrxf4OWtll88ZYT0zA+L U5yIqBOvxso3MwizIB+nh3lG38QH6lLZKYsTbm00lcEwlCMvc54LnGTwrAqJ4zPXiVOr Fck7TLFR7bfgV2BdJcVJ3cg/agCRN4+uOkVXR7/fEvLxdoRA4pfwlezVaGb2g0VNLobz qn7Q== X-Gm-Message-State: AGi0PuYxznbXSR8cMSYZIq1IIC4w8p231Chk6qUt5QgHZb6FGmWbrZLK bkkvVBdv7uZxPIRaQbKqic6gXw== X-Google-Smtp-Source: APiQypIF07p8WMlOqZkR0BZmdYjCNv2JY6o4DDmIm1Lcv4/Fio2GvfUcSL2SHecf2CFgmirguuRxAg== 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 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 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