Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2782759ybk; Mon, 18 May 2020 07:50:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwof3WnzN3XSV5btO2v2N2B7zUMlFk5vdY61EcrTbbpi2h/EBuK12+nxkKH3HJWiiuSAmgO X-Received: by 2002:a50:e08c:: with SMTP id f12mr2167353edl.233.1589813434674; Mon, 18 May 2020 07:50:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589813434; cv=none; d=google.com; s=arc-20160816; b=koh5NjDlV9XZYraiIcYsSp3kggyiqsERWLCy3xDFCAt+xhDpyZ1VBADXs9FjdJRU5S /jve9nxZA/Cv+1r1mZC9QFfdCKgaClT0hz0v7fDrneTlBTZ+an66rZmI/CH+AjjtUxdw 0LymUOxta+vwkK6VP6ab0Q+NKGh4qEf5GnUJwz1xqy0pLGD+bafUULW2N4ABgod6Jjbo c8SRop/S+iXtjMORiPGVRDvx+vmtfmQpAbdg1K5qskWbIw1ruSp3U+hUPZS4FLFkQFdl g/u6AJDRK1XGTjhdO3emF4VSNxmNI6OfFyXNNRgA8P+gdub851vk96aLdMIXC+eZJZml Pl0g== 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=ECcYe5FK7mi3znIY06uPu6IUY0X4aR6UeoOTkP6rY3U=; b=khnsA6jHM2mHn1RJ6pLr3pSkc1qs9v9coXtS1sMpyy1e/yGIDQSpA2Z3IfQPk75YW+ 2xjW4eCrYI+ny51pD2GdfrqKnPir3GtefUvBAxhhvoYkPwKzMS9j9oaNnD3pCZ8OXicY el+0xiXU+WJndLteveOVhVLfxvu3PFs8Qj2vwrGOlcQzicTBg3f7D7xnZAdMibCzlMJM gWxfRZlNKpdWwZHHNLhITWec5osxu5xs5RSIUoD5i0n0HXd74nFctZKQLzVO2baEic4u NPcrL9DPYlZXT3Km1GF2BpL0eD5VcmlwBwj77U6lcSbWFyReTKVNFCfjohXS2EIcjvrz UEZQ== 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 uz8si6666647ejb.67.2020.05.18.07.50.10; Mon, 18 May 2020 07:50:34 -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; 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 S1728179AbgEROqh (ORCPT + 99 others); Mon, 18 May 2020 10:46:37 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:36220 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727006AbgEROqh (ORCPT ); Mon, 18 May 2020 10:46:37 -0400 Received: from ip5f5af183.dynamic.kabel-deutschland.de ([95.90.241.131] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jah2B-0007Aj-Ri; Mon, 18 May 2020 14:46:28 +0000 Date: Mon, 18 May 2020 16:46:27 +0200 From: Christian Brauner To: Jann Horn Cc: Kees Cook , Al Viro , Andrew Morton , Tetsuo Handa , Eric Biggers , Dmitry Vyukov , linux-fsdevel , linux-security-module , Linux API , kernel list Subject: Re: [PATCH 1/4] exec: Change uselib(2) IS_SREG() failure to EACCES Message-ID: <20200518144627.sv5nesysvtgxwkp7@wittgenstein> References: <20200518055457.12302-1-keescook@chromium.org> <20200518055457.12302-2-keescook@chromium.org> <20200518130251.zih2s32q2rxhxg6f@wittgenstein> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 18, 2020 at 04:43:20PM +0200, Jann Horn wrote: > On Mon, May 18, 2020 at 3:03 PM Christian Brauner > wrote: > > Also - gulp (puts on flame proof suit) - may I suggest we check if there > > are any distros out there that still set CONFIG_USELIB=y > > Debian seems to have it enabled on x86... > > https://salsa.debian.org/kernel-team/linux/-/blob/master/debian/config/kernelarch-x86/config#L1896 > > A random Ubuntu 19.10 VM I have here has it enabled, too. I wonder if there's any program - apart from _ancient_ glibc out there that actually use it... I looked at uselib in codsearch but the results were quite unspecific but I didn't look too close. Christian