]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: listxattr: use strnlen()
authorMiklos Szeredi <mszeredi@redhat.com>
Thu, 1 Sep 2016 09:12:00 +0000 (11:12 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 1 Sep 2016 09:12:00 +0000 (11:12 +0200)
commite7ff82d1b6232a2d3201a429807eb53104e5a215
tree15168c61d1f884399b4acdb81eb19092e43b453b
parent21e9cd15d9e5124b522ea6c63487972c7dc7c0b5
ovl: listxattr: use strnlen()

Be defensive about what underlying fs provides us in the returned xattr
list buffer.  If it's not properly null terminated, bail out with a warning
insead of BUG.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: <stable@vger.kernel.org>
fs/overlayfs/inode.c