https://github.com/torvalds/linux
Revision 216e5835966a709bb87a4d94a7343dd90ab0bd64 authored by Pavel Begunkov on 29 May 2021, 11:01:02 UTC, committed by Jens Axboe on 30 May 2021, 01:27:21 UTC
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 <andres@anarazel.de>
Fixes: 41edf1a5ec967 ("io_uring: keep table of pointers to ubufs")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/438a6f46739ae5e05d9c75a0c8fa235320ff367c.1622285901.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent b16ef42
History
Tip revision: 216e5835966a709bb87a4d94a7343dd90ab0bd64 authored by Pavel Begunkov on 29 May 2021, 11:01:02 UTC
io_uring: fix misaccounting fix buf pinned pages
Tip revision: 216e583
File Mode Size
Documentation
LICENSES
arch
block
certs
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.clang-format -rw-r--r-- 16.4 KB
.cocciconfig -rw-r--r-- 59 bytes
.get_maintainer.ignore -rw-r--r-- 71 bytes
.gitattributes -rw-r--r-- 62 bytes
.gitignore -rw-r--r-- 1.9 KB
.mailmap -rw-r--r-- 19.3 KB
COPYING -rw-r--r-- 496 bytes
CREDITS -rw-r--r-- 98.5 KB
Kbuild -rw-r--r-- 1.3 KB
Kconfig -rw-r--r-- 555 bytes
MAINTAINERS -rw-r--r-- 585.2 KB
Makefile -rw-r--r-- 65.3 KB
README -rw-r--r-- 727 bytes

README

back to top