Merge 5.10.172 into android12-5.10-lts

Changes in 5.10.172
	io_uring: ensure that io_init_req() passes in the right issue_flags
	Linux 5.10.172

Change-Id: Ic1bffa21a9ded5c77a905567594e985bcb52bc96
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
Greg Kroah-Hartman
2023-03-22 11:02:39 +00:00
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0
VERSION = 5
PATCHLEVEL = 10
SUBLEVEL = 171
SUBLEVEL = 172
EXTRAVERSION =
NAME = Dare mighty things

View File

@@ -7149,7 +7149,8 @@ static int io_init_req(struct io_ring_ctx *ctx, struct io_kiocb *req,
if (io_op_defs[req->opcode].needs_file) {
req->file = io_file_get(ctx, req, READ_ONCE(sqe->fd),
(sqe_flags & IOSQE_FIXED_FILE), 0);
(sqe_flags & IOSQE_FIXED_FILE),
IO_URING_F_NONBLOCK);
if (unlikely(!req->file))
ret = -EBADF;
}