From: "H.J. Lu" <hjl.tools@gmail.com>
To: GNU C Library <libc-alpha@sourceware.org>
Subject: Re: [PATCH 0/4] i386: Finish CET support
Date: Tue, 7 Jan 2020 12:43:19 -0800 [thread overview]
Message-ID: <CAMe9rOq2b32YHx2zaqSfU3NgV=YkUDef_fJqQB4M9fTL=EbXgg@mail.gmail.com> (raw)
In-Reply-To: <20191210204710.4832-1-hjl.tools@gmail.com>
On Tue, Dec 10, 2019 at 12:47 PM H.J. Lu <hjl.tools@gmail.com> 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.
prev parent reply other threads:[~2020-01-07 20:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-10 20:47 [PATCH 0/4] i386: Finish CET support H.J. Lu
2019-12-10 20:47 ` [PATCH 1/4] i386: Don't unnecessarily save and restore EAX, ECX and EDX [BZ# 25262] H.J. Lu
2019-12-10 20:47 ` [PATCH 2/4] i386/sub_n.S: Add a missing _CET_ENDBR to indirect jump target H.J. Lu
2019-12-10 20:47 ` [PATCH 3/4] i386: Add _CET_ENDBR to assembly files without ENTRY H.J. Lu
2020-01-07 22:05 ` Adhemerval Zanella
2020-01-07 23:38 ` H.J. Lu
2019-12-10 20:47 ` [PATCH 4/4] i386: Enable CET support in ucontext functions H.J. Lu
2019-12-12 12:46 ` [PATCH 0/4] i386: Finish CET support Florian Weimer
2019-12-12 15:57 ` H.J. Lu
2020-01-07 20:43 ` H.J. Lu [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/libc/involved.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMe9rOq2b32YHx2zaqSfU3NgV=YkUDef_fJqQB4M9fTL=EbXgg@mail.gmail.com' \
--to=hjl.tools@gmail.com \
--cc=libc-alpha@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).