summaryrefslogtreecommitdiff
path: root/net/ipv4/tcp_input.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2019-01-27 09:29:42 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2020-11-15 15:49:07 +0100
commit1651ed523cac3763bb1efe800ca752ed4a0ec8f7 (patch)
tree20d4ee4680887a047e83c4ecdf7c49564054150c /net/ipv4/tcp_input.c
parentd9ce517c5a8ed5e3e08e848abd1961e89f7bb30e (diff)
UPSTREAM: arm64: kaslr: ensure randomized quantities are clean also when kaslr is off
Commit 1598ecda7b23 ("arm64: kaslr: ensure randomized quantities are clean to the PoC") added cache maintenance to ensure that global variables set by the kaslr init routine are not wiped clean due to cache invalidation occurring during the second round of page table creation. However, if kaslr_early_init() exits early with no randomization being applied (either due to the lack of a seed, or because the user has disabled kaslr explicitly), no cache maintenance is performed, leading to the same issue we attempted to fix earlier, as far as the module_alloc_base variable is concerned. Note that module_alloc_base cannot be initialized statically, because that would cause it to be subject to a R_AARCH64_RELATIVE relocation, causing it to be overwritten by the second round of KASLR relocation processing. Fixes: f80fb3a3d508 ("arm64: add support for kernel ASLR") Cc: <stable@vger.kernel.org> # v4.6+ Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Will Deacon <will.deacon@arm.com> (cherry picked from commit 8ea235932314311f15ea6cf65c1393ed7e31af70) Signed-off-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: Ie6d23f34117b4877c1b6f3ee03bed1b97999105f Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions