diff options
| author | Ben Hutchings <[email protected]> | 2025-07-23 10:49:25 +0000 |
|---|---|---|
| committer | Masami Hiramatsu (Google) <[email protected]> | 2025-07-24 13:16:48 +0000 |
| commit | 6ed5e20466c79e3b3350bae39f678f73cf564b4e (patch) | |
| tree | 6f4f5a1359a8dd8699cb5eacc86f50fbb1046992 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | tools/bootconfig: scripts/ftrace.sh was missing the shebang line, so added it (diff) | |
| download | kernel-6ed5e20466c79e3b3350bae39f678f73cf564b4e.tar.gz kernel-6ed5e20466c79e3b3350bae39f678f73cf564b4e.zip | |
bootconfig: Fix unaligned access when building footer
Currently we add padding between the bootconfig text and footer to
ensure that the footer is aligned within the initramfs image.
However, because only the bootconfig data is held in memory, not the
full initramfs image, the footer may not be naturally aligned in
memory.
This can result in an alignment fault (SIGBUS) when writing the footer
on some architectures, such as sparc.
Build the footer in a struct on the stack before adding it to the
buffer.
References: https://buildd.debian.org/status/fetch.php?pkg=linux&arch=sparc64&ver=6.16%7Erc7-1%7Eexp1&stamp=1753209801&raw=0
Link: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Ben Hutchings <[email protected]>
Signed-off-by: Masami Hiramatsu (Google) <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
