Skip to content

Commit

Permalink
ovl: use a minimal buffer in ovl_copy_xattr
Browse files Browse the repository at this point in the history
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 coreos/bugs#489

Signed-off-by: Miklos Szeredi <miklos@szeredi.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Vito Caputo authored and Huawei-Dev committed Sep 6, 2020
1 parent 7084c4d commit 759b81f
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 759b81f

Please sign in to comment.