Linux: Replace uses of specific types with the more generic pointer

This commit is contained in:
Mike Auty
2024-05-20 21:09:00 +01:00
parent dc7a3878fa
commit c5a45f91fc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ class LinuxIntelStacker(interfaces.automagic.StackerLayerInterface):
# This we get for free
aslr_shift = (
init_task.files.cast("long unsigned int")
init_task.files.cast("pointer")
- module.get_symbol("init_files").address
)
kaslr_shift = init_task_address - cls.virtual_to_physical_address(
+1 -1
View File
@@ -66,7 +66,7 @@ class ABCKmsg(ABC):
self._config = config
self.vmlinux = context.modules[self._config["kernel"]]
self.layer_name = self.vmlinux.layer_name # type: ignore
self.long_unsigned_int_size = self.vmlinux.get_type("long unsigned int").size
self.long_unsigned_int_size = self.vmlinux.get_type("pointer").size
@classmethod
def run_all(