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.2.54~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc5285f4c67a48e5775d633267f8e284626a990a;p=pandora-kernel.git xfs: underflow bug in xfs_attrlist_by_handle() commit 31978b5cc66b8ba8a7e8eef60b12395d41b7b890 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 Reported-by: Fabian Yamaguchi Signed-off-by: Dan Carpenter Reviewed-by: Dave Chinner Signed-off-by: Ben Myers (cherry picked from commit 071c529eb672648ee8ca3f90944bcbcc730b4c06) Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed