aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/events/intel/Makefile
diff options
context:
space:
mode:
authorNathan Chancellor <nathan@kernel.org>2026-09-25 22:46:32 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2026-10-02 12:12:13 +0200
commiteb13a1ff271b0d180687eebb30611b0b276d5193 (patch)
tree03fd4fbd2665a1e8816353cf8e7f3bf7f5b6ce90 /arch/x86/events/intel/Makefile
parentrandom: fix vgetrandom_opaque_params kernel-doc (diff)
random: vDSO: avoid call to memset() when zeroing reserved parameterHEADrandom-7.3-rc6-for-linusmaster
After a recent change in LLVM [1], builds with the random vDSO implementation, such as PowerPC and RISC-V, fail when checking the vDSO: arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not supported arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported memset() is now generated when zeroing params->reserved for some builds because LLVM has an optimization (now run in more instances) that can recognize at compile time when it is assigning a static value to a contiguous area of memory and turn that into a call to memset(). Both clang and GCC assume memset() is always available [2]. Clang has an internal fiddly hook, -max-store-memset, which we can set to a high number, to disable generating out of line memset calls [3]. Similarly, GCC has -finline-stringops=memset to do the same [4], should this issue ever hit future version of GCC. While these options wouldn't make sense for normal kernel code, it is fine for the extremely limited and intentionally compact vDSO code. Link: https://github.com/llvm/llvm-project/commit/90cebef1411617fc3eedd359bdf00cb44b1c2439 [1] Link: https://gcc.gnu.org/onlinedocs/gcc-16.2.0/gcc/Standards.html#index-ffreestanding [2] Link: https://github.com/llvm/llvm-project/commit/b28eeb28bea39148738dc375e8a97072a1907e64 [3] Link: https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html#index-finline-stringops [4] Closes: https://github.com/ClangBuiltLinux/linux/issues/2183 Cc: stable@vger.kernel.org # v6.12+ Signed-off-by: Nathan Chancellor <nathan@kernel.org> Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'arch/x86/events/intel/Makefile')
0 files changed, 0 insertions, 0 deletions