aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2024-05-23 22:54:12 +0000
committerTheodore Ts'o <[email protected]>2024-07-05 17:14:51 +0000
commitbe27cd64461c45a6088a91a04eba5cd44e1767ef (patch)
tree4176a9e7543490df24787d87297e2a90d2f6a9ac /fs/jbd2/commit.c
parentjbd2: speed up jbd2_transaction_committed() (diff)
downloadkernel-be27cd64461c45a6088a91a04eba5cd44e1767ef.tar.gz
kernel-be27cd64461c45a6088a91a04eba5cd44e1767ef.zip
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: [email protected] Closes: https://lore.kernel.org/all/[email protected]/ Fixes: 744a56389f73 ("ext4: replace deprecated strncpy with alternatives") Signed-off-by: Kees Cook <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions