The Performance Cost of Shadow Stacks and Stack Canaries
The DOI matches its Crossref record.
Abstract
Control flow defenses against ROP either use strict, expensive, but strong protection against redirected RET instructions with shadow stacks, or much faster but weaker protections without. In this work we study the inherent overheads of shadow stack schemes. We find that the overhead is roughly 10% for a traditional shadow stack. We then design a new scheme, the parallel shadow stack, and show that its performance cost is significantly less: 3.5%. Our measurements suggest it will not be easy to improve performance on current x86 processors further, due to inherent costs associated with RET and memory load/store instructions. We conclude with a discussion of the design decisions in our shadow stack instrumentation, and possible lighter-weight alternatives.
Overview
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Integrity signals
Registry
Cites
Statistics
Verification
Claims the paper makes
The claims and statistics of this paper haven’t been checked yet.
Free: it reads the open-access text and checks the first 5 claims that cite a source we can check. Create a free account to check every claim.
Self-check
Percentages, sums and reported differences re-computed from the paper’s own numbers.
The self-check needs the paper’s full text.
Citations
Cited by
Control-Flow Integrity: Precision, Security, and Performance
Burow, N., Carr, S. A., Nash, J., Larsen, P., Franz, M., Brunthaler, S., & Payer, M. (2018) · ACM Computing Surveys · doi:10.1145/3054924 · Cited by 254
A Tough Call: Mitigating Advanced Code-Reuse Attacks at the Binary Level
van der Veen, V., Goktas, E., Contag, M., Pawoloski, A., Chen, X., Rawat, S., Bos, H., Holz, T., Athanasopoulos, E., & Giuffrida, C. (2016) · 2016 IEEE Symposium on Security and Privacy (SP) · doi:10.1109/sp.2016.60 · Cited by 199
“, a shadow stack [14] or context-sensitive CFI [30]) is still essential to ensure the integrity of return addresses at runtime [9], [18].”
BackgroundPractical Context-Sensitive CFI
van der Veen, V., Andriesse, D., Göktaş, E., Gras, B., Sambuc, L., Slowinska, A., Bos, H., & Giuffrida, C. (2015) · Proceedings of the 22nd ACM SIGSAC Conference on Computer and Communications Security · doi:10.1145/2810103.2813673 · Cited by 197
“In prior fine-grained CFI techniques, context-sensitive policies have been explored only for backward edges and only using shadow stacks [11,18,20,21,23,25,38,39,43,51].”
BackgroundHAFIX: hardware-assisted flow integrity extension
Davi, L., Hanreich, M., Paul, D., Sadeghi, A.-R., Koeberl, P., Sullivan, D., Arias, O., & Jin, Y. (2015) · Proceedings of the 52nd Annual Design Automation Conference · doi:10.1145/2744769.2744847 · Cited by 171
“As discussed by Dang et al. [6] several shadow stack implementations require special handling of certain programming constructs to avoid a false alarm.”
BackgroundMethodNo Need to Hide: Protecting Safe Regions on Commodity Hardware
Koning, K., Chen, X., Bos, H., Giuffrida, C., & Athanasopoulos, E. (2017) · Proceedings of the Twelfth European Conference on Computer Systems · doi:10.1145/3064176.3064217 · Cited by 116
Metadata
- Authors
- Dang, T. H. Y., Maniatis, P., & Wagner, D.
- Venue
- Proceedings of the 10th ACM Symposium on Information, Computer and Communications Security
- Publisher
- ACM
- Published
- 2015-04-14
- Pages
- 555-566
- OpenAlex
- W1969338270
- Cited by
- 227
- References
- 0
- FWCI
- 14.01
- Type
- conference paper
- Language
- en
- Open access
- closed
About these checks
Registry, retraction, Cites and statistics results are computed, not judged, with one exception: a printed reference that no index lists is read once by a model before it counts as a citation error. Claims are extracted by a model and kept only when their quote appears verbatim in the text; each cited source is then checked, with a model’s help, for whether it says what the claim relies on. Those verdicts can be wrong — read the claim’s quote and the cited source before relying on one.
Statistics and arithmetic are recomputed, not judged.
Confidence bands are shown only for fields calibrated on our annotated test set. None is calibrated yet, so no band is shown.
What counts as a claim ›How we measure confidence ›How we check this ›
Are you an author, or do you see a problem with this page? Request a review
Data sources
Bibliographic data: Semantic Scholar, OpenAlex, Crossref.
Contains information from the Semantic Scholar Academic Graph Datasets, made available under the ODC Attribution License (ODC-BY 1.0).
Semantic Scholar’s data is described in: Kinney, R., et al. (2023). The Semantic Scholar Open Data Platform. arXiv:2301.10140.