Skip to content
Snippets Groups Projects
Forked from MediaTek / aiot / linux
Source project has a limited visibility.
user avatar
Jens Axboe authored
If we COW the identity, we assume that ->mm never changes. But this
isn't true of multiple processes end up sharing the ring. Hence treat
id->mm like like any other process compontent when it comes to the
identity mapping. This is pretty trivial, just moving the existing grab
into io_grab_identity(), and including a check for the match.

Cc: stable@vger.kernel.org # 5.10
Fixes: 1e6fa521 ("io_uring: COW io_identity on mismatch")
Reported-by: default avatarChristian Brauner <christian.brauner@ubuntu.com&gt;:>
Tested-by: default avatarChristian Brauner <christian.brauner@ubuntu.com&gt;:>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
77788775
History
Name Last commit Last update