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:
2
Makefile
2
Makefile
@@ -1,7 +1,7 @@
|
|||||||
# SPDX-License-Identifier: GPL-2.0
|
# SPDX-License-Identifier: GPL-2.0
|
||||||
VERSION = 5
|
VERSION = 5
|
||||||
PATCHLEVEL = 10
|
PATCHLEVEL = 10
|
||||||
SUBLEVEL = 171
|
SUBLEVEL = 172
|
||||||
EXTRAVERSION =
|
EXTRAVERSION =
|
||||||
NAME = Dare mighty things
|
NAME = Dare mighty things
|
||||||
|
|
||||||
|
@@ -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) {
|
if (io_op_defs[req->opcode].needs_file) {
|
||||||
req->file = io_file_get(ctx, req, READ_ONCE(sqe->fd),
|
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))
|
if (unlikely(!req->file))
|
||||||
ret = -EBADF;
|
ret = -EBADF;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user