Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
xfs: underflow bug in xfs_attrlist_by_handle()
commit 31978b5 upstream. If we allocate less than sizeof(struct attrlist) then we end up corrupting memory or doing a ZERO_PTR_SIZE dereference. This can only be triggered with CAP_SYS_ADMIN. Reported-by: Nico Golde <nico@ngolde.de> Reported-by: Fabian Yamaguchi <fabs@goesec.de> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Dave Chinner <dchinner@redhat.com> Signed-off-by: Ben Myers <bpm@sgi.com> (cherry picked from commit 071c529) Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
- Loading branch information