aboutsummaryrefslogtreecommitdiffstats
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorManinder Singh <[email protected]>2023-05-29 11:13:37 +0000
committerMichael Ellerman <[email protected]>2023-05-30 06:46:56 +0000
commit719dfd5925e186e09a2a6f23016936ac436f3d78 (patch)
treeefcf30459349f9544fc5a6a55f987cd2845c512f /lib/string_helpers.c
parentpowerpc/iommu: Limit number of TCEs to 512 for H_STUFF_TCE hcall (diff)
downloadkernel-719dfd5925e186e09a2a6f23016936ac436f3d78.tar.gz
kernel-719dfd5925e186e09a2a6f23016936ac436f3d78.zip
powerpc/xmon: Use KSYM_NAME_LEN in array size
kallsyms_lookup() which in turn calls kallsyms_lookup_buildid() writes to index "KSYM_NAME_LEN - 1". Thus the array passed as namebuf to kallsyms_lookup() should be KSYM_NAME_LEN in size. In xmon.c the array was defined to be "128" bytes directly, without using KSYM_NAME_LEN. Commit b8a94bfb3395 ("kallsyms: increase maximum kernel symbol length to 512") changed the value to 512, but missed updating the xmon code. Fixes: b8a94bfb3395 ("kallsyms: increase maximum kernel symbol length to 512") Cc: [email protected] # v6.1+ Co-developed-by: Onkarnath <[email protected]> Signed-off-by: Onkarnath <[email protected]> Signed-off-by: Maninder Singh <[email protected]> [mpe: Tweak change log wording and fix commit reference] Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions