1
0
mirror of https://github.com/0xAX/linux-insides.git synced 2024-12-22 14:48:08 +00:00

kaslr: add KASLR_FLAG description

This commit is contained in:
Alexander Kuleshov 2018-04-03 00:29:12 +06:00
parent b7ed445f0a
commit 9b7d1b067e
No known key found for this signature in database
GPG Key ID: EE88CAC52D66AC9B

View File

@ -134,9 +134,13 @@ kASLR is disabled by default. When kASLR is enabled,
hibernation will be disabled.
```
Let's assume that we didn't pass `nokaslr` to the kernel command line and the `CONFIG_RANDOMIZE_BASE` kernel configuration option is enabled.
Let's assume that we didn't pass `nokaslr` to the kernel command line and the `CONFIG_RANDOMIZE_BASE` kernel configuration option is enabled. In this case we add `kASLR` flag to kernel load flags:
The next step is the call of the:
```C
boot_params->hdr.loadflags |= KASLR_FLAG;
```
and the next step is the call of the:
```C
initialize_identity_maps();