Randomizing kernel structures layout - external modules compulation?
Randomizing kernel structures layout - external modules compulation?
Posted May 13, 2017 0:57 UTC (Sat) by darwish (guest, #102479)In reply to: Randomizing structure layout by geert
Parent article: Randomizing structure layout
I do not understand how would this affect compiling external kernel modules?
If I compile a module with a statement "x->y", how would a compiler know the _right_ actual offset of y? Would the seed be saved somewhere statically in the system? (E.g. /lib/modules/kernel-version/random-seed)
And if the seed is stored somewhere globally readable, can't the exploit writer just use that? And if the seed is not globally readable, does that mean we will have to compile kernel modules using sudo / root access in the future?