]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
io_uring: async workers should inherit the user creds
authorJens Axboe <axboe@kernel.dk>
Mon, 25 Nov 2019 15:52:30 +0000 (08:52 -0700)
committerSeth Forshee <seth.forshee@canonical.com>
Thu, 5 Dec 2019 22:30:05 +0000 (16:30 -0600)
commitdd228f5f0d8e79e343d610029ffca7390d570c73
tree34fceb553eb2fe3122b1f38fac846afe800ef75d
parentdcd0e1f67963db3a1a8aa85dcc080a1d7552089d
io_uring: async workers should inherit the user creds

BugLink: https://bugs.launchpad.net/bugs/1855326
[ Upstream commit 181e448d8709e517c9c7b523fcd209f24eb38ca7 ]

If we don't inherit the original task creds, then we can confuse users
like fuse that pass creds in the request header. See link below on
identical aio issue.

Link: https://lore.kernel.org/linux-fsdevel/26f0d78e-99ca-2f1b-78b9-433088053a61@scylladb.com/T/#u
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/io_uring.c