commit | fa932190a5f332e1936ab0223c7c5d79b5596a9c | [log] [tgz] |
---|---|---|
author | Vito Caputo <vito.caputo@coreos.com> | Sat Oct 24 07:19:46 2015 -0500 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Feb 25 12:01:24 2016 -0800 |
tree | ff4218d473333a673e4da6f7f89420e1c8c9b982 | |
parent | 85a7ed329aca5efd0eb70789db145a1e989c7a53 [diff] |
ovl: use a minimal buffer in ovl_copy_xattr commit e4ad29fa0d224d05e08b2858e65f112fd8edd4fe upstream. 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 https://github.com/coreos/bugs/issues/489 Signed-off-by: Miklos Szeredi <miklos@szeredi.hu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>