aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorBen Hutchings <benh@debian.org>2025-08-17 16:21:46 +0200
committerMasami Hiramatsu (Google) <mhiramat@kernel.org>2025-08-21 08:16:31 +0900
commit729dc340a4ed1267774fc8518284e976e2210bdc (patch)
treec49ed5434ea386fae1005ebc94724ebfc0537db0 /tools/perf/scripts/python
parentLinux 6.17-rc2 (diff)
downloadwireguard-linux-729dc340a4ed1267774fc8518284e976e2210bdc.tar.xz
wireguard-linux-729dc340a4ed1267774fc8518284e976e2210bdc.zip
bootconfig: Fix negative seeks on 32-bit with LFS enabled
Commit 26dda5769509 "tools/bootconfig: Cleanup bootconfig footer size calculations" replaced some expressions of type int with the BOOTCONFIG_FOOTER_SIZE macro, which expands to an expression of type size_t, which is unsigned. On 32-bit architectures with LFS enabled (i.e. off_t is 64-bit), the seek offset of -BOOTCONFIG_FOOTER_SIZE now turns into a positive value. Fix this by casting the size to off_t before negating it. Just in case someone changes BOOTCONFIG_MAGIC_LEN to have type size_t later, do the same thing to the seek offset of -BOOTCONFIG_MAGIC_LEN. Link: https://lore.kernel.org/all/aKHlevxeg6Y7UQrz@decadent.org.uk/ Fixes: 26dda5769509 ("tools/bootconfig: Cleanup bootconfig footer size calculations") Signed-off-by: Ben Hutchings <benh@debian.org> Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions