summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2024-05-24 01:54:12 +0300
committerTheodore Ts'o <tytso@mit.edu>2024-07-05 20:14:51 +0300
commitbe27cd64461c45a6088a91a04eba5cd44e1767ef (patch)
tree4176a9e7543490df24787d87297e2a90d2f6a9ac /tools/perf/scripts/python/export-to-sqlite.py
parent7c73ddb7589fb8ddb1136b6306dfb72089c81511 (diff)
downloadlinux-be27cd64461c45a6088a91a04eba5cd44e1767ef.tar.xz
ext4: use memtostr_pad() for s_volume_name
As with the other strings in struct ext4_super_block, s_volume_name is not NUL terminated. The other strings were marked in commit 072ebb3bffe6 ("ext4: add nonstring annotations to ext4.h"). Using strscpy() isn't the right replacement for strncpy(); it should use memtostr_pad() instead. Reported-by: syzbot+50835f73143cc2905b9e@syzkaller.appspotmail.com Closes: https://lore.kernel.org/all/00000000000019f4c00619192c05@google.com/ Fixes: 744a56389f73 ("ext4: replace deprecated strncpy with alternatives") Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://patch.msgid.link/20240523225408.work.904-kees@kernel.org Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions