| commit | 99d930f3ece461da976ffeb3c44dfdfbd7a910ec | [log] [tgz] | 
|---|---|---|
| author | Aaron Plattner <aplattner@nvidia.com> | Wed Oct 04 17:08:19 2023 -0700 | 
| committer | Kevin Berry <kpberry@google.com> | Fri Jan 31 13:19:02 2025 -0800 | 
| tree | 7741601d77cebc104e34731b5856cafd903b141f | |
| parent | 577f2de7ed452629f8726122e531b3c0b23ddfbc [diff] | 
objtool: Remove max symbol name length limitation [ Upstream commit f404a58dcf0c862b05602f641ce5fdd8b98fbc3a ] If one of the symbols processed by read_symbols() happens to have a .cold variant with a name longer than objtool's MAX_NAME_LEN limit, the build fails. Avoid this problem by just using strndup() to copy the parent function's name, rather than strncpy()ing it onto the stack. BUG=b/392934334 TEST=presubmit RELEASE_NOTE=None Signed-off-by: Aaron Plattner <aplattner@nvidia.com> Link: https://lore.kernel.org/r/41e94cfea1d9131b758dd637fecdeacd459d4584.1696355111.git.aplattner@nvidia.com Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org> Change-Id: I944b2a13f76dd0785fb2867e7f0d3366172b6eb4 Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/91728 Reviewed-by: Kevin Berry <kpberry@google.com> Tested-by: Cusky Presubmit Bot <presubmit@cos-infra-prod.iam.gserviceaccount.com> Reviewed-by: Arnav Kansal <rnv@google.com>