---
name: "proc_pid_stack"
section: "5"
platform: "linux"
package: "man-pages"
version: "6.19-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/proc_pid_stack"
---

# proc\_pid\_stack(5)

kernel stack

## NAME

/proc/pid/stack - kernel stack

## DESCRIPTION

- */proc/*pid*/stack* (since Linux 2.6.29)

  This file provides a symbolic trace of the function calls in this process's kernel stack. This file is provided only if the kernel was built with the **CONFIG\_STACKTRACE** configuration option.

-

  Permission to access this file is governed by a ptrace access mode **PTRACE\_MODE\_ATTACH\_FSCREDS** check; see [**ptrace**(2)](/ptrace/2.md).

## SEE ALSO

[**proc**(5)](/proc/5.md)
