diff options
| author | Jens Axboe <axboe@kernel.dk> | 2019-10-30 17:42:56 +0300 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2019-10-30 17:42:56 +0300 |
| commit | 975c99a570967dd48e917dd7853867fee3febabd (patch) | |
| tree | d7888993bf41b642fee2f10cca0f9bf962e7c07d /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 842f96124c5617b060cc0f071dcfb6ab24bdd042 (diff) | |
| download | linux-975c99a570967dd48e917dd7853867fee3febabd.tar.xz | |
io_uring: io_wq_create() returns an error pointer, not NULL
syzbot reported an issue where we crash at setup time if failslab is
used. The issue is that io_wq_create() returns an error pointer on
failure, not NULL. Hence io_uring thought the io-wq was setup just
fine, but in reality it's a garbage error pointer.
Use IS_ERR() instead of a NULL check, and assign ret appropriately.
Reported-by: syzbot+221cc24572a2fed23b6b@syzkaller.appspotmail.com
Fixes: 561fb04a6a22 ("io_uring: replace workqueue usage with io-wq")
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
