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=-5.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable 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 4553BC433E1 for ; Thu, 18 Jun 2020 13:03:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 22BAD207E8 for ; Thu, 18 Jun 2020 13:03:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=efficios.com header.i=@efficios.com header.b="eNBHkIRw" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730030AbgFRNDJ (ORCPT ); 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