]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
fuse: listxattr: verify xattr list
authorMiklos Szeredi <mszeredi@redhat.com>
Sat, 1 Oct 2016 05:32:32 +0000 (07:32 +0200)
committerLuis Henriques <luis.henriques@canonical.com>
Tue, 8 Nov 2016 16:44:42 +0000 (16:44 +0000)
commite61331db90a13039a424020365d16e2f38d3c077
tree38887f74371bc6618fb12d1e7589671bcbbd2e82
parent55d8f03a0df571439e79226c525ac13630d79bd3
fuse: listxattr: verify xattr list

BugLink: http://bugs.launchpad.net/bugs/1637501
commit cb3ae6d25a5471be62bfe6ac1fccc0e91edeaba0 upstream.

Make sure userspace filesystem is returning a well formed list of xattr
names (zero or more nonzero length, null terminated strings).

[Michael Theall: only verify in the nonzero size case]

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
fs/fuse/dir.c