diff options
| author | Yang Xiuwei <yangxiuwei@kylinos.cn> | 2026-07-20 14:03:05 +0800 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-07-28 14:07:33 -0700 |
| commit | b53d495c7f0db46b6748b5ade48371a10dd5d3bc (patch) | |
| tree | e435a3a3b0655ff52e6faf6cb2f18c137bec0d49 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 13330446caef56de008ecb9ad2a1545ce2fedd0a (diff) | |
nvme/ioctl: check SUBMIT_IO with nvme_cmd_allowed()
Unlike IO_CMD / IO64_CMD, NVME_IOCTL_SUBMIT_IO never calls
nvme_cmd_allowed(). Unprivileged callers can thus issue I/O on a
partition device or write through a read-only file descriptor.
Pass flags and open_for_write through and reject disallowed commands
with -EACCES.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
