From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS31976 209.132.180.0/23 X-Spam-Status: No, score=-3.0 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FORGED_GMAIL_RCVD, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=no autolearn_force=no version=3.4.2 Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 48A601F463 for ; Tue, 7 Jan 2020 20:44:01 +0000 (UTC) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; q=dns; s=default; b=YFroYSL kL2jB6iDNYZxM3Vxo+Gb7wdq0dFpEh0y5udnN+yK76NGdgrb65U4EmCa9jAQaACe 1jH2r1gno4d6fjNoy4vutke5e4kMAfO+anCxN1u7chQjy1/Ihy9faDZMAme8Bm8k 6HOnJjEtEKQbHfmuIS0rXr0L1V6OlgYWjbus= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=default; bh=4SHMvb46lOzWp S5emxajaeoTPUM=; b=EjkKZadg+iegvPij7Cqy85M8WaiPOzlkRTpDTV/BHW3LX 2bWe3loIWMNMrwr1fqRmj3PF1e80FNnKeQFZdtDP8LrUVs6nFzJiMSZXhyxHhWzO AB2Tw6KcyhzSsG3gDkq4++JKrSqvuoFSQ7PXYYFaxcYEpqnN3EdTHVkzOxHfGQ= Received: (qmail 50860 invoked by alias); 7 Jan 2020 20:43:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 50836 invoked by uid 89); 7 Jan 2020 20:43:58 -0000 Authentication-Results: sourceware.org; auth=none X-HELO: mail-oi1-f194.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=bGUwNh0b3M92zMSvCEKrJiYXNz2Dij8yMMsB6xBQetE=; b=cuYQl6MVXeb4wmp0nKApKIUebr9T8Etn3UJfuLTExcdzS0rCo1mNbBqx8/uqbobjXB GNv1P5ZTqWxh5ndewfaeTsUOsWCeAuL763oiricr6EI3osry2NYawIf/FYLx9oc/mNyg egIhBif9NtLaLKzIlcDdC/WP4DUqAf/ioI+CQMUTHdUfAyYrF49WO7cP5tvV1FLfo7Dx tyhonpEipUTIVfLau4+mADmIAZHIOb2d1592K9duOm2VedvVJRCl6pSlkk2kIx1sEWoR SYs45KqTeKOjTdtEh4BRNg5kv6fUI6DslJdxvmlA2BQ/BJ7OfMbV7DCYYaoP59p4L/s3 wSEA== MIME-Version: 1.0 References: <20191210204710.4832-1-hjl.tools@gmail.com> In-Reply-To: <20191210204710.4832-1-hjl.tools@gmail.com> From: "H.J. Lu" Date: Tue, 7 Jan 2020 12:43:19 -0800 Message-ID: Subject: Re: [PATCH 0/4] i386: Finish CET support To: GNU C Library Content-Type: text/plain; charset="UTF-8" On Tue, Dec 10, 2019 at 12:47 PM H.J. Lu wrote: > > This patch set finishes CET support on i386: > > 1. getcontext, setcontext and swapcontext are updated not to preserve > EAX, ECX and EDX. Since they are caller-saved, caller will reload them > after getcontext, setcontext and swapcontext calls if needed. The extra > scratch registers are used to enable CET. > 2. Add missing _CET_ENDBR to i386 assembly files. > 3. Enable CET support in i386 ucontext functions. > > Tested on i386 CET/non-CET machines. > > > H.J. Lu (4): > i386: Don't unnecessarily save and restore EAX, ECX and EDX [BZ# > 25262] > i386/sub_n.S: Add a missing _CET_ENDBR to indirect jump target > i386: Add _CET_ENDBR to assembly files without ENTRY > i386: Enable CET support in ucontext functions > > sysdeps/i386/i386-mcount.S | 2 + > sysdeps/i386/nptl/pthread_spin_lock.S | 2 + > sysdeps/i386/nptl/pthread_spin_unlock.S | 3 + > sysdeps/i386/pthread_spin_trylock.S | 2 + > sysdeps/i386/sub_n.S | 1 + > sysdeps/unix/sysv/linux/i386/_exit.S | 1 + > sysdeps/unix/sysv/linux/i386/getcontext.S | 64 +++++++- > sysdeps/unix/sysv/linux/i386/makecontext.S | 123 +++++++++++++++ > sysdeps/unix/sysv/linux/i386/setcontext.S | 112 ++++++++++++-- > sysdeps/unix/sysv/linux/i386/swapcontext.S | 156 ++++++++++++++++++-- > sysdeps/unix/sysv/linux/i386/sysdep.h | 5 + > sysdeps/unix/sysv/linux/i386/ucontext_i.sym | 1 + > 12 files changed, 443 insertions(+), 29 deletions(-) > I'd like to get them into glibc 2.31. Is it too late? Thanks. -- H.J.