--- a/fs/io_uring.c~fs-io_uring-set-foll_pin-via-pin_user_pages +++ a/fs/io_uring.c @@ -6126,7 +6126,7 @@ static int io_sqe_buffer_register(struct ret = 0; down_read(¤t->mm->mmap_sem); - pret = get_user_pages(ubuf, nr_pages, + pret = pin_user_pages(ubuf, nr_pages, FOLL_WRITE | FOLL_LONGTERM, pages, vmas); if (pret == nr_pages) {