lockd: fix access beyond unterminated strings in prints
authorAmir Goldstein <amir73il@gmail.com>
Fri, 28 Sep 2018 17:41:48 +0000 (20:41 +0300)
committerJ. Bruce Fields <bfields@redhat.com>
Mon, 29 Oct 2018 20:58:04 +0000 (16:58 -0400)
commit93f38b6fae0ea8987e22d9e6c38f8dfdccd867ee
treea422a5a6985dfe2fe3ec75cd132eece3fd93616f
parentbb6ad5572c0022e17e846b382d7413cdcf8055be
lockd: fix access beyond unterminated strings in prints

printk format used %*s instead of %.*s, so hostname_len does not limit
the number of bytes accessed from hostname.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Cc: stable@vger.kernel.org
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/host.c