summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorYufeng Wang <wangyufeng@kylinos.cn>2026-06-26 15:04:38 +0800
committerMichael S. Tsirkin <mst@redhat.com>2026-08-19 06:38:45 -0400
commit92a7b138f2453bf067628de0c5ec563cc8ad16d5 (patch)
treecce2dcd704616730b0c63d003174f11f8de7e645 /tools/perf/scripts/python/stackcollapse.py
parentd62fb5cc8a432b0b89de8940d2121cc93ffd2f8d (diff)
vhost/net: fix clear_user start address in VHOST_GET_FEATURES_ARRAY
The clear_user() call in VHOST_GET_FEATURES_ARRAY incorrectly starts at argp, which is the beginning of the features array, overwriting the data just written by copy_to_user(). It should start after the copied elements at argp + copied * sizeof(u64) to only zero the trailing unused space. Use size_mul() for both the offset and length calculations so the arithmetic stays consistent with the surrounding code and remains overflow-safe. Fixes: 333c515d1896 ("vhost-net: allow configuring extended features") Signed-off-by: Yufeng Wang <wangyufeng@kylinos.cn> Acked-by: Eugenio Pérez <eperezma@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260626070438.59149-1-r4o5m6e8o@163.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions