From: Dan Carpenter Date: Thu, 31 Oct 2013 18:00:10 +0000 (+0300) Subject: xfs: underflow bug in xfs_attrlist_by_handle() X-Git-Tag: v3.13-rc4~32^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31978b5cc66b8ba8a7e8eef60b12395d41b7b890;p=pandora-kernel.git xfs: underflow bug in xfs_attrlist_by_handle() 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 Reported-by: Fabian Yamaguchi Signed-off-by: Dan Carpenter Reviewed-by: Dave Chinner Signed-off-by: Ben Myers (cherry picked from commit 071c529eb672648ee8ca3f90944bcbcc730b4c06) --- Reading git-diff-tree failed