summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorYuto Ohnuki <ytohnuki@amazon.com>2026-02-16 07:31:58 +0000
committerMiklos Szeredi <mszeredi@redhat.com>2026-02-27 15:00:18 +0100
commit68b69fa0edb241a946cd4c850110990f30705164 (patch)
tree1742d9db3e4e656d1d9bd3b02ae34438c1127740 /tools/perf/scripts/python
parent42fbb31310b2c145308d3cdcb32d8f05998cfd6c (diff)
virtiofs: add FUSE protocol validation
Add virtio_fs_verify_response() to validate that the server properly follows the FUSE protocol by checking: - Response length is at least sizeof(struct fuse_out_header). - oh.len matches the actual response length. - oh.unique matches the request's unique identifier. On validation failure, set error to -EIO and normalize oh.len to prevent underflow in copy_args_from_argbuf(). Addresses the TODO comment in virtio_fs_request_complete(). Signed-off-by: Yuto Ohnuki <ytohnuki@amazon.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions