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
History
File Mode Size
6fire
bcd2000
caiaq
hiface
line6
misc
usx2y
Kconfig -rw-r--r-- 4.7 KB
Makefile -rw-r--r-- 817 bytes
card.c -rw-r--r-- 30.0 KB
card.h -rw-r--r-- 7.6 KB
clock.c -rw-r--r-- 18.2 KB
clock.h -rw-r--r-- 474 bytes
endpoint.c -rw-r--r-- 41.0 KB
endpoint.h -rw-r--r-- 2.0 KB
format.c -rw-r--r-- 21.0 KB
format.h -rw-r--r-- 489 bytes
helper.c -rw-r--r-- 2.8 KB
helper.h -rw-r--r-- 1.3 KB
implicit.c -rw-r--r-- 12.3 KB
implicit.h -rw-r--r-- 478 bytes
media.c -rw-r--r-- 8.1 KB
media.h -rw-r--r-- 2.4 KB
midi.c -rw-r--r-- 69.5 KB
midi.h -rw-r--r-- 1.9 KB
mixer.c -rw-r--r-- 95.8 KB
mixer.h -rw-r--r-- 3.8 KB
mixer_maps.c -rw-r--r-- 18.7 KB
mixer_quirks.c -rw-r--r-- 81.1 KB
mixer_quirks.h -rw-r--r-- 655 bytes
mixer_s1810c.c -rw-r--r-- 15.3 KB
mixer_s1810c.h -rw-r--r-- 210 bytes
mixer_scarlett.c -rw-r--r-- 28.1 KB
mixer_scarlett.h -rw-r--r-- 208 bytes
mixer_scarlett_gen2.c -rw-r--r-- 54.9 KB
mixer_scarlett_gen2.h -rw-r--r-- 228 bytes
mixer_us16x08.c -rw-r--r-- 37.3 KB
mixer_us16x08.h -rw-r--r-- 4.0 KB
pcm.c -rw-r--r-- 41.7 KB
pcm.h -rw-r--r-- 637 bytes
power.c -rw-r--r-- 2.5 KB
power.h -rw-r--r-- 924 bytes
proc.c -rw-r--r-- 7.3 KB
proc.h -rw-r--r-- 250 bytes
quirks-table.h -rw-r--r-- 88.1 KB
quirks.c -rw-r--r-- 54.7 KB
quirks.h -rw-r--r-- 1.7 KB
stream.c -rw-r--r-- 32.3 KB
stream.h -rw-r--r-- 325 bytes
usbaudio.h -rw-r--r-- 3.3 KB
validate.c -rw-r--r-- 10.0 KB

back to top