summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2024-11-21 17:12:17 +0300
committerJens Axboe <axboe@kernel.dk>2024-11-21 17:15:30 +0300
commitee116574de8415b0673c466e6cd28ba5f70c41a2 (patch)
treeec30acea91f145e2eb9e5852a9b78117b1eccff2 /tools/perf/scripts/python/task-analyzer.py
parentf46b9cdb22f7a167c36b6bcddaef7e8aee2598fa (diff)
downloadlinux-ee116574de8415b0673c466e6cd28ba5f70c41a2.tar.xz
io_uring/nop: ensure nop->fd is always initialized
A previous commit added file support for nop, but it only initializes nop->fd if IORING_NOP_FIXED_FILE is set. That check should be IORING_NOP_FILE. Fix up the condition in nop preparation, and initialize it to a sane value even if we're not going to be directly using it. While in there, do the same thing for the nop->buffer field. Reported-by: syzbot+9a8500a45c2cabdf9577@syzkaller.appspotmail.com Fixes: a85f31052bce ("io_uring/nop: add support for testing registered files and buffers") Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions