ext4: don't assume that mmp_nodename/bdevname have NUL
authorAndreas Dilger <adilger@dilger.ca>
Sun, 26 Jan 2020 22:03:34 +0000 (15:03 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 13 Feb 2020 16:53:10 +0000 (11:53 -0500)
commit14c9ca0583eee8df285d68a0e6ec71053efd2228
tree3fd97bdc4c5029971ec8190e869157e2bd61ffdc
parente5da4c933c50d98d7990a7c1ca0bbf8946e80c4a
ext4: don't assume that mmp_nodename/bdevname have NUL

Don't assume that the mmp_nodename and mmp_bdevname strings are NUL
terminated, since they are filled in by snprintf(), which is not
guaranteed to do so.

Link: https://lore.kernel.org/r/1580076215-1048-1-git-send-email-adilger@dilger.ca
Signed-off-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
fs/ext4/mmp.c