diff options
author | Nathan Chancellor <[email protected]> | 2022-11-08 10:49:34 -0700 |
---|---|---|
committer | Kees Cook <[email protected]> | 2022-11-08 09:59:19 -0800 |
commit | 000f8870a47bdc36730357883b6aef42bced91ee (patch) | |
tree | fa6650627f716e6024b08c2f285ee0057d108b33 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 6f7630b1b5bc672b54c1285ee6aba752b446672c (diff) |
vmlinux.lds.h: Fix placement of '.data..decrypted' section
Commit d4c639990036 ("vmlinux.lds.h: Avoid orphan section with !SMP")
fixed an orphan section warning by adding the '.data..decrypted' section
to the linker script under the PERCPU_DECRYPTED_SECTION define but that
placement introduced a panic with !SMP, as the percpu sections are not
instantiated with that configuration so attempting to access variables
defined with DEFINE_PER_CPU_DECRYPTED() will result in a page fault.
Move the '.data..decrypted' section to the DATA_MAIN define so that the
variables in it are properly instantiated at boot time with
CONFIG_SMP=n.
Cc: [email protected]
Fixes: d4c639990036 ("vmlinux.lds.h: Avoid orphan section with !SMP")
Link: https://lore.kernel.org/[email protected]/
Debugged-by: Ard Biesheuvel <[email protected]>
Reported-by: Zhao Wenhui <[email protected]>
Tested-by: xiafukun <[email protected]>
Signed-off-by: Nathan Chancellor <[email protected]>
Signed-off-by: Kees Cook <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions