Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1319677ybt; Thu, 18 Jun 2020 06:05:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXCoHye36zjY4Gh1lEgIYvk2pvwIeCsQpYoiRXhWLx9rNzfnrBI/7/WBhkcDxRMKuuYWLA X-Received: by 2002:a17:906:4ada:: with SMTP id u26mr4100208ejt.368.1592485542993; Thu, 18 Jun 2020 06:05:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592485542; cv=none; d=google.com; s=arc-20160816; b=eI7kr+CsTldGSJ3jkbzay/CBTk7pTM8/tdBqLgvMyKa6PHrcRxuDSJOWaK0TVhXCP1 nnvyHrAygW4gRGBgjyY/QaKMoPu0huztDPjpKjMgqdjnzdqcKwvH6CQEZONtJEZvMCD+ jT2zvGhnO793MjlR6eOo7I4Yo5K0yB9CG5N0/E2RArkrKkgBApBDRNK/ReZEcdXAmOFj L7ImfbOm9Vmxd84ytuU2S4zIUirU7CWqTymmWYgBJDiq0rth8TwmFTbQuQyL+SamJN23 QPTGsE+XHdifA9MryVVN8FnszexhKcpakJSxc88wV8XP3yavCGsLOMMBawcFKWFo22T5 B+vQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date:dkim-signature:dkim-filter; bh=8gWLFXHOJUpku+xtywyZMhyrAoZEdReQUERAiZw8Wug=; b=v0X03fHAvH84H1U9L0yD7pbtkcEvxaX5r4JM0d7v3zd99GCxWPTmoVPOMIYBGMQGLi fR7Q8AEuNKg6iIzkekbevt2avw7Lf9LIgf5hUfzjlvgXnS/Uc8rxgBPyNuNRJfItR1dl LW4e7bUZc4sFN8WM+zxIoZ/ffUcePLkt3la+eTlauis1ERCbUANazTwO08XnI4+ZZS1X TeXhb/ndilxdZX8mhQcduzWaVfokxS3KkB/gxNYSf0elygyD1fl5poxstL2qQR4zITT2 UxlqS+X8AYUbVpxCNhmXcMNrKut8/G/2eI28L62JeMfyRqHZs6hPqjJFH7rsjhPKFc8q b4zQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@efficios.com header.s=default header.b=eNBHkIRw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si1784765edr.493.2020.06.18.06.05.18; Thu, 18 Jun 2020 06:05:42 -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; dkim=pass header.i=@efficios.com header.s=default header.b=eNBHkIRw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=efficios.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729978AbgFRNDJ (ORCPT + 99 others); Thu, 18 Jun 2020 09:03:09 -0400 Received: from mail.efficios.com ([167.114.26.124]:47862 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725953AbgFRNDI (ORCPT ); Thu, 18 Jun 2020 09:03:08 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 9E35E2CB436; Thu, 18 Jun 2020 09:03:07 -0400 (EDT) Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id Q_N-iFXQcfuX; Thu, 18 Jun 2020 09:03:07 -0400 (EDT) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 4AD162CB604; Thu, 18 Jun 2020 09:03:07 -0400 (EDT) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 4AD162CB604 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=efficios.com; s=default; t=1592485387; bh=8gWLFXHOJUpku+xtywyZMhyrAoZEdReQUERAiZw8Wug=; h=Date:From:To:Message-ID:MIME-Version; b=eNBHkIRwLJUzBAeavqkz4XJ/BS4whc1v36WwKFkdk8My/tyzuPzmE7YLcK86x2K8e BYcAeV6+EWT5ezTAtuoxLZUh37oteVuYwfm/IOWhZX+IR689s3jdJuAeN7psTo0GQu Z0e6o6TOKfHEM/9ILqKsGlgkP6RfYGA2Sq0/RrafkAy6W6xnCkbb6N1mmXvvTDnqcE NqQmIxtcbbQLypATQZbGCslLNjR15ARJC6fu4icZfmMMn3aX5qWeefpKDTuqslHxu3 uVoN7T8GkHc1s3o7O/8Hhhkn4uKQUT2nczpeBgod/JycEremkeuLQIOTGdKt7UNi98 HJyF9sHqSIROA== X-Virus-Scanned: amavisd-new at efficios.com Received: from mail.efficios.com ([127.0.0.1]) by localhost (mail03.efficios.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2fwGZoJZoEOb; Thu, 18 Jun 2020 09:03:07 -0400 (EDT) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 353362CB0EE; Thu, 18 Jun 2020 09:03:07 -0400 (EDT) Date: Thu, 18 Jun 2020 09:03:07 -0400 (EDT) From: Mathieu Desnoyers To: Szabolcs Nagy Cc: Joseph Myers , Florian Weimer , Rich Felker , libc-alpha , Peter Zijlstra , linux-api , Boqun Feng , Will Deacon , linux-kernel , Ben Maurer , Michael Kerrisk , Dave Watson , Thomas Gleixner , Paul , Paul Turner Message-ID: <906553413.6099.1592485387108.JavaMail.zimbra@efficios.com> In-Reply-To: <20200618122213.GQ4066@arm.com> References: <20200527185130.5604-1-mathieu.desnoyers@efficios.com> <87d06gxsla.fsf@oldenburg2.str.redhat.com> <188671972.53608.1591269056445.JavaMail.zimbra@efficios.com> <419546979.1229.1591897672174.JavaMail.zimbra@efficios.com> <20200618122213.GQ4066@arm.com> Subject: Re: [PATCH glibc 1/3] glibc: Perform rseq registration at C startup and thread creation (v20) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [167.114.26.124] X-Mailer: Zimbra 8.8.15_GA_3945 (ZimbraWebClient - FF77 (Linux)/8.8.15_GA_3928) Thread-Topic: glibc: Perform rseq registration at C startup and thread creation (v20) Thread-Index: brALBVk5nps/waYHI5PMCjDnnv99CA== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org ----- On Jun 18, 2020, at 8:22 AM, Szabolcs Nagy szabolcs.nagy@arm.com wrote: > The 06/11/2020 20:26, Joseph Myers wrote: >> On Thu, 11 Jun 2020, Mathieu Desnoyers wrote: >> > I managed to get a repository up and running for librseq, and have integrated >> > the rseq.2 man page with comments from Michael Kerrisk here: >> > >> > https://git.kernel.org/pub/scm/libs/librseq/librseq.git/tree/doc/man/rseq.2 >> > >> > Is that a suitable URL ? Can we simply point to it from glibc's manual ? >> >> Yes, that seems something reasonable to link to. > > is there work to make the usage of rseq critical > sections portable? (e.g. transactional memory > critical section has syntax in gcc, but that > doesn't require straight line code with > begin/end/abort labels in a particular layout.) > > the macros and inline asm in rseq-*.h are not > too nice, but if they can completely hide the > non-portable bits then i guess that works. My goal with librseq is indeed to provide static inlines which hide the architecture-specific ugliness of rseq critical section assembly code behind an API which can be used from all supported architectures for most of the known use-cases, so only very specific use-case would have to craft their own assembly. Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com