aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2021-10-29 16:45:32 +0000
committerRussell King (Oracle) <[email protected]>2021-10-30 10:24:36 +0000
commitfa191b711c32ba107cf8d3474cd860407b7e997a (patch)
tree9c3e7f819f8f78e7acaf00cc34c77d147b754a76 /scripts/gcc-plugins/randomize_layout_plugin.c
parentMerge tag 'pr-arm32-ti-in-task' of git://git.kernel.org/pub/scm/linux/kernel/... (diff)
downloadkernel-fa191b711c32ba107cf8d3474cd860407b7e997a.tar.gz
kernel-fa191b711c32ba107cf8d3474cd860407b7e997a.zip
ARM: 9150/1: Fix PID_IN_CONTEXTIDR regression when THREAD_INFO_IN_TASK=y
The code that implements the rarely used PID_IN_CONTEXTIDR feature dereferences the 'task' field of struct thread_info directly, and this is no longer possible when THREAD_INFO_IN_TASK=y, as the 'task' field is omitted from the struct definition in that case. Instead, we should just cast the thread_info pointer to a task_struct pointer, given that the former is now the first member of the latter. So use a helper that abstracts this, and provide implementations for both cases. Reported by: Arnd Bergmann <[email protected]> Fixes: 18ed1c01a7dd ("ARM: smp: Enable THREAD_INFO_IN_TASK") Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Russell King (Oracle) <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions