Merge tag 'io_uring-5.5-2020-01-26' of git://git.kernel.dk/linux-block

Pull io_uring fixes from Jens Axboe:
"Fix for two regressions in this cycle, both reported by the postgresql
use case.

One removes the added restriction on who can submit IO, making it
possible for rings shared across forks to do so. The other fixes an
issue for the same kind of use case, where one exiting process would
cancel all IO"

* tag 'io_uring-5.5-2020-01-26' of git://git.kernel.dk/linux-block:
io_uring: don't cancel all work on process exit
Revert "io_uring: only allow submit from owning task"

Changed files
-10
fs
-10
fs/io_uring.c
··· 5044 5044 struct io_ring_ctx *ctx = file->private_data; 5045 5045 5046 5046 io_uring_cancel_files(ctx, data); 5047 - if (fatal_signal_pending(current) || (current->flags & PF_EXITING)) { 5048 - io_cqring_overflow_flush(ctx, true); 5049 - io_wq_cancel_all(ctx->io_wq); 5050 - } 5051 5047 return 0; 5052 5048 } 5053 5049 ··· 5156 5160 submitted = to_submit; 5157 5161 } else if (to_submit) { 5158 5162 struct mm_struct *cur_mm; 5159 - 5160 - if (current->mm != ctx->sqo_mm || 5161 - current_cred() != ctx->creds) { 5162 - ret = -EPERM; 5163 - goto out; 5164 - } 5165 5163 5166 5164 to_submit = min(to_submit, ctx->sq_entries); 5167 5165 mutex_lock(&ctx->uring_lock);