proc_pid_stack(5)

โœจ proc_pid_stack(5) โœจ

okay bestie, we're doing a section 5 page today โ€” that's the file formats crew โ€” and this one is literally all about the little kernel-stack peeky-peek file ๐Ÿ’…


๐ŸŽ€ NAME ๐ŸŽ€

/proc/pid/stack โ€” the kernel stack, fr fr


๐Ÿฆ‹ DESCRIPTION ๐Ÿฆ‹

๐ŸŒธ /proc/pid/stack (since Linux 2.6.29)

So picture this: you've got a process, right? And this file is gonna give you a symbolic trace of the function calls in this process's kernel stack. Like a little receipt of everything the kernel is doing on the stack for that pid. iconic behavior honestly โœจ

๐Ÿšจ important though bestie: this file is only provided if the kernel was built with the CONFIG_STACKTRACE configuration option. No CONFIG_STACKTRACE? No file. That's just how it is ๐Ÿ’€

And the vibe check on who gets to read it? Permission to access this file is governed by a ptrace access mode PTRACE_MODE_ATTACH_FSCREDS check โ€” so go read ptrace(2) for the deets. it's giving "you need clearance for this one" ๐Ÿ”


๐Ÿ’– SEE ALSO ๐Ÿ’–


and that's the whole page, no notes ๐Ÿซถ

~ a little sign-off from your girl: this was from Linux man-pages 6.20, dated 2026-02-08 ๐ŸŒˆ star โญ

๐Ÿ“ฆ where this page comes from
  • arch rolling: man-pages 6.20-1 ยท BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
  • nixpkgs unstable: man-pages 6.20
  • ๐Ÿ“œ the page's license: GPL-3.0-or-later
  • ๐Ÿ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms