summaryrefslogtreecommitdiff
path: root/Documentation/staging
diff options
context:
space:
mode:
authorLee Jones <lee@kernel.org>2022-07-19 14:52:51 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-29 18:19:07 +0300
commit2ee0cab11f6626071f8a64c7792406dabdd94c8d (patch)
tree7a7315d7a856a72f31fd783b2643c1f6c59bec1c /Documentation/staging
parentab5050fd7430dde3a9f073129036d3da3facc8ec (diff)
downloadlinux-2ee0cab11f6626071f8a64c7792406dabdd94c8d.tar.xz
io_uring: Use original task for req identity in io_identity_cow()
This issue is conceptually identical to the one fixed in 29f077d07051 ("io_uring: always use original task when preparing req identity"), so rather than reinvent the wheel, I'm shamelessly quoting the commit message from that patch - thanks Jens: "If the ring is setup with IORING_SETUP_IOPOLL and we have more than one task doing submissions on a ring, we can up in a situation where we assign the context from the current task rather than the request originator. Always use req->task rather than assume it's the same as current. No upstream patch exists for this issue, as only older kernels with the non-native workers have this problem." Cc: Jens Axboe <axboe@kernel.dk> Cc: Pavel Begunkov <asml.silence@gmail.com> Cc: Alexander Viro <viro@zeniv.linux.org.uk> Cc: io-uring@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org Fixes: 5c3462cfd123b ("io_uring: store io_identity in io_uring_task") Signed-off-by: Lee Jones <lee@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Documentation/staging')
0 files changed, 0 insertions, 0 deletions