diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2019-10-17 20:39:24 +0100 |
|---|---|---|
| committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-11-06 00:04:03 -0500 |
| commit | a64e5a868573d6fe3b76e8d17538b10499239631 (patch) | |
| tree | 8ba2815425201489eb73721fa405300449d82a64 /tools/perf/scripts/python | |
| parent | scsi: sg: sg_read(): get rid of access_ok()/__copy_..._user() (diff) | |
| download | linux-a64e5a868573d6fe3b76e8d17538b10499239631.tar.gz linux-a64e5a868573d6fe3b76e8d17538b10499239631.zip | |
scsi: sg: sg_write(): get rid of access_ok()/__copy_from_user()/__get_user()
Just use plain copy_from_user() and get_user(). Note that while a
buf-derived pointer gets stored into ->dxferp, all places that actually use
the resulting value feed it either to import_iovec() or to
import_single_range(), and both will do validation.
Link: https://lore.kernel.org/r/20191017193925.25539-7-viro@ZenIV.linux.org.uk
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Douglas Gilbert <dgilbert@interlog.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
