From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 0h/dLRyru2FpaQAAWB0awg (envelope-from ) for ; Thu, 16 Dec 2021 16:09:48 -0500 Received: by simark.ca (Postfix, from userid 112) id AB84E1F0BD; Thu, 16 Dec 2021 16:09:48 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 0B5281E940 for ; Thu, 16 Dec 2021 16:09:48 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D8A3B3858002 for ; Thu, 16 Dec 2021 21:09:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8A3B3858002 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1639688985; bh=t+PtNXB+SunuAWst/aCavxitiw0PPEifPCVpeneJ7tc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:Cc:From; b=RPp2wHaILsb5bCd4i83FL6H7JNixZaH3m9spUUw5Es1S5RwBwDUZGbTBV5Lm9IGqw WlJxX9FGSk1H/2jmyvcgvVZF6xQSyQLWJ27iGpeU10C9xm//DW8FOMW/Sglm4M5qsv wM5Et3als1ZJ/hFePd95b8wUF/fWT/N3WO4La75Y= Received: from mail.efficios.com (mail.efficios.com [167.114.26.124]) by sourceware.org (Postfix) with ESMTPS id E4BBB3858D35; Thu, 16 Dec 2021 21:09:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E4BBB3858D35 Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 9E8A33A3767; Thu, 16 Dec 2021 16:09:19 -0500 (EST) 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 gAQRcXPat_Vl; Thu, 16 Dec 2021 16:09:19 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by mail.efficios.com (Postfix) with ESMTP id 5A8A33A3868; Thu, 16 Dec 2021 16:09:19 -0500 (EST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.efficios.com 5A8A33A3868 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 PgeeSgobjlYq; Thu, 16 Dec 2021 16:09:19 -0500 (EST) Received: from mail03.efficios.com (mail03.efficios.com [167.114.26.124]) by mail.efficios.com (Postfix) with ESMTP id 4F7503A3B9D; Thu, 16 Dec 2021 16:09:19 -0500 (EST) Date: Thu, 16 Dec 2021 16:09:19 -0500 (EST) To: Florian Weimer Message-ID: <1507387605.36435.1639688959308.JavaMail.zimbra@efficios.com> Subject: rseq and gdb 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_4173 (ZimbraWebClient - FF94 (Linux)/8.8.15_GA_4177) Thread-Index: sOh2VMRqGUUKEv8VTztChMR8lOZZeA== Thread-Topic: rseq and gdb X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mathieu Desnoyers via Gdb Reply-To: Mathieu Desnoyers Cc: gdb@sourceware.org, Simon Marchi , libc-alpha Errors-To: gdb-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb" Hi Florian, I suspect that gdb should ideally do something to allow it to single-step through rseq critical sections. In librseq [1], we emit the __rseq_cs_ptr_array and __rseq_exit_point_array sections to allow gdb to know about rseq critical sections and skip over those critical sections as needed. Otherwise single-stepping over each instruction of a rseq critical section will loop forever. Now that glibc plans to enable rseq by default starting with glibc 2.35, it appears to be a good timing to raise this topic with the gdb community. Thanks, Mathieu [1] https://git.kernel.org/pub/scm/libs/librseq/librseq.git -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com