]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
io_uring: add missing item types for various requests
authorJens Axboe <axboe@kernel.dk>
Wed, 22 Jun 2022 20:05:49 +0000 (14:05 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 25 Jun 2022 13:16:09 +0000 (15:16 +0200)
commitdf3f3bb5059d20ef094d6b2f0256c4bf4127a859
treec22ed8bab204f3ffce07561752689f1d3fdc6456
parent1a264b3a6940b2595dc6b51edf8b1d9a71963fc7
io_uring: add missing item types for various requests

Any read/write should grab current->nsproxy, denoted by IO_WQ_WORK_FILES
as it refers to current->files as well, and connect and recv/recvmsg,
send/sendmsg should grab current->fs which is denoted by IO_WQ_WORK_FS.

No upstream commit exists for this issue.

Reported-by: Bing-Jhong Billy Jheng <billy@starlabs.sg>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/io_uring.c