Skip to content
Cloudflare

Diving into /proc/[pid]/mem

Oct 27, 2020Lennart Espe, Marek7 min read
Opens blog.cloudflare.com
What the post coversAI, from the source post

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 full post on blog.cloudflare.com · 7 min (opens in a new tab)

More from the Data Infrastructure & Analytics trail