Diving into /proc/[pid]/mem
Oct 27, 2020Lennart Espe, Marek7 min read
Opens blog.cloudflare.comWhat the post covers
This post details the implementation of the `/proc/[pid]/mem` file within gVisor's virtual file system.
- This was a crucial step to enable proper stack unwinding and debugging for processes running inside the sandbox, which previously resulted in unhelpful stack traces.
- The post dives into the Linux kernel's implementation of `/proc/[pid]/mem`, including access checks and read operations, and explains how these concepts were adapted for gVisor's sandboxing environment.
- This directly contributes to Cloudflare's data infrastructure and analytics by enhancing the diagnostic capabilities within their sandboxed environments.
More from the Data Infrastructure & Analytics trail
How we built Cloudflare's data platform and an AI agent on top of it
Our billing pipeline was suddenly slow. The culprit was a hidden bottleneck in ClickHouse
When "idle" isn't idle: how a Linux kernel optimization became a QUIC bug
Evolving Cloudflare’s Threat Intelligence Platform: actionable, scalable, and ETL-less
ASPA: making Internet routing more secure