summaryrefslogtreecommitdiff
path: root/tools/lib/traceevent/plugins/plugin_function.c
diff options
context:
space:
mode:
authorHungyu Lin <dennylin0707@gmail.com>2026-10-28 19:51:33 +0000
committerAmir Goldstein <amir73il@gmail.com>2026-10-29 13:40:07 +0100
commita65eb1808177a4381718abe563dddebf840598f9 (patch)
tree2488465a82d96bef6a07c1c42d27cb17d54e2bbd /tools/lib/traceevent/plugins/plugin_function.c
parent333ad304d4794d6384087ea7fc16e58ab642809b (diff)
downloadlinux-a65eb1808177a4381718abe563dddebf840598f9.tar.gz
linux-a65eb1808177a4381718abe563dddebf840598f9.zip
ovl: reserve space for the casefolded name terminator
ovl_casefold() allocates NAME_MAX bytes and passes that capacity to utf8_casefold(), which also needs room for a terminating NUL. A valid name whose folded form is exactly NAME_MAX bytes therefore fails to fold, and ovl_fill_merge() falls back to comparing the original bytes. For example, when two casefolded layers contain directories named with 255 uppercase and lowercase ASCII letters respectively, readdir lists both names even though lookup treats them as the same directory. The same names merge correctly at 254 bytes. Reserve one additional byte in both the allocation and the folding capacity so that NAME_MAX-byte folded names use the canonical merge key. Fixes: ee95c5fc86dd ("ovl: Create ovl_casefold() to support casefolded strncmp()") Cc: stable@vger.kernel.org Signed-off-by: Hungyu Lin <dennylin0707@gmail.com> Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Diffstat (limited to 'tools/lib/traceevent/plugins/plugin_function.c')
0 files changed, 0 insertions, 0 deletions