From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 98D7E569B for ; Thu, 15 Dec 2022 18:11:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1CF4DC433D2; Thu, 15 Dec 2022 18:11:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1671127910; bh=feab34fh60OkZ5o0LqhME3It700OtN3FvjGK4gz1a+E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y3IN6eANEpHo/HTGMt6XInclGbJ4Tvjhem2ZlRuyx2scu9irAw53kUwymBeAJSU6v tay+xAQAZq2QumiHc1DJJm42ZvAD16lrGxrzJUjg+0ErCvtQz4D31fG+AWJShBAiTf fDljyaaYvMPjQU7wsM1CtagFr18T8Ydy5IdRsjJg= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Bing-Jhong Billy Jheng , Jens Axboe Subject: [PATCH 5.10 06/15] io_uring: add missing item types for splice request Date: Thu, 15 Dec 2022 19:10:33 +0100 Message-Id: <20221215172907.290429481@linuxfoundation.org> X-Mailer: git-send-email 2.39.0 In-Reply-To: <20221215172906.638553794@linuxfoundation.org> References: <20221215172906.638553794@linuxfoundation.org> User-Agent: quilt/0.67 Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Bing-Jhong Billy Jheng Splice is like read/write and should grab current->nsproxy, denoted by IO_WQ_WORK_FILES as it refers to current->files as well Signed-off-by: Bing-Jhong Billy Jheng Reviewed-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- fs/io_uring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -936,7 +936,7 @@ static const struct io_op_def io_op_defs .needs_file = 1, .hash_reg_file = 1, .unbound_nonreg_file = 1, - .work_flags = IO_WQ_WORK_BLKCG, + .work_flags = IO_WQ_WORK_BLKCG | IO_WQ_WORK_FILES, }, [IORING_OP_PROVIDE_BUFFERS] = {}, [IORING_OP_REMOVE_BUFFERS] = {},