Comment 14 for bug 1983357

Revision history for this message
Steve Beattie (sbeattie) wrote :

I have confirmed that with the 6.5.0-25.25 kernel in mantic-proposed, shared libraries for 32bit binaries are loaded with some randoness; specifically, we are back to 7 bits of randomness with this kernel update:

$ cat /proc/version_signature
Ubuntu 6.5.0-25.25-generic 6.5.13
$ for ((i = 0 ; i < 5; i++ )) ; do ./aslr32 --report libs ; done
0xe8a86e80
0xf4a86e80
0xf2886e80
0xf2a86e80
0xf1686e80
# report the number of distinct values we get:
$ for ((i = 0 ; i < 10000; i++ )) ; do ./aslr32 --report libs ; done | sort | uniq -c | wc -l
129

For reference, on the 6.5.0-17.17 kernel, we had no randomness whatsoever:

$ cat /proc/version_signature
Ubuntu 6.5.0-17.17-generic 6.5.8
$ for ((i = 0 ; i < 10000; i++ )) ; do ./aslr32 --report libs ; done | sort | uniq -c
  10000 0xf7c86e80