xfs: validate acl count
authorChristoph Hellwig <hch@infradead.org>
Sun, 20 Nov 2011 15:35:32 +0000 (15:35 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jan 2012 19:33:46 +0000 (11:33 -0800)
commit1820b28c96690ab8bc8977089d8eb4a9e7128117
tree85ade20c62c632d547b626d0147896e6272d2055
parent53b63616b396f49775d4b2c4c3e6eab648a7833b
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/xfs/xfs_acl.c