Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3187099rwb; Tue, 8 Nov 2022 01:23:00 -0800 (PST) X-Google-Smtp-Source: AMsMyM4TKyyoJsXALi6E7DbWk8aYuxinrW0+tc00ZxmU88M/gjZjBdFUSjKB7itwlbfQZTitZGwK X-Received: by 2002:a63:5341:0:b0:46f:d05d:55cf with SMTP id t1-20020a635341000000b0046fd05d55cfmr37820133pgl.356.1667899380266; Tue, 08 Nov 2022 01:23:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667899380; cv=none; d=google.com; s=arc-20160816; b=p/uxV/byV85dEy4RJzQGW7Bn1KD/178UsOaFwlvov3Q/nYWgH80VKn+5oQht8VAqzA qSowiORwoVThPjo1ZvfF8eD7YJfF5fTlDucFHT8UPi8Pa9+r3uXGmApZEukS4IvPzBaB rnH7RktsibgyqnPVsy+XRjEncowBfyhLdrrdDAWH8CP31OW+lg2qNSdpKb1s9XbIMgd9 TNi/TzCsu2WJ+af/7TYmiUiS7PQUa4DymBiZIxWtD5c4AOAIxSG8ZB+5V1vZKxP8/o+2 AnyB3VZomzoY/ReJud3sqrkjmMytBRAPf+C9PrVWkMkq5xKV+wRoAI789/dPZe/6dN4F htQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:message-id:in-reply-to :date:references:subject:cc:to:from:dkim-signature; bh=KP+tiCnk9vCKqrx4wl6vmjk9CSIgAcrzK2YQ6PLAxpU=; b=AltmUM+ujLkaokb1QQB9Z4OAnEUg8LB+Sb8Jlim0giqqWxF2/4pcCqd++Of7+T2wa0 piNugfM5qxav2yzm05+5cP27pAuYeOE7vgEhtKkvW+/zrYaq9RZ1DJRvp9m1ISLFwpcS yHzj+KIDQtsIulxLqwt/khu3m/QrVGohKbQBO7U2qNGGy8U+Qrhr3QADFHlhEvPk/fYn 1m6pO6QhYQOnYBpoG16rFqtdcVTxPbEkM11uDkGJHbhOGglYDwKpLF5MJnJRVJOBWJD7 wFRCiabz2jT+CYe4NmKDp2YrzmV6cVEMr9SqCSz243QgeKxgjzYZj9vyEF4QWJTpCHXs sNxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U5BhrQ0G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902d58e00b0017336c464ecsi13414939plh.407.2022.11.08.01.22.48; Tue, 08 Nov 2022 01:23:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U5BhrQ0G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233703AbiKHJPZ (ORCPT + 89 others); Tue, 8 Nov 2022 04:15:25 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233679AbiKHJPV (ORCPT ); Tue, 8 Nov 2022 04:15:21 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B32F1A839 for ; Tue, 8 Nov 2022 01:14:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1667898865; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=KP+tiCnk9vCKqrx4wl6vmjk9CSIgAcrzK2YQ6PLAxpU=; b=U5BhrQ0GPBx8j4qAKqYhSTdiq/srCQpwy/0t5n5wRaBp46nQVqYML15OXhSVBMH1V3T01C OlQvq5+RZLnyLV3SzDjziqEd7zhxiIeDi3tTb48vzH4xs9ogJiN8Yn9iyef3BCBuFU2OT+ I+29FUNfjGNUtXT6TrlcAxvjp5fjO1U= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-178-Ut-AJcnsP0m_xLQD9tcXTQ-1; Tue, 08 Nov 2022 04:14:23 -0500 X-MC-Unique: Ut-AJcnsP0m_xLQD9tcXTQ-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1C9E41C06EE9; Tue, 8 Nov 2022 09:14:22 +0000 (UTC) Received: from oldenburg.str.redhat.com (unknown [10.2.16.65]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B29FC4B3FC6; Tue, 8 Nov 2022 09:14:14 +0000 (UTC) From: Florian Weimer To: "Edgecombe, Rick P" Cc: "hjl.tools@gmail.com" , "bsingharora@gmail.com" , "hpa@zytor.com" , "Syromiatnikov, Eugene" , "peterz@infradead.org" , "rdunlap@infradead.org" , "keescook@chromium.org" , "Yu, Yu-cheng" , "Eranian, Stephane" , "kirill.shutemov@linux.intel.com" , "dave.hansen@linux.intel.com" , "linux-mm@kvack.org" , "nadav.amit@gmail.com" , "jannh@google.com" , "dethoma@microsoft.com" , "kcc@google.com" , "linux-arch@vger.kernel.org" , "bp@alien8.de" , "oleg@redhat.com" , "Yang, Weijiang" , "Lutomirski, Andy" , "jamorris@linux.microsoft.com" , "arnd@arndb.de" , "akpm@linux-foundation.org" , "pavel@ucw.cz" , "mike.kravetz@oracle.com" , "x86@kernel.org" , "linux-doc@vger.kernel.org" , "tglx@linutronix.de" , "john.allen@amd.com" , "rppt@kernel.org" , "mingo@redhat.com" , "Shankar, Ravi V" , "corbet@lwn.net" , "linux-kernel@vger.kernel.org" , "linux-api@vger.kernel.org" , "gorcunov@gmail.com" Subject: Re: [RFC 37/37] fs/binfmt_elf: Block old shstk elf bit References: <20221104223604.29615-1-rick.p.edgecombe@intel.com> <20221104223604.29615-38-rick.p.edgecombe@intel.com> <87iljs4ecp.fsf@oldenburg.str.redhat.com> <87h6zaiu05.fsf@oldenburg.str.redhat.com> <73b8f726c424db1af1c10a48e101bf74703a186a.camel@intel.com> Date: Tue, 08 Nov 2022 10:14:12 +0100 In-Reply-To: <73b8f726c424db1af1c10a48e101bf74703a186a.camel@intel.com> (Rick P. Edgecombe's message of "Mon, 7 Nov 2022 21:10:52 +0000") Message-ID: <87leolkduj.fsf@oldenburg.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Rick P. Edgecombe: > When we have everything in place, the problems would be much more > obvious when distros started turning it on. But we can't turn it on as > planned without breaking things for existing binaries. We can have both > by: > 1. Choosing a new bit, adding it to the tools, and never supporting the > old bit in glibc. > 2. Providing the option to have the kernel block the old bit, so > upgraded users can decide what experience they would like. Then distros > can find the problems and adjust their packages. I'm starting to think > a default off sysctl toggle might be better than a Kconfig. > 3. Any other ideas? This problem is fairly common nowadays for new system calls. Before glibc can use them internally, we need to port userspace first, otherwise key applications fail to work. Yet we do not require ELF markup to make the new system call available to glibc. The situation here seems similar: before deploying a new glibc, we need to upgrade parts of userspace. Thanks, Florian