Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp6287986ybi; Wed, 29 May 2019 05:49:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwi2HK0Jc2TmtIkxmaqqwGO9OTei2VbNJm/+mYCfzJN/ypTZpoJbThzU65w2N+CIWKkpjz7 X-Received: by 2002:a65:638e:: with SMTP id h14mr64840335pgv.209.1559134182929; Wed, 29 May 2019 05:49:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559134182; cv=none; d=google.com; s=arc-20160816; b=N/mKcCJrwl8HLm3TpnP0T0EIT86lRnII0LpOsTSbzVuLtupouqq2+cLZ8etCiBk8bm DfqvXvs7OGf8wtE+n4Y+vTsgulx/z5mHHvNHiJIxmvMM1/hpmQl3srbnXQL+zTvCv7qr 0gZXXZFt1v46lwKxxt1gEMyy40FH3Tn5rJ5PUSQYNovXbfIXBdotuwV5oXwM4ilWmYa7 Ea18091UMDxHbR14X9cj41gev7x954MOb//Xe9BYt6wlTDgv/0Sin9FEXZDTxKXJid+g enaH5wa4HqJ2p1vnyib110hbDA8/Z1QUDVcivpfYq12LnqG0qAPWL7c+7SUKn0tr0eez kO7A== 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:autocrypt:openpgp:from:references:cc:to:subject; bh=no5a0Qnm/OjHRI7cnjTbtis5153Vy+rQvdIwFFlIRLo=; b=LD7synHMRdCKjpZkGgQQwBjqrFIoynFNEbAzwJ+vhKs+QMxsGuc2GFpF843kuZZ4+z 9wUjGw9ECNVpJYNHbtcz8pAv5QXxUf5hV6eR0ksnppChOJA+mNK0C2s7yW9UlzrNC/pU tChrVfcQ3C4E7QmsIAjbWiY9Giph3Y4ymjEh66F6S24kxVOoh4m4ptX5Fs1lVgRNLuMm KZizySmo2DuVbdwHx0Ow5fL8GDn6XSHGsxibloscvk9XrwRHrG6BhLUGwmHRPSf8YEqj bOc9clyU33h9wqnzx1RJ4tP2kR3Wulc3+TMwI4togLhfQ2zA9irFoIgwv7BjP0I7ntcM vWUQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b38si6956552pgb.250.2019.05.29.05.49.27; Wed, 29 May 2019 05:49:42 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726828AbfE2MrU (ORCPT + 99 others); Wed, 29 May 2019 08:47:20 -0400 Received: from outpost1.zedat.fu-berlin.de ([130.133.4.66]:50681 "EHLO outpost1.zedat.fu-berlin.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725914AbfE2MrT (ORCPT ); Wed, 29 May 2019 08:47:19 -0400 Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (envelope-from ) id <1hVxz9-002KJi-7k>; Wed, 29 May 2019 14:47:15 +0200 Received: from suse-laptop.physik.fu-berlin.de ([160.45.32.140]) by inpost2.zedat.fu-berlin.de (Exim 4.85) with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (envelope-from ) id <1hVxz8-000rk1-Kn>; Wed, 29 May 2019 14:47:15 +0200 Subject: Re: [PATCH] binfmt_flat: make load_flat_shared_library() work To: Jann Horn Cc: Greg Ungerer , Andrew Morton , Alexander Viro , linux-fsdevel , kernel list , Kees Cook , Nicolas Pitre , Arnd Bergmann , Geert Uytterhoeven , linux-m68k@vger.kernel.org, Russell King , linux-arm-kernel@lists.infradead.org References: <20190524201817.16509-1-jannh@google.com> <20190525144304.e2b9475a18a1f78a964c5640@linux-foundation.org> <6956cfe5-90d4-aad4-48e3-66b0ece91fed@linux-m68k.org> <7cac8be1-1667-6b6e-d2b8-d6ec5dc6da09@physik.fu-berlin.de> From: John Paul Adrian Glaubitz Openpgp: preference=signencrypt Autocrypt: addr=glaubitz@physik.fu-berlin.de; keydata= mQINBE3JE9wBEADMrYGNfz3oz6XLw9XcWvuIxIlPWoTyw9BxTicfGAv0d87wngs9U+d52t/R EggPePf34gb7/k8FBY1IgyxnZEB5NxUb1WtW0M3GUxpPx6gBZqOm7SK1ZW3oSORw+T7Aezl3 Zq4Nr4Nptqx7fnLpXfRDs5iYO/GX8WuL8fkGS/gIXtxKewd0LkTlb6jq9KKq8qn8/BN5YEKq JlM7jsENyA5PIe2npN3MjEg6p+qFrmrzJRuFjjdf5vvGfzskrXCAKGlNjMMA4TgZvugOFmBI /iSyV0IOaj0uKhes0ZNX+lQFrOB4j6I5fTBy7L/T3W/pCWo3wVkknNYa8TDYT73oIZ7Aimv+ k7OzRfnxsSOAZT8Re1Yt8mvzr6FHVFjr/VdyTtO5JgQZ6LEmvo4Ro+2ByBmCHORCQ0NJhD1U 3avjGfvfslG999W0WEZLTeaGkBAN1yG/1bgGAytQQkD9NsVXqBy7S3LVv9bB844ysW5Aj1nv tgIz14E2WL8rbpfjJMXi7B5ha6Lxf3rFOgxpr6ZoEn+bGG4hmrO+/ReA4SerfMqwSTnjZsZv xMJsx2B9c8DaZE8GsA4I6lsihbJmXhw8i7Cta8Dx418wtEbXhL6m/UEk60O7QD1VBgGqDMnJ DFSlvKa9D+tZde/kHSNmQmLLzxtDbNgBgmR0jUlmxirijnm8bwARAQABtFRKb2huIFBhdWwg QWRyaWFuIEdsYXViaXR6I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ImTPcYZpw5vhdyPwBdXW2lSjV3EAqknWujRgcsm84nycuJnImwJptR481EWmtuH6ysj5 YhRVGbQPfdsjVUQfZdRdkEv4CZ90pdscBi1nRqcqANtzC+WQFwekDzk2lGqNRDg56s+q0KtY scOkTAZQGVpD/8AaLH4v1w== Message-ID: <7203be4f-cd4d-ef1a-f50f-223e17c8ca98@physik.fu-berlin.de> Date: Wed, 29 May 2019 14:47:13 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: 160.45.32.140 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/29/19 2:38 PM, Jann Horn wrote: >>> I have not used shared libraries on m68k non-mmu setups for >>> a very long time. At least 10 years I would think. >> We use shared libraries in Debian on m68k and Andreas Schwab uses them >> on openSUSE/m68k. > > And you're using FLAT shared libraries, not ELF / FDPIC ELF shared > libraries? See > for context - this thread is about CONFIG_BINFMT_SHARED_FLAT. No, we're using ELF binaries only: root@pacman:~# grep CONFIG_BINFMT /boot/config-$(uname -r) CONFIG_BINFMT_ELF=y CONFIG_BINFMT_SCRIPT=y # CONFIG_BINFMT_FLAT is not set # CONFIG_BINFMT_AOUT is not set CONFIG_BINFMT_MISC=m root@pacman:~# Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaubitz@debian.org `. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913