Skip to content
This repository was archived by the owner on May 16, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion volatility/plugins/overlays/linux/linux.py
Original file line number Diff line number Diff line change
Expand Up @@ -2364,7 +2364,14 @@ def generate_suggestions(self):

comm_offset = profile.get_obj_offset("task_struct", "comm")
pid_offset = profile.get_obj_offset("task_struct", "pid")
state_offset = profile.get_obj_offset("task_struct", "state")

try:
# For Linux kernels < v5.14-rc1
state_offset = profile.get_obj_offset("task_struct", "state")
except KeyError:
# For Linux kernels >= v5.14-rc1, based on commit 2f064a59a11ff9bc22e52e9678bc601404c7cb34
state_offset = profile.get_obj_offset("task_struct", "__state")

files_offset = profile.get_obj_offset("task_struct", "files")
mm_offset = profile.get_obj_offset("task_struct", "active_mm")

Expand Down