diff options
author | Pali Rohár <pali@kernel.org> | 2024-09-28 23:59:47 +0200 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2024-10-03 12:06:13 -0500 |
commit | 556ac52bb1e76cc28fd30aa117b42989965b3efd (patch) | |
tree | 6938e136aa7ea34a67e117e46388d5cb751535c4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e2a8910af01653c1c268984855629d71fb81f404 (diff) |
cifs: Validate content of NFS reparse point buffer
Symlink target location stored in DataBuffer is encoded in UTF-16. So check
that symlink DataBuffer length is non-zero and even number. And check that
DataBuffer does not contain UTF-16 null codepoint because Linux cannot
process symlink with null byte.
DataBuffer for char and block devices is 8 bytes long as it contains two
32-bit numbers (major and minor). Add check for this.
DataBuffer buffer for sockets and fifos zero-length. Add checks for this.
Signed-off-by: Pali Rohár <pali@kernel.org>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions