Data Infrastructure & Analytics
Diving into /proc/[pid]/mem

Diving into /proc/[pid]/mem

10/27/2020 · Lennart Espe, Marek

What this post added

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.

Read the original post ↗