]> git.baikalelectronics.ru Git - kernel.git/commit
xattr: Fail with -EINVAL for NULL attribute names
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 9 May 2016 11:28:49 +0000 (13:28 +0200)
committerAl Viro <viro@zeniv.linux.org.uk>
Wed, 25 May 2016 21:33:47 +0000 (17:33 -0400)
commitb98d0af986711942f6d0015fe2ac7de238f807a3
tree459a45a5dbd76d3698535f76e6be0f8981354070
parent1a23770f6e504357c91c8b9ff55e9c34793e690d
xattr: Fail with -EINVAL for NULL attribute names

Commit 45379f7f improved the xattr name checks in xattr_resolve_name but
didn't update the NULL attribute name check appropriately, so NULL
attribute names lead to NULL pointer dereferences.  Turn that into
-EINVAL results instead.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
  fs/xattr.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/xattr.c