Verified DRAM Address Mapping Reverse Engineering with Threshold Sweep
Hewen Zhang, Ian G. Harris
Abstract
We propose an end-to-end software pipeline for solving and validating DRAM address mapping functions on embedded LPDDR5 systems, and we instantiate it on embedded platforms. Starting from a large latency dataset of address pairs, the pipeline first builds a latency histogram and then performs a threshold sweep to obtain candidate same-bank address pairs. For each threshold, we apply a Knock-Knock-style linear-constraint solver to recover candidate bank masks. Final bank masks are calculated using GF(2) reduced row echelon form (RREF). To verify correctness, we implement two verification stages, group verification and single function verification, inspired by prior work. Group verification checks whether bank partitions induced by the recovered masks agree with observed timing behavior. Single function verification removes one addressing function at a time and measures the resulting change in verification pass rate. Unlike approaches that return only a single inferred mapping, our workflow systematically records, for each candidate threshold, the solved bank masks and validation metrics. This pipeline supports more robust selection of bank masks on ARM-based embedded devices and provides an efficient method for reverse engineering DRAM address mapping functions and subsequent Rowhammer analysis.
Create a lesson
Related papers
HARE: Fast Read Disturbance Threshold Profiling in Modern DRAM Chips via Reduced Timing Constraints
Shared title terminology · F. Nisa Bostanci, Ismail E. Yuksel, Ataberk Olgun et al.
SFU-Sim: Bit-Exact Reverse Engineering of NVIDIA MUFU and Validation of PTX Paths
Shared title terminology · Haozhi Xie, Tao Su
Mitigating Row Buffer Contention Through Multiple Row Buffer (MRB) DRAM
Shared title terminology · K Chitra, Arjun Dey, Aryabartta Sahu et al.
RE-CAM: Readout-Enhanced Content-Addressable Memory for Quantitative Similarity Search
Shared title terminology · Yi-Chun Liao, Dongyoung Lee, Jiazheng Chen et al.
HETEROVLM: Edge Multi-Request Vision-Language Model Serving on a Heterogeneous Versal SoC with AI Engines and Programmable Logic
Shared title terminology · Zhiheng Chen, Yu-An Chou, Yifan Zhang et al.
FCP: Formal Context Protocol for Verifying LLM-Generated Artifacts
Shared title terminology · Shashank