You are not logged in.
I compile a linux kernel version 5.x with a .config file. Then I reboot and compile kernel once again using the *very same* .config. The resulting bzImage size is different by some ~200-2000 bytes (each time different)! Another time gets different size! Same config!
What's the rooted cause of this problem? How to fix this??
Last edited by abc12345 (2022-10-04 10:04:59)
Offline
Offline
Thanks for the link.
Offline
By extension, it should be an imperative security protocol for all Linux users to randomize kernel structure prior to each and every single boot. It is a quick endeavor - you just run this in the kernel source's directory:
scripts/./gen-randstruct-seed.sh FORCE include/generated/randstruct_hash.h
makeand boom, you are uber secure™
This literally just generates a new random seed for randomized linking. It's also a very quick make because it just relinks everything you already compiled and takes only a couple of seconds. Put the newly randomized structurally kernel into your boot folder before every boot under the correct name (vmlinuz-xxx) and you are hardened more.
Last edited by abc12345 (2022-10-04 11:40:54)
Offline