Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp377293ybh; Wed, 15 Jul 2020 04:30:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaXA4Z0mnG2SHUBDjMvPX8tth3VMMt9nmw2+Qz/5dWGRVFUQElSFXwnYtxdCexs70agbbh X-Received: by 2002:a50:f0c6:: with SMTP id a6mr8794025edm.374.1594812640509; Wed, 15 Jul 2020 04:30:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594812640; cv=none; d=google.com; s=arc-20160816; b=yIY/uejamNj2NCG0ZAJKru6ipVhyOEh657nMdHPjgbsiwDjlBUIfjff9mftt9z2suf MESBgPnGkbbpE9wZKyQkhQu+AKypRRT40XVWj8rWcH1CQCgtjVDqZspkgZIrryYo/7+T 9WMkcSuG0+iXfHgiVB41w5742WNmOxLVtqevLBOOhI65mrrtx2phvog54uzFQjUGYZgk c/OhHv0UMj0VgoDF4VIxhrLODBtMntmR814Mjbv9rd9yqS3jERG091sCNPTSm2Sx3LTA dv884rO/awBRPegkaq9RGdjwp64KVG5PlinWS/CahHBSJ+n4vlagczhLLNziodLseCwY ln9A== 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=AWgRpZqPtRXm+3G+WvYxzTOnPgVqTHiGSnoQi5+fFzI=; b=Qs86eylE5xzNU0286Tx+TVwySQCxOwm2ZOKrhC1QnQsOWXWHJCU2kehitOWUFapnoY 6CLc1BS4VnIj3wbBTy25Wx906OV5I4wCVStxe+GifjzmoP4KISNmTnM0KC0oxwDsgwPm 4reXOs35iL/R+bcXmHk4MmtLyCf3sWFVqqNHPKTCRH9f1H9OXbgN/3Ci0HJIjOqBX2PD KmedNYXqdGZIxh91QY2BJPcv3oW40MqY5D8IRYGnefaztZHaAgA+Q5xs/35YnHi9TYnh OewVyv3LqPJJGSUY0F1YyVqpXY/OObau+tpQn3iMKx6LRDaxZLE0Z2p3bPhR2uG155iz FxbQ== 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 n26si989670ejs.214.2020.07.15.04.30.16; Wed, 15 Jul 2020 04:30:40 -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 S1728992AbgGOK7v (ORCPT + 99 others); Wed, 15 Jul 2020 06:59:51 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:43326 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728385AbgGOK7v (ORCPT ); Wed, 15 Jul 2020 06:59:51 -0400 Received: from ip5f5af08c.dynamic.kabel-deutschland.de ([95.90.240.140] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1jvf8Z-0004KP-VG; Wed, 15 Jul 2020 10:59:44 +0000 Date: Wed, 15 Jul 2020 12:59:43 +0200 From: Christian Brauner To: Florian Weimer Cc: Chris Kennelly , Peter Oskolkov , Mathieu Desnoyers , Peter Oskolkov , Peter Zijlstra , linux-kernel , Thomas Gleixner , paulmck , Boqun Feng , "H. Peter Anvin" , Paul Turner , linux-api , carlos Subject: Re: [RFC PATCH 2/4] rseq: Allow extending struct rseq Message-ID: <20200715105943.3xbbwbzwc6drughf@wittgenstein> References: <20200714030348.6214-1-mathieu.desnoyers@efficios.com> <20200714030348.6214-3-mathieu.desnoyers@efficios.com> <775688146.12145.1594748580461.JavaMail.zimbra@efficios.com> <87k0z5xpau.fsf@mid.deneb.enyo.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <87k0z5xpau.fsf@mid.deneb.enyo.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 15, 2020 at 08:31:05AM +0200, Florian Weimer wrote: > * Chris Kennelly: > > > When glibc provides registration, is the anticipated use case that a > > library would unregister and reregister each thread to "upgrade" it to > > the most modern version of interface it knows about provided by the > > kernel? > > Absolutely not, that is likely to break other consumers because an > expected rseq area becomes dormant instead. > > > There, I could assume an all-or-nothing registration of the new > > feature--limited only by kernel availability for thread > > homogeneity--but inconsistencies across early adopter libraries would > > mean each thread would have to examine its own TLS to determine if a > > feature were available. Fwiw, I pointed this out in the discussions that led up to this patchset. I don't see how this can work if threads don't check for their feature set. > > Exactly. Certain uses of seccomp can also have this effect, > presenting a non-homogeneous view. Good point. There might be threads with a seccomp filter that would block rseq features is what you mean, I assume. Christian