+6
fs/io_uring.c
+6
fs/io_uring.c
···
5159
5159
} else if (to_submit) {
5160
5160
struct mm_struct *cur_mm;
5161
5161
5162
+
if (current->mm != ctx->sqo_mm ||
5163
+
current_cred() != ctx->creds) {
5164
+
ret = -EPERM;
5165
+
goto out;
5166
+
}
5167
+
5162
5168
to_submit = min(to_submit, ctx->sq_entries);
5163
5169
mutex_lock(&ctx->uring_lock);
5164
5170
/* already have mm, so io_submit_sqes() won't try to grab it */