]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix mis-seting personality's creds
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 6 Dec 2020 22:22:46 +0000 (22:22 +0000)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 Dec 2020 15:43:44 +0000 (08:43 -0700)
commitac5f9063e7bb1d0c1cdaa71e3fa14ef31a04acbb
tree7d2aa221c44703939d97de9328729e3caeb7ae38
parent638694cb147d2188b411daeb251b797e225f2f9d
io_uring: fix mis-seting personality's creds

After io_identity_cow() copies an work.identity it wants to copy creds
to the new just allocated id, not the old one. Otherwise it's
akin to req->work.identity->creds = req->work.identity->creds.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c