Skip to content

Commit 5cf9ad0

Browse files
committed
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"
2 parents 9dbca16 + ebe1002 commit 5cf9ad0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

fs/io_uring.c

-10
Original file line numberDiff line numberDiff line change
@@ -5044,10 +5044,6 @@ static int io_uring_flush(struct file *file, void *data)
50445044
struct io_ring_ctx *ctx = file->private_data;
50455045

50465046
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-
}
50515047
return 0;
50525048
}
50535049

@@ -5161,12 +5157,6 @@ SYSCALL_DEFINE6(io_uring_enter, unsigned int, fd, u32, to_submit,
51615157
} else if (to_submit) {
51625158
struct mm_struct *cur_mm;
51635159

5164-
if (current->mm != ctx->sqo_mm ||
5165-
current_cred() != ctx->creds) {
5166-
ret = -EPERM;
5167-
goto out;
5168-
}
5169-
51705160
to_submit = min(to_submit, ctx->sq_entries);
51715161
mutex_lock(&ctx->uring_lock);
51725162
/* already have mm, so io_submit_sqes() won't try to grab it */

0 commit comments

Comments
 (0)