Skip to content

Commit 444305a

Browse files
committed
Handle kernel processes properly this time
1 parent 43ab95f commit 444305a

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

volatility3/framework/plugins/windows/thrdscan.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -110,13 +110,12 @@ def gather_thread_info(
110110
vollog.debug(f"Thread invalid address {ethread.vol.offset:#x}")
111111
return None
112112

113-
if owner_proc_pid == 4 or owner_proc.InheritedFromUniqueProcessId == 4:
114-
vollog.debug(
115-
f"Skipping kernel process with pid {owner_proc.InheritedFromUniqueProcessId}"
116-
)
117-
return None
118-
119-
if vads_cache is not None:
113+
# don't look for VADs in kernel threads, just let them get reported with empty paths
114+
if (
115+
owner_proc_pid != 4
116+
and owner_proc.InheritedFromUniqueProcessId != 4
117+
and vads_cache is not None
118+
):
120119
vads = pe_symbols.PESymbols.get_vads_for_process_cache(
121120
vads_cache, owner_proc
122121
)

0 commit comments

Comments
 (0)