commit | fe98d9e04ed34922214f57bacba3b9dc029e881c | [log] [tgz] |
---|---|---|
author | Jens Axboe <[email protected]> | Mon May 16 23:05:51 2022 +0200 |
committer | Robert Kolchmeyer <[email protected]> | Sat May 21 06:58:28 2022 +0000 |
tree | 723b45272419fe886ad527350ee763581fad6cc0 | |
parent | 6f7d16a83a39c8ba77549c481e6ee1cff339f3ea [diff] |
io_uring: always use original task when preparing req identity 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. Reported-by: Kyle Zeng <[email protected]> Signed-off-by: Jens Axboe <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> (cherry picked from commit 29f077d070519a88a793fbc70f1e6484dc6d9e35) Signed-off-by: Robert Kolchmeyer <[email protected]> BUG=b/233372480 TEST=presubmit RELEASE_NOTE=[TODO: see b/233372480 for details] cos-patch: bug Change-Id: I505a17a56d0e064025570fa6ea7802951690ea1b Reviewed-on: https://cos-review.googlesource.com/c/third_party/kernel/+/33062 Reviewed-by: Vaibhav Rustagi <[email protected]> Tested-by: Cusky Presubmit Bot <[email protected]>