mirror of
https://github.com/volatilityfoundation/volatility3.git
synced 2026-09-22 01:24:51 +02:00
Fix linux.psscan to use kernel offset when finding symbol location
This commit is contained in:
@@ -111,7 +111,7 @@ class PsScan(interfaces.plugins.PluginInterface):
|
||||
# find all sched_class names by searching by if they include '_sched_class', e.g. 'fair_sched_class'
|
||||
if "_sched_class" in symbol:
|
||||
# use canonicalize to set the appropriate sign extension for the addr
|
||||
addr = kernel_layer.canonicalize(vmlinux.get_symbol(symbol).address)
|
||||
addr = kernel_layer.canonicalize(vmlinux.get_symbol(symbol).address + vmlinux.offset)
|
||||
|
||||
# append to needles list the packed hex for searching
|
||||
needles.append(struct.pack(pack_format, addr))
|
||||
|
||||
Reference in New Issue
Block a user