diff options
| author | Vito Caputo <vito.caputo@coreos.com> | 2015-10-24 07:19:46 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-25 12:01:24 -0800 |
| commit | fa932190a5f332e1936ab0223c7c5d79b5596a9c (patch) | |
| tree | ff4218d473333a673e4da6f7f89420e1c8c9b982 /lib/debugobjects.c | |
| 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>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
