diff --git a/fs/io_uring.c b/fs/io_uring.c index c42a2f3b725965cbb93c4517783c17f76280c531..b93fa32172af9c5ecf6cb637e0464126e3da1b9c 100644 --- a/fs/io_uring.c +++ b/fs/io_uring.c @@ -8306,6 +8306,8 @@ static int io_sqe_buffer_register(struct io_ring_ctx *ctx, struct iovec *iov, for (i = 0; i < nr_pages; i++) { struct vm_area_struct *vma = vmas[i]; + if (vma_is_shmem(vma)) + continue; if (vma->vm_file && !is_file_hugepages(vma->vm_file)) { ret = -EOPNOTSUPP;