diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-19 19:24:11 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-20 08:07:27 -1000 |
| commit | 738989053b0a5671fcd33ead27d689e973fb89f4 (patch) | |
| tree | 714027a2f268a21c207a0c99290db78d0fa3d66b /tools/perf/scripts/python | |
| parent | 95a214f31a3b1ef40034f1e1cb3b9d758a374f01 (diff) | |
xen: use get_user()/put_user() in gntdev and privcmd
gntdev_copy() updates per-segment status words with __get_user() and
__put_user(). privcmd writes back mmap batch errors and the resource
frame count with __put_user(). The pointers were validated earlier,
away from the accesses: by a copy_from_user() of the enclosing
structure, or by an access_ok() on the whole array before a callback
walks it. Each access enables and disables user access on its own
anyway, so the separation saves nothing.
Use get_user() and put_user().
This is part of getting rid of __get_user() and __put_user() entirely.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
