aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2025-05-14 14:17:43 +0000
committerHuacai Chen <[email protected]>2025-05-14 14:17:43 +0000
commit90436d234230e9a950ccd87831108b688b27a234 (patch)
tree2998090089cd414454dd801e34df8f8c668e5f25 /scripts/gcc-plugins/randomize_layout_plugin.c
parentLoongArch: Prevent cond_resched() occurring within kernel-fpu (diff)
downloadkernel-90436d234230e9a950ccd87831108b688b27a234.tar.gz
kernel-90436d234230e9a950ccd87831108b688b27a234.zip
LoongArch: Fix MAX_REG_OFFSET calculation
Fix MAX_REG_OFFSET calculation, make it point to the last register in 'struct pt_regs' and not to the marker itself, which could allow regs_get_register() to return an invalid offset. Cc: [email protected] Fixes: 803b0fc5c3f2baa6e5 ("LoongArch: Add process management") Signed-off-by: Huacai Chen <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions