diff options
author | Miklos Szeredi <mszeredi@redhat.com> | 2016-09-16 14:12:11 +0200 |
---|---|---|
committer | Miklos Szeredi <mszeredi@redhat.com> | 2016-09-16 14:12:11 +0200 |
commit | 8b326c61de08f5ca4bc454a168f19e7e43c4cc2a (patch) | |
tree | eb3d11705f81fa3627796dca0fdee18296790704 /fs/overlayfs/super.c | |
parent | 9395452b4aab7bc2475ef8935b4a4fb99d778d70 (diff) | |
download | linux-8b326c61de08f5ca4bc454a168f19e7e43c4cc2a.tar.gz linux-8b326c61de08f5ca4bc454a168f19e7e43c4cc2a.tar.bz2 linux-8b326c61de08f5ca4bc454a168f19e7e43c4cc2a.zip |
ovl: copy_up_xattr(): use strnlen
Be defensive about what underlying fs provides us in the returned xattr
list buffer. strlen() may overrun the buffer, so use strnlen() and WARN if
the contents are not properly null terminated.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Cc: <stable@vger.kernel.org>
Diffstat (limited to 'fs/overlayfs/super.c')
0 files changed, 0 insertions, 0 deletions