Generic Tagging for RISC-V Binaries
David Demicco, Matthew Cole, Gokturk Yuksek, Ravi Theja Gollapudi,, Aravind Prakash, Kanad Ghose, Zerksis Umrigar

TL;DR
COGENT is a versatile tool for inserting configurable metadata tags into RISC-V binaries, enhancing security features like control-flow integrity while maintaining backward compatibility and manageable overhead.
Contribution
This paper introduces COGENT, a generic instruction tag generator for RISC-V that supports configurable tags and labels, enabling security solutions without modifying hardware.
Findings
Binary size increases by up to 29.3% with tagging.
Execution overhead ranges from 5.72% to 13.4%.
Supports configurable tag widths and labels for security enhancements.
Abstract
With the widespread popularity of RISC-V -- an open-source ISA -- custom hardware security solutions targeting specific defense needs are gaining popularity. These solutions often require specialized compilers that can insert metadata (called tags) into the generated binaries, and/or extend the RISC-V ISA with new instructions. Developing such compilers can be a tedious and time-consuming process. In this paper, we present COGENT, a generic instruction tag generator for RISC-V architecture. COGENT is capable of associating a tag of configurable and varying widths (1 to 20 bits) to each instruction. It is also capable of emitting labels that are central to the implementation of control-flow integrity (CFI) solutions. COGENT encodes all tags and labels as nop instructions thereby providing full backward compatibility. We evaluate COGENT on a subset of programs from the SPEC CPU2017…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSecurity and Verification in Computing · Radiation Effects in Electronics · Software Reliability and Analysis Research
