mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
io_uring: COW io_identity on mismatch
If the io_identity doesn't completely match the task, then create a copy of it and use that. The existing copy remains valid until the last user of it has gone away. This also changes the personality lookup to be indexed by io_identity, instead of creds directly. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
98447d65b4
commit
1e6fa5216a
2 changed files with 189 additions and 70 deletions
|
@ -15,6 +15,7 @@ struct io_identity {
|
|||
struct nsproxy *nsproxy;
|
||||
struct fs_struct *fs;
|
||||
unsigned long fsize;
|
||||
refcount_t count;
|
||||
};
|
||||
|
||||
struct io_uring_task {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue