Re: [PATCH] added sanity check for xattr validation

2007-06-22 Thread Theodore Tso
On Thu, Jun 21, 2007 at 03:50:37PM -0500, Eric Sandeen wrote: Andreas Dilger wrote: Ted, the attached patch adds an extra validity test in check_ext_attr(). If an attribute's e_value_size is zero the current code does not allocate a region for it and as a result the e_value_offs value is

Re: [PATCH] added sanity check for xattr validation

2007-06-21 Thread Eric Sandeen
Andreas Dilger wrote: Ted, the attached patch adds an extra validity test in check_ext_attr(). If an attribute's e_value_size is zero the current code does not allocate a region for it and as a result the e_value_offs value is not verified. However, if e_value_offs is very large then the

[PATCH] added sanity check for xattr validation

2007-02-26 Thread Andreas Dilger
Ted, the attached patch adds an extra validity test in check_ext_attr(). If an attribute's e_value_size is zero the current code does not allocate a region for it and as a result the e_value_offs value is not verified. However, if e_value_offs is very large then the later call to