aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorSam Edwards <cfsworks@gmail.com>2025-09-03 17:52:07 -0700
committerWill Deacon <will@kernel.org>2025-09-16 20:39:49 +0100
commit030b3ffbdac75005ef73af752a42cd48c7bba155 (patch)
tree18ac643433355ea6705117fe8a827dc2b2050a49 /lib/test_fortify/write_overflow-strncpy-src.c
parentLinux 6.17-rc1 (diff)
downloadlinux-030b3ffbdac75005ef73af752a42cd48c7bba155.tar.gz
linux-030b3ffbdac75005ef73af752a42cd48c7bba155.zip
arm64: mm: Cast start/end markers to char *, not u64
There are a few memset() calls in map_kernel.c that cast marker-symbol addresses to u64 in order to perform pointer subtraction (range size computation). Cast them with (char *) instead, aligning with idiomatic C pointer arithmetic. This patch provably has no effect at runtime: I have verified that .text of vmlinux is identical after this change. Signed-off-by: Sam Edwards <CFSworks@gmail.com> Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions