xfs: Validate the length of on-disk ACLs
authorAndreas Gruenbacher <agruenba@redhat.com>
Tue, 3 Nov 2015 01:41:59 +0000 (12:41 +1100)
committerDave Chinner <david@fromorbit.com>
Tue, 3 Nov 2015 01:41:59 +0000 (12:41 +1100)
commit86a21c79745ca97676cbd47f8608839382cc0448
tree296934f7b383018e655f7e137fa9c5883d9f207b
parent67d8e04e345eafcb2940066f435815032eec467d
xfs: Validate the length of on-disk ACLs

In xfs_acl_from_disk, instead of trusting that xfs_acl.acl_cnt is correct,
make sure that the length of the attributes is correct as well.  Also, turn
the aclp parameter into a const pointer.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_format.h
fs/xfs/xfs_acl.c