Strong and Efficient Cache Side-Channel Protection Using
Total Page:16
File Type:pdf, Size:1020Kb
Load more
Recommended publications
-
Dress and Cultural Difference in Early Modern Europe European History Yearbook Jahrbuch Für Europäische Geschichte
Dress and Cultural Difference in Early Modern Europe European History Yearbook Jahrbuch für Europäische Geschichte Edited by Johannes Paulmann in cooperation with Markus Friedrich and Nick Stargardt Volume 20 Dress and Cultural Difference in Early Modern Europe Edited by Cornelia Aust, Denise Klein, and Thomas Weller Edited at Leibniz-Institut für Europäische Geschichte by Johannes Paulmann in cooperation with Markus Friedrich and Nick Stargardt Founding Editor: Heinz Duchhardt ISBN 978-3-11-063204-0 e-ISBN (PDF) 978-3-11-063594-2 e-ISBN (EPUB) 978-3-11-063238-5 ISSN 1616-6485 This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 04. International License. For details go to http://creativecommons.org/licenses/by-nc-nd/4.0/. Library of Congress Control Number:2019944682 Bibliographic information published by the Deutsche Nationalbibliothek The Deutsche Nationalbibliothek lists this publication in the Deutsche Nationalbibliografie; detailed bibliographic data are available on the Internet at http://dnb.dnb.de. © 2019 Walter de Gruyter GmbH, Berlin/Boston The book is published in open access at www.degruyter.com. Typesetting: Integra Software Services Pvt. Ltd. Printing and Binding: CPI books GmbH, Leck Cover image: Eustaţie Altini: Portrait of a woman, 1813–1815 © National Museum of Art, Bucharest www.degruyter.com Contents Cornelia Aust, Denise Klein, and Thomas Weller Introduction 1 Gabriel Guarino “The Antipathy between French and Spaniards”: Dress, Gender, and Identity in the Court Society of Early Modern -
The Case for Hardware Transactional Memory
Lecture 20: Transactional Memory CMU 15-418: Parallel Computer Architecture and Programming (Spring 2012) Giving credit ▪ Many of the slides in today’s talk are the work of Professor Christos Kozyrakis (Stanford University) (CMU 15-418, Spring 2012) Raising level of abstraction for synchronization ▪ Machine-level synchronization prims: - fetch-and-op, test-and-set, compare-and-swap ▪ We used these primitives to construct higher level, but still quite basic, synchronization prims: - lock, unlock, barrier ▪ Today: - transactional memory: higher level synchronization (CMU 15-418, Spring 2012) What you should know ▪ What a transaction is ▪ The difference between the atomic construct and locks ▪ Design space of transactional memory implementations - data versioning policy - con"ict detection policy - granularity of detection ▪ Understand HW implementation of transaction memory (consider how it relates to coherence protocol implementations we’ve discussed in the past) (CMU 15-418, Spring 2012) Example void deposit(account, amount) { lock(account); int t = bank.get(account); t = t + amount; bank.put(account, t); unlock(account); } ▪ Deposit is a read-modify-write operation: want “deposit” to be atomic with respect to other bank operations on this account. ▪ Lock/unlock pair is one mechanism to ensure atomicity (ensures mutual exclusion on the account) (CMU 15-418, Spring 2012) Programming with transactional memory void deposit(account, amount){ void deposit(account, amount){ lock(account); atomic { int t = bank.get(account); int t = bank.get(account); t = t + amount; t = t + amount; bank.put(account, t); bank.put(account, t); unlock(account); } } } nDeclarative synchronization nProgrammers says what but not how nNo explicit declaration or management of locks nSystem implements synchronization nTypically with optimistic concurrency nSlow down only on true con"icts (R-W or W-W) (CMU 15-418, Spring 2012) Declarative vs. -
Robust Architectural Support for Transactional Memory in the Power Architecture
Robust Architectural Support for Transactional Memory in the Power Architecture Harold W. Cain∗ Brad Frey Derek Williams IBM Research IBM STG IBM STG Yorktown Heights, NY, USA Austin, TX, USA Austin, TX, USA [email protected] [email protected] [email protected] Maged M. Michael Cathy May Hung Le IBM Research IBM Research (retired) IBM STG Yorktown Heights, NY, USA Yorktown Heights, NY, USA Austin, TX, USA [email protected] [email protected] [email protected] ABSTRACT in current p795 systems, with 8 TB of DRAM), as well as On the twentieth anniversary of the original publication [10], strengths in RAS that differentiate it in the market, adding following ten years of intense activity in the research lit- TM must not compromise any of these virtues. A robust erature, hardware support for transactional memory (TM) system is one that is sturdy in construction, a trait that has finally become a commercial reality, with HTM-enabled does not usually come to mind in respect to HTM systems. chips currently or soon-to-be available from many hardware We structured TM to work in harmony with features that vendors. In this paper we describe architectural support for support the architecture's scalability. Our goal has been to TM provide a comprehensive programming environment includ- TM added to a future version of the Power ISA . Two im- ing support for simple system calls and debug aids, while peratives drove the development: the desire to complement providing a robust (in the sense of "no surprises") execu- our weakly-consistent memory model with a more friendly tion environment with reasonably consistent performance interface to simplify the development and porting of multi- and without unexpected transaction failures.2 TM must be threaded applications, and the need for robustness beyond usable throughout the system stack: in hypervisors, oper- that of some early implementations. -
Leveraging Modern Multi-Core Processor Features to Efficiently
LEVERAGING MODERN MULTI-CORE PROCESSORS FEATURES TO EFFICIENTLY DEAL WITH SILENT ERRORS, AUGUST 2017 1 Leveraging Modern Multi-core Processor Features to Efficiently Deal with Silent Errors Diego Perez´ ∗, Thomas Roparsz, Esteban Meneses∗y ∗School of Computing, Costa Rica Institute of Technology yAdvanced Computing Laboratory, Costa Rica National High Technology Center zUniv. Grenoble Alpes, CNRS, Grenoble INP ' , LIG, F-38000 Grenoble France Abstract—Since current multi-core processors are more com- about 200% of resource overhead [3]. Recent contributions [1] plex systems on a chip than previous generations, some transient [4] tend to show that checkpointing techniques provide the errors may happen, go undetected by the hardware and can best compromise between transparency for the developer and potentially corrupt the result of an expensive calculation. Because of that, techniques such as Instruction Level Redundancy or efficient resource usage. In theses cases only one extra copy checkpointing are utilized to detect and correct these soft errors; is executed, which is enough to detect the error. But, still the however these mechanisms are highly expensive, adding a lot technique remains expensive with about 100% of overhead. of resource overhead. Hardware Transactional Memory (HTM) To reduce this overhead, some features provided by recent exposes a very convenient and efficient way to revert the state of processors, such as hardware-managed transactions, Hyper- a core’s cache, which can be utilized as a recovery technique. An experimental prototype has been created that uses such feature Threading and memory protection extensions, could be great to recover the previous state of the calculation when a soft error opportunities to implement efficient error detection and recov- has been found. -
Women's Clothing in the 18Th Century
National Park Service Park News U.S. Department of the Interior Pickled Fish and Salted Provisions A Peek Inside Mrs. Derby’s Clothes Press: Women’s Clothing in the 18th Century In the parlor of the Derby House is a por- trait of Elizabeth Crowninshield Derby, wearing her finest apparel. But what exactly is she wearing? And what else would she wear? This edition of Pickled Fish focuses on women’s clothing in the years between 1760 and 1780, when the Derby Family were living in the “little brick house” on Derby Street. Like today, women in the 18th century dressed up or down depending on their social status or the work they were doing. Like today, women dressed up or down depending on the situation, and also like today, the shape of most garments was common to upper and lower classes, but differentiated by expense of fabric, quality of workmanship, and how well the garment fit. Number of garments was also determined by a woman’s class and income level; and as we shall see, recent scholarship has caused us to revise the number of garments owned by women of the upper classes in Essex County. Unfortunately, the portrait and two items of clothing are all that remain of Elizabeth’s wardrobe. Few family receipts have survived, and even the de- tailed inventory of Elias Hasket Derby’s estate in 1799 does not include any cloth- ing, male or female. However, because Pastel portrait of Elizabeth Crowninshield Derby, c. 1780, by Benjamin Blythe. She seems to be many other articles (continued on page 8) wearing a loose robe over her gown in imitation of fashionable portraits. -
Lecture 21: Transactional Memory
Lecture 21: Transactional Memory • Topics: Hardware TM basics, different implementations 1 Transactions • New paradigm to simplify programming . instead of lock-unlock, use transaction begin-end . locks are blocking, transactions execute speculatively in the hope that there will be no conflicts • Can yield better performance; Eliminates deadlocks • Programmer can freely encapsulate code sections within transactions and not worry about the impact on performance and correctness (for the most part) • Programmer specifies the code sections they’d like to see execute atomically – the hardware takes care of the rest (provides illusion of atomicity) 2 Transactions • Transactional semantics: . when a transaction executes, it is as if the rest of the system is suspended and the transaction is in isolation . the reads and writes of a transaction happen as if they are all a single atomic operation . if the above conditions are not met, the transaction fails to commit (abort) and tries again transaction begin read shared variables arithmetic write shared variables transaction end 3 Example Producer-consumer relationships – producers place tasks at the tail of a work-queue and consumers pull tasks out of the head Enqueue Dequeue transaction begin transaction begin if (tail == NULL) if (head->next == NULL) update head and tail update head and tail else else update tail update head transaction end transaction end With locks, neither thread can proceed in parallel since head/tail may be updated – with transactions, enqueue and dequeue can proceed in parallel -
A Study on the Design and Composition of Victorian Women's Mantle
Journal of Fashion Business Vol. 14, No. 6, pp.188~203(2010) A Study on the Design and Composition of Victorian Women’s Mantle * Lee Sangrye ‧ Kim Hyejeong Professor, Dept. of Fashion Design, TongMyong University * Associate Professor, Dept. of Clothing Industry, Hankyong National University Abstract This study purposed to identify the design and composition characteristics of mantle through a historical review of its change and development focusing on women’s dress. This analysis was particularly focused on the Victorian age because the variety of mantle designs introduced and popularized was wider than ever since ancient times to the present. For this study, we collected historical literature on mantle from ancient times to the 19 th century and made comparative analysis of design and composition, and for the Victorian age we investigated also actual items from the period. During the early Victorian age when the crinoline style was popular, mantle was of A‐ line silhouette spreading downward from the shoulders and of around knee length. In the mid Victorian age from 1870 to 1889 when the bustle style was popular, the style of mantle was changed to be three‐ dimensional, exaggerating the rear side of the bustle skirt. In addition, with increase in women’s suburban activities, walking costume became popular and mantle reached its climax. With the diversification of design and composition in this period, the name of mantle became more specific and as a result, mantle, mantelet, dolman, paletot, etc. were used. The styles popular were: it looked like half-jacket and half-cape. Ornaments such as tassels, fur, braids, rosettes, tufts and fringe were attached to create luxurious effects. -
Practical Enclave Malware with Intel SGX
Practical Enclave Malware with Intel SGX Michael Schwarz, Samuel Weiser, Daniel Gruss Graz University of Technology Abstract. Modern CPU architectures offer strong isolation guarantees towards user applications in the form of enclaves. However, Intel's threat model for SGX assumes fully trusted enclaves and there doubt about how realistic this is. In particular, it is unclear to what extent enclave malware could harm a system. In this work, we practically demonstrate the first enclave malware which fully and stealthily impersonates its host application. Together with poorly-deployed application isolation on per- sonal computers, such malware can not only steal or encrypt documents for extortion but also act on the user's behalf, e.g., send phishing emails or mount denial-of-service attacks. Our SGX-ROP attack uses new TSX- based memory-disclosure primitive and a write-anything-anywhere prim- itive to construct a code-reuse attack from within an enclave which is then inadvertently executed by the host application. With SGX-ROP, we bypass ASLR, stack canaries, and address sanitizer. We demonstrate that instead of protecting users from harm, SGX currently poses a se- curity threat, facilitating so-called super-malware with ready-to-hit ex- ploits. With our results, we demystify the enclave malware threat and lay ground for future research on defenses against enclave malware. Keywords: Intel SGX, Trusted Execution Environments, Malware 1 Introduction Software isolation is a long-standing challenge in system security, especially if parts of the system are considered vulnerable, compromised, or malicious [24]. Recent isolated-execution technology such as Intel SGX [23] can shield software modules via hardware protected enclaves even from privileged kernel malware. -
Clothing in Ancient Greece Edited
Clothing in ancient Greece Clothing in ancient Greece and Rome was generally created out of large, single pieces of fabric. Several different pieces of clothing could be worn in various combinations to create multiple outfits. The fabric was also draped, belted and pinned into various styles. In art, it is sometimes very difficult to differentiate the various garments worn as they all seem to be billowy drapes of fabric. In Greece, women usually wore one of two garments on a regular basis. One was the peplos, a style of dress made from a single piece of fabric that is folded over at the top, wrapped around the body and pinned up at the shoulders. Folding down the top created a second layer of fabric that ran down the back and the front of the garment, which was referred to as an apoptygma. The other piece of clothing was worn by both men and women, and was called a chiton. The chiton was very similar to the peplos, except without the apoptygma. This was created by a single piece of fabric wrapped around the body and pinned up on the shoulders, or by two pieces of fabric sewn up both sides with space left for armholes. The men wore a shorter version of the chiton. This, too, could be belted or left as-is. The pins that were often used to hold up these garments worked very similarly to safety pins or brooches, and were called fibulae. The other important piece of clothing for both men and women was called the himation. -
Garments, Parts of Garments, and Textile Techniques in the Assyrian
University of Nebraska - Lincoln DigitalCommons@University of Nebraska - Lincoln Textile Terminologies from the Orient to the Centre for Textile Research Mediterranean and Europe, 1000 BC to 1000 AD 2017 Garments, Parts of Garments, and Textile Techniques in the Assyrian Terminology: The eoN - Assyrian Textile Lexicon in the 1st-Millennium BC Linguistic Context Salvatore Gaspa University of Copenhagen Follow this and additional works at: http://digitalcommons.unl.edu/texterm Part of the Ancient History, Greek and Roman through Late Antiquity Commons, Art and Materials Conservation Commons, Classical Archaeology and Art History Commons, Classical Literature and Philology Commons, Fiber, Textile, and Weaving Arts Commons, Indo-European Linguistics and Philology Commons, Jewish Studies Commons, Museum Studies Commons, Near Eastern Languages and Societies Commons, and the Other History of Art, Architecture, and Archaeology Commons Gaspa, Salvatore, "Garments, Parts of Garments, and Textile Techniques in the Assyrian Terminology: The eN o-Assyrian Textile Lexicon in the 1st-Millennium BC Linguistic Context" (2017). Textile Terminologies from the Orient to the Mediterranean and Europe, 1000 BC to 1000 AD. 3. http://digitalcommons.unl.edu/texterm/3 This Article is brought to you for free and open access by the Centre for Textile Research at DigitalCommons@University of Nebraska - Lincoln. It has been accepted for inclusion in Textile Terminologies from the Orient to the Mediterranean and Europe, 1000 BC to 1000 AD by an authorized administrator of DigitalCommons@University of Nebraska - Lincoln. Garments, Parts of Garments, and Textile Techniques in the Assyrian Terminology: The Neo- Assyrian Textile Lexicon in the 1st-Millennium BC Linguistic Context Salvatore Gaspa, University of Copenhagen In Textile Terminologies from the Orient to the Mediterranean and Europe, 1000 BC to 1000 AD, ed. -
Taming Transactions: Towards Hardware-Assisted Control Flow Integrity Using Transactional Memory
Taming Transactions: Towards Hardware-Assisted Control Flow Integrity Using Transactional Memory B Marius Muench1( ), Fabio Pagani1, Yan Shoshitaishvili2, Christopher Kruegel2, Giovanni Vigna2, and Davide Balzarotti1 1 Eurecom, Sophia Antipolis, France {marius.muench,fabio.pagani,davide.balzarotti}@eurecom.fr 2 University of California, Santa Barbara, USA {yans,chris,vigna}@cs.ucsb.edu Abstract. Control Flow Integrity (CFI) is a promising defense tech- nique against code-reuse attacks. While proposals to use hardware fea- tures to support CFI already exist, there is still a growing demand for an architectural CFI support on commodity hardware. To tackle this problem, in this paper we demonstrate that the Transactional Synchro- nization Extensions (TSX) recently introduced by Intel in the x86-64 instruction set can be used to support CFI. The main idea of our approach is to map control flow transitions into transactions. This way, violations of the intended control flow graphs would then trigger transactional aborts, which constitutes the core of our TSX-based CFI solution. To prove the feasibility of our technique, we designed and implemented two coarse-grained CFI proof-of-concept implementations using the new TSX features. In particular, we show how hardware-supported transactions can be used to enforce both loose CFI (which does not need to extract the control flow graph in advance) and strict CFI (which requires pre-computed labels to achieve a better pre- cision). All solutions are based on a compile-time instrumentation. We evaluate the effectiveness and overhead of our implementations to demonstrate that a TSX-based implementation contains useful concepts for architectural control flow integrity support. -
A Survey of Published Attacks on Intel
1 A Survey of Published Attacks on Intel SGX Alexander Nilsson∗y, Pegah Nikbakht Bideh∗, Joakim Brorsson∗zx falexander.nilsson,pegah.nikbakht_bideh,[email protected] ∗Lund University, Department of Electrical and Information Technology, Sweden yAdvenica AB, Sweden zCombitech AB, Sweden xHyker Security AB, Sweden Abstract—Intel Software Guard Extensions (SGX) provides a Unfortunately, a relatively large number of flaws and attacks trusted execution environment (TEE) to run code and operate against SGX have been published by researchers over the last sensitive data. SGX provides runtime hardware protection where few years. both code and data are protected even if other code components are malicious. However, recently many attacks targeting SGX have been identified and introduced that can thwart the hardware A. Contribution defence provided by SGX. In this paper we present a survey of all attacks specifically targeting Intel SGX that are known In this paper, we present the first comprehensive review to the authors, to date. We categorized the attacks based on that includes all known attacks specific to SGX, including their implementation details into 7 different categories. We also controlled channel attacks, cache-attacks, speculative execu- look into the available defence mechanisms against identified tion attacks, branch prediction attacks, rogue data cache loads, attacks and categorize the available types of mitigations for each presented attack. microarchitectural data sampling and software-based fault in- jection attacks. For most of the presented attacks, there are countermeasures and mitigations that have been deployed as microcode patches by Intel or that can be employed by the I. INTRODUCTION application developer herself to make the attack more difficult (or impossible) to exploit.