]> git.baikalelectronics.ru Git - 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)
committerMike Marshall <hubcap@omnibond.com>
Wed, 26 Apr 2017 18:33:00 +0000 (14:33 -0400)
commit967e31b54904792e58fa4aecb6afe881d60cf359
treee84d0cc308f94b5e6d3b338004d22e5b960443cd
parentf9f8ff365fa09e1cec5f985bdc89722fd0581d3b
orangefs: clean up oversize xattr validation

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>
Cc: stable@vger.kernel.org
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/xattr.c