diff options
author | Chris Mason <clm@fb.com> | 2014-04-26 14:02:03 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-04-26 14:02:03 +0200 |
commit | cfd4a535b68faf651b238586011f5bae128391c4 (patch) | |
tree | 03380f86411c67a7ba84d3af697dcdfd01b9f66f /fs/fcntl.c | |
parent | Btrfs: correctly set profile flags on seqlock retry (diff) | |
download | linux-cfd4a535b68faf651b238586011f5bae128391c4.tar.xz linux-cfd4a535b68faf651b238586011f5bae128391c4.zip |
Btrfs: limit the path size in send to PATH_MAX
fs_path_ensure_buf is used to make sure our path buffers for
send are big enough for the path names as we construct them.
The buffer size is limited to 32K by the length field in
the struct.
But bugs in the path construction can end up trying to build
a huge buffer, and we'll do invalid memmmoves when the
buffer length field wraps.
This patch is step one, preventing the overflows.
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/fcntl.c')
0 files changed, 0 insertions, 0 deletions