kallsyms: avoid hardcoding buffer size
authorBoqun Feng <boqun.feng@gmail.com>
Wed, 27 Jul 2022 18:54:19 +0000 (20:54 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Wed, 28 Sep 2022 06:54:39 +0000 (08:54 +0200)
commitb471927ebf9bb54ba6e99f20848d70193e645eed
treef003b07f779a9b0cee0a465ee8002cc7eaf9dbd5
parentb66c874fdb6653aefb3019aeaa9b9f8c1aadd6a0
kallsyms: avoid hardcoding buffer size

This introduces `KSYM_NAME_LEN_BUFFER` in place of the previously
hardcoded size of the input buffer.

It will also make it easier to update the size in a single place
in a later patch.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Boqun Feng <boqun.feng@gmail.com>
Co-developed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
scripts/kallsyms.c