How to load kernel modules into fixed addresses?

From: Joey Jiao
Date: Tue Nov 09 2021 - 01:25:00 EST


Hi,
The userspace uses modprobe to load multiple kernel modules in the way like
```
for i in $(cat module.list); do
modprobe $i &
done
```

And everytime, I reboot the device (verified on arm64 devices), `cat
/proc/modules` shows different loading addresses even if kaslr
disabled. Also tried to remove the & from the modprobe command.

So the question is for testing purposes, any steps to follow to make
sure each module.ko is loaded into a fixed address (especially any
kernel space code or config change)?

Thanks

--
-Joey Jiao