From: Caleb Sander Mateos Date: Tue, 2 Sep 2025 21:51:07 +0000 (-0600) Subject: io_uring/register: drop redundant submitter_task check X-Git-Tag: v6.18-rc1~137^2~39 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b9c9a2e7da11e50a1109a1f38bca0aecf25b185;p=thirdparty%2Flinux.git io_uring/register: drop redundant submitter_task check For IORING_SETUP_SINGLE_ISSUER io_ring_ctx's, io_register_resize_rings() checks that the current task is the ctx's submitter_task. However, its caller __io_uring_register() already checks this. Drop the redundant check in io_register_resize_rings(). Signed-off-by: Caleb Sander Mateos Link: https://lore.kernel.org/r/20250902215108.1925105-1-csander@purestorage.com Signed-off-by: Jens Axboe --- diff --git a/io_uring/register.c b/io_uring/register.c index a1a9b2884eae5..aa5f56ad83584 100644 --- a/io_uring/register.c +++ b/io_uring/register.c @@ -408,10 +408,6 @@ static int io_register_resize_rings(struct io_ring_ctx *ctx, void __user *arg) struct io_uring_params p; int ret; - /* for single issuer, must be owner resizing */ - if (ctx->flags & IORING_SETUP_SINGLE_ISSUER && - current != ctx->submitter_task) - return -EEXIST; /* limited to DEFER_TASKRUN for now */ if (!(ctx->flags & IORING_SETUP_DEFER_TASKRUN)) return -EINVAL;