From: "H.J. Lu" <hjl.tools@gmail.com>
To: binutils@sourceware.org
Subject: [PATCH 0/2] x86: Add assembler mitigation for CVE-2020-0551
Date: Tue, 10 Mar 2020 09:05:26 -0700 [thread overview]
Message-ID: <20200310160528.303613-1-hjl.tools@gmail.com> (raw)
Add 3 command-line options to generate lfence for load, indirect near
branch and ret to help mitigate:
https://nvd.nist.gov/vuln/detail/CVE-2020-0551
H.J. Lu (2):
i386: Generate lfence with load/indirect branch/ret [CVE-2020-0551]
i386: Add tests for lfence with load/indirect branch/ret
gas/ChangeLog | 57 +++
gas/config/tc-i386.c | 368 +++++++++++++++++-
gas/doc/c-i386.texi | 43 ++
gas/testsuite/gas/i386/i386.exp | 14 +
gas/testsuite/gas/i386/lfence-byte.d | 30 ++
gas/testsuite/gas/i386/lfence-byte.e | 12 +
gas/testsuite/gas/i386/lfence-byte.s | 23 ++
gas/testsuite/gas/i386/lfence-indbr-a.d | 21 +
gas/testsuite/gas/i386/lfence-indbr-b.d | 20 +
gas/testsuite/gas/i386/lfence-indbr-c.d | 19 +
gas/testsuite/gas/i386/lfence-indbr.e | 5 +
gas/testsuite/gas/i386/lfence-indbr.s | 8 +
gas/testsuite/gas/i386/lfence-load.d | 112 ++++++
gas/testsuite/gas/i386/lfence-load.s | 60 +++
gas/testsuite/gas/i386/lfence-ret-a.d | 18 +
gas/testsuite/gas/i386/lfence-ret-b.d | 20 +
gas/testsuite/gas/i386/lfence-ret.s | 4 +
gas/testsuite/gas/i386/x86-64-lfence-byte.d | 30 ++
gas/testsuite/gas/i386/x86-64-lfence-byte.e | 12 +
gas/testsuite/gas/i386/x86-64-lfence-byte.s | 23 ++
.../gas/i386/x86-64-lfence-indbr-a.d | 21 +
.../gas/i386/x86-64-lfence-indbr-b.d | 20 +
.../gas/i386/x86-64-lfence-indbr-c.d | 19 +
gas/testsuite/gas/i386/x86-64-lfence-indbr.e | 5 +
gas/testsuite/gas/i386/x86-64-lfence-indbr.s | 8 +
gas/testsuite/gas/i386/x86-64-lfence-load.d | 114 ++++++
gas/testsuite/gas/i386/x86-64-lfence-load.s | 61 +++
gas/testsuite/gas/i386/x86-64-lfence-ret-a.d | 18 +
gas/testsuite/gas/i386/x86-64-lfence-ret-b.d | 20 +
29 files changed, 1184 insertions(+), 1 deletion(-)
create mode 100644 gas/testsuite/gas/i386/lfence-byte.d
create mode 100644 gas/testsuite/gas/i386/lfence-byte.e
create mode 100644 gas/testsuite/gas/i386/lfence-byte.s
create mode 100644 gas/testsuite/gas/i386/lfence-indbr-a.d
create mode 100644 gas/testsuite/gas/i386/lfence-indbr-b.d
create mode 100644 gas/testsuite/gas/i386/lfence-indbr-c.d
create mode 100644 gas/testsuite/gas/i386/lfence-indbr.e
create mode 100644 gas/testsuite/gas/i386/lfence-indbr.s
create mode 100644 gas/testsuite/gas/i386/lfence-load.d
create mode 100644 gas/testsuite/gas/i386/lfence-load.s
create mode 100644 gas/testsuite/gas/i386/lfence-ret-a.d
create mode 100644 gas/testsuite/gas/i386/lfence-ret-b.d
create mode 100644 gas/testsuite/gas/i386/lfence-ret.s
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-byte.d
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-byte.e
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-byte.s
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-indbr-a.d
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-indbr-b.d
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-indbr-c.d
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-indbr.e
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-indbr.s
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-load.d
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-load.s
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-ret-a.d
create mode 100644 gas/testsuite/gas/i386/x86-64-lfence-ret-b.d
--
2.24.1
next reply other threads:[~2020-03-10 16:05 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-10 16:05 H.J. Lu [this message]
2020-03-10 16:05 ` [PATCH 1/2] i386: Generate lfence with load/indirect branch/ret [CVE-2020-0551] H.J. Lu
2020-03-11 10:55 ` Jan Beulich
2020-03-11 16:17 ` H.J. Lu
2020-03-25 9:27 ` Hongtao Liu
2020-03-25 10:03 ` Jan Beulich
2020-03-26 2:23 ` Hongtao Liu
2020-03-26 9:12 ` Jan Beulich
2020-04-16 5:34 ` Hongtao Liu
2020-04-16 8:33 ` Jan Beulich
2020-04-20 7:20 ` Hongtao Liu
2020-04-20 7:34 ` Jan Beulich
2020-04-21 2:24 ` Hongtao Liu
2020-04-21 6:30 ` Jan Beulich
2020-04-22 3:33 ` Hongtao Liu
2020-04-22 8:47 ` Jan Beulich
2020-04-23 2:53 ` Hongtao Liu
2020-04-23 6:59 ` Jan Beulich
2020-04-23 8:53 ` Hongtao Liu
2020-04-23 9:15 ` Jan Beulich
2020-04-24 5:30 ` Hongtao Liu
2020-04-24 6:00 ` Jan Beulich
2020-04-24 7:29 ` Hongtao Liu
2020-04-24 13:00 ` H.J. Lu
2020-04-26 2:03 ` Hongtao Liu
2020-04-26 3:26 ` H.J. Lu
2020-03-10 16:05 ` [PATCH 2/2] i386: Add tests for lfence with load/indirect branch/ret H.J. Lu
2020-03-10 16:33 ` [PATCH 0/2] x86: Add assembler mitigation for CVE-2020-0551 Jan Beulich
2020-03-10 16:36 ` H.J. Lu
2020-03-12 0:32 ` Fangrui Song
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200310160528.303613-1-hjl.tools@gmail.com \
--to=hjl.tools@gmail.com \
--cc=binutils@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).