diff options
| author | 2026-03-10 16:37:41 -0400 | |
|---|---|---|
| committer | 2026-03-16 12:40:31 -0700 | |
| commit | 28e367a969b0c54c87ca655ec180715fe469fd14 (patch) | |
| tree | 78b457bb7e860b49a15dcb9d60a3e6207aa65a9f /tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com | |
| parent | objtool/klp: fix data alignment in __clone_symbol() (diff) | |
objtool/klp: fix mkstemp() failure with long paths
The elf_create_file() function fails with EINVAL when the build directory
path is long enough to truncate the "XXXXXX" suffix in the 256-byte
tmp_name buffer.
Simplify the code to remove the unnecessary dirname()/basename() split
and concatenation. Instead, allocate the exact number of bytes needed for
the path.
Acked-by: Song Liu <song@kernel.org>
Signed-off-by: Joe Lawrence <joe.lawrence@redhat.com>
Link: https://patch.msgid.link/20260310203751.1479229-3-joe.lawrence@redhat.com
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
Diffstat (limited to 'tools/testing/selftests/dm-verity/git:/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions
