Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovl: use a minimal buffer in ovl_copy_xattr
[ Upstream commit e4ad29fa0d224d05e08b2858e65f112fd8edd4fe ] Rather than always allocating the high-order XATTR_SIZE_MAX buffer which is costly and prone to failure, only allocate what is needed and realloc if necessary. Fixes coreos/bugs#489 Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Cc: <stable@vger.kernel.org> Signed-off-by: Sasha Levin <sasha.levin@oracle.com> (cherry picked from commit 7babbe3844b400ccf9e95974bfc71b4ff0a89f77)
- Loading branch information