OSDN Git Service

ovl: fix format of setxattr debug
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 4 Oct 2018 12:49:10 +0000 (14:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Oct 2018 06:56:05 +0000 (08:56 +0200)
commit51da3fc5cbceab59a4b78f21f8ee799b30739b80
treef2fab9dbe9aacd9d90452863346629c5bed12c5f
parent1c7949a5f63769c6d3a3b41326b7b0a2a43777af
ovl: fix format of setxattr debug

commit 1a8f8d2a443ef9ad9a3065ba8c8119df714240fa upstream.

Format has a typo: it was meant to be "%.*s", not "%*s".  But at some point
callers grew nonprintable values as well, so use "%*pE" instead with a
maximized length.

Reported-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 3a1e819b4e80 ("ovl: store file handle of lower inode on copy up")
Cc: <stable@vger.kernel.org> # v4.12
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/overlayfs/overlayfs.h