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 |
---|---|---|
keystone | ||
nwfpe | ||
omap | ||
pxa | ||
sa1100 | ||
samsung | ||
samsung-s3c24xx | ||
spear | ||
sti | ||
stm32 | ||
sunxi | ||
vfp | ||
arm.rst | -rw-r--r-- | 7.7 KB |
booting.rst | -rw-r--r-- | 7.9 KB |
cluster-pm-race-avoidance.rst | -rw-r--r-- | 16.3 KB |
features.rst | -rw-r--r-- | 90 bytes |
firmware.rst | -rw-r--r-- | 2.3 KB |
index.rst | -rw-r--r-- | 1.0 KB |
interrupts.rst | -rw-r--r-- | 6.7 KB |
ixp4xx.rst | -rw-r--r-- | 6.3 KB |
kernel_mode_neon.rst | -rw-r--r-- | 5.6 KB |
kernel_user_helpers.rst | -rw-r--r-- | 6.7 KB |
marvel.rst | -rw-r--r-- | 17.6 KB |
mem_alignment.rst | -rw-r--r-- | 2.6 KB |
memory.rst | -rw-r--r-- | 3.7 KB |
microchip.rst | -rw-r--r-- | 6.0 KB |
netwinder.rst | -rw-r--r-- | 1.8 KB |
porting.rst | -rw-r--r-- | 4.4 KB |
setup.rst | -rw-r--r-- | 3.6 KB |
sunxi.rst | -rw-r--r-- | 4.2 KB |
swp_emulation.rst | -rw-r--r-- | 1.2 KB |
tcm.rst | -rw-r--r-- | 5.1 KB |
uefi.rst | -rw-r--r-- | 2.8 KB |
vlocks.rst | -rw-r--r-- | 6.7 KB |
Computing file changes ...