public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] x86: Add assembler mitigation for CVE-2020-0551
@ 2020-03-10 16:05 H.J. Lu
  2020-03-10 16:05 ` [PATCH 1/2] i386: Generate lfence with load/indirect branch/ret [CVE-2020-0551] H.J. Lu
                   ` (2 more replies)
  0 siblings, 3 replies; 30+ messages in thread
From: H.J. Lu @ 2020-03-10 16:05 UTC (permalink / raw)
  To: binutils

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


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2020-04-26  3:27 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-10 16:05 [PATCH 0/2] x86: Add assembler mitigation for CVE-2020-0551 H.J. Lu
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

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).