Revision 77788775c7132a8d93c6930ab1bd84fc743c7cb7 authored by Jens Axboe on 29 December 2020, 17:50:46 UTC, committed by Jens Axboe on 29 December 2020, 18:00:36 UTC
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: 1e6fa5216a0e ("io_uring: COW io_identity on mismatch") Reported-by: Christian Brauner <christian.brauner@ubuntu.com>: Tested-by: Christian Brauner <christian.brauner@ubuntu.com>: Signed-off-by: Jens Axboe <axboe@kernel.dk>
1 parent 5c8fe58
File | Mode | Size |
---|---|---|
clocking.rst | -rw-r--r-- | 1.6 KB |
codec-to-codec.rst | -rw-r--r-- | 3.8 KB |
codec.rst | -rw-r--r-- | 5.2 KB |
dai.rst | -rw-r--r-- | 2.3 KB |
dapm.rst | -rw-r--r-- | 10.9 KB |
dpcm.rst | -rw-r--r-- | 13.3 KB |
index.rst | -rw-r--r-- | 254 bytes |
jack.rst | -rw-r--r-- | 3.1 KB |
machine.rst | -rw-r--r-- | 2.8 KB |
overview.rst | -rw-r--r-- | 3.1 KB |
platform.rst | -rw-r--r-- | 2.0 KB |
pops-clicks.rst | -rw-r--r-- | 2.2 KB |
Computing file changes ...