xfs: validate acl count
commita980e5dccb3ff8cb8f77ff27264b13837958119d
authorChristoph Hellwig <hch@infradead.org>
Tue, 6 Dec 2011 21:21:05 +0000 (6 16:21 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 9 Dec 2011 16:52:46 +0000 (9 08:52 -0800)
tree2facb9fe2c6fb8f05031f50aa2abea10aeab61bd
parentee6dfa64be0c1e8976f20246278121bc9fcf1a24
xfs: validate acl count

commit fa8b18edd752a8b4e9d1ee2cd615b82c93cf8bba upstream.

This prevents in-memory corruption and possible panics if the on-disk
ACL is badly corrupted.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Acked-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/linux-2.6/xfs_acl.c