]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
orangefs: clean up oversize xattr validation
authorMartin Brandenburg <martin@omnibond.com>
Tue, 25 Apr 2017 19:37:57 +0000 (15:37 -0400)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 20 Jun 2017 08:50:36 +0000 (10:50 +0200)
commit7e4c10aca428f163f50f2280f88b24c503613513
tree3e4f1eeaf0219a32e92fe3b1d37911de6f355512
parentc23ea1658639056b824bf87902ae3b6d70932dbf
orangefs: clean up oversize xattr validation

BugLink: http://bugs.launchpad.net/bugs/1692898
commit e675c5ec51fe2554719a7b6bcdbef0a770f2c19b upstream.

Also don't check flags as this has been validated by the VFS already.

Fix an off-by-one error in the max size checking.

Stop logging just because userspace wants to write attributes which do
not fit.

This and the previous commit fix xfstests generic/020.

Signed-off-by: Martin Brandenburg <martin@omnibond.com>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
fs/orangefs/xattr.c