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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS 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 BD734C433DF for ; Mon, 18 May 2020 14:46:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id A7877207D4 for ; Mon, 18 May 2020 14:46:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728140AbgEROqh (ORCPT ); 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: owner-linux-security-module@vger.kernel.org Precedence: bulk List-ID: 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