Skip to content

Commit 831e6cf

Browse files
committed
Linux: update kmsg KmsgFiveTen class to handle symbol shift and create objects with absolute addresses
1 parent 42a89cf commit 831e6cf

File tree

1 file changed

+3
-1
lines changed
  • volatility3/framework/plugins/linux

1 file changed

+3
-1
lines changed

volatility3/framework/plugins/linux/kmsg.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def __init__(
6767
vmlinux = context.modules[self._config["kernel"]]
6868
self.layer_name = vmlinux.layer_name # type: ignore
6969
symbol_table_name = vmlinux.symbol_table_name # type: ignore
70-
self.vmlinux = contexts.Module.create(context, symbol_table_name, self.layer_name, 0) # type: ignore
70+
self.vmlinux = contexts.Module.create(context, symbol_table_name, self.layer_name, vmlinux.offset) # type: ignore
7171
self.long_unsigned_int_size = self.vmlinux.get_type("long unsigned int").size
7272

7373
@classmethod
@@ -365,12 +365,14 @@ def run(self) -> Iterator[Tuple[str, str, str, str, str]]:
365365
offset=desc_ring.descs,
366366
subtype=self.vmlinux.get_type("prb_desc"),
367367
count=desc_count,
368+
absolute=True,
368369
)
369370
info_arr = self.vmlinux.object(
370371
object_type="array",
371372
offset=desc_ring.infos,
372373
subtype=self.vmlinux.get_type("printk_info"),
373374
count=desc_count,
375+
absolute=True,
374376
)
375377

376378
# See kernel/printk/printk_ringbuffer.h

0 commit comments

Comments
 (0)