Thread (12 messages) flat view 12 messages, 7 authors, 2023-08-03

Re: [PATCH 1/2] hexagon/traps.c: use KSYM_NAME_LEN in array size

From: Miguel Ojeda <hidden>
Date: 2023-05-30 13:00:09
Also in: lkml

On Mon, May 29, 2023 at 1:14 PM Maninder Singh [off-list ref] wrote:
kallsyms_lookup which in turn calls for kallsyms_lookup_buildid()
writes on index "KSYM_NAME_LEN - 1".

Thus array size should be KSYM_NAME_LEN.

for hexagon it was defined as "128" directly.
and commit '61968dbc2d5d' changed define value to 512,
So both were missed to update with new size.

Fixes: 61968dbc2d5d ("kallsyms: increase maximum kernel symbol length to 512")

Co-developed-by: Onkarnath <redacted>
Signed-off-by: Onkarnath <redacted>
Signed-off-by: Maninder Singh <redacted>
With the updated commit hash:

Reviewed-by: Miguel Ojeda <ojeda@kernel.org>

Cheers,
Miguel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help