commit | 72f7d24df467c93d3abc0c7c8b2ef6b38cb683d9 | [log] [tgz] |
---|---|---|
author | Lee Jones <[email protected]> | Tue Jul 19 12:52:51 2022 +0100 |
committer | Vaibhav Rustagi <[email protected]> | Wed Oct 05 05:09:14 2022 +0000 |
tree | ae0b24f150eebd9426b7d9fa5f10d402bee8c031 | |
parent | 64f3f5392bbe5ffd7184b20121dfd6d9befbea41 [diff] |
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." BUG=b/250926117 TEST=presubmit RELEASE_NOTE=None cos-patch: bug Cc: Jens Axboe <[email protected]> Cc: Pavel Begunkov <[email protected]> Cc: Alexander Viro <[email protected]> Cc: [email protected] Cc: [email protected] Fixes: 5c3462cfd123b ("io_uring: store io_identity in io_uring_task") Signed-off-by: Lee Jones <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> (cherry picked from commit 2ee0cab11f6626071f8a64c7792406dabdd94c8d) Signed-off-by: Vaibhav Rustagi <[email protected]> Change-Id: Idd81cec7b831f6de22291db84582ea714fc835af Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/37389 Tested-by: Cusky Presubmit Bot <[email protected]> Reviewed-by: Oleksandr Tymoshenko <[email protected]>