aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/prog_array_init.c
diff options
context:
space:
mode:
authorAsahi Lina <[email protected]>2023-02-11 09:13:02 +0000
committerArnd Bergmann <[email protected]>2023-02-13 19:20:34 +0000
commit4ec98e6db9f24a9f4716685c62c9f6c348fec45b (patch)
treeaf475f23d7dea9a8c7082244d2bc8af36dc038a4 /tools/testing/selftests/bpf/prog_tests/prog_array_init.c
parentMerge tag 'qcom-drivers-for-6.3-2' of https://git.kernel.org/pub/scm/linux/ke... (diff)
downloadkernel-4ec98e6db9f24a9f4716685c62c9f6c348fec45b.tar.gz
kernel-4ec98e6db9f24a9f4716685c62c9f6c348fec45b.zip
soc: apple: rtkit: Do not copy the reg state structure to the stack
The register state struct is 848 bytes, which ends up bloating the apple_rtkit_crashlog_dump_regs stack frame beyond 1024 on some 32-bit platforms, triggering compile warnings. This doesn't matter for 64BIT/ARM64, but there's also no good reason to copy the structure to the stack in this case. We can use __packed to avoid alignment issues, there are no double-read hazards, and this is a fatal error path so performance does not matter. Fixes: 22991d8d5725 ("soc: apple: rtkit: Add register dump decoding to crashlog") Signed-off-by: Asahi Lina <[email protected]> Reviewed-by: Eric Curtin <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/prog_array_init.c')
0 files changed, 0 insertions, 0 deletions