diff options
| author | Pavel Begunkov <[email protected]> | 2021-05-29 11:01:02 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2021-05-30 01:27:21 +0000 |
| commit | 216e5835966a709bb87a4d94a7343dd90ab0bd64 (patch) | |
| tree | c154aa986cc6fe04647f515b703be9ae5217d04f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | io_uring: fix data race to avoid potential NULL-deref (diff) | |
| download | kernel-216e5835966a709bb87a4d94a7343dd90ab0bd64.tar.gz kernel-216e5835966a709bb87a4d94a7343dd90ab0bd64.zip | |
io_uring: fix misaccounting fix buf pinned pages
As Andres reports "... io_sqe_buffer_register() doesn't initialize imu.
io_buffer_account_pin() does imu->acct_pages++, before calling
io_account_mem(ctx, imu->acct_pages).", leading to evevntual -ENOMEM.
Initialise the field.
Reported-by: Andres Freund <[email protected]>
Fixes: 41edf1a5ec967 ("io_uring: keep table of pointers to ubufs")
Signed-off-by: Pavel Begunkov <[email protected]>
Link: https://lore.kernel.org/r/438a6f46739ae5e05d9c75a0c8fa235320ff367c.1622285901.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
