diff --git a/fs/io_uring.c b/fs/io_uring.c
index 70f0f2f940fbd5248abafe70c4056184cb449375..5431b182b6b005ad0f70a97c3685717650a6a781 100644
--- a/fs/io_uring.c
+++ b/fs/io_uring.c
@@ -3183,7 +3183,7 @@ static int io_provide_buffers_prep(struct io_kiocb *req,
 	p->addr = READ_ONCE(sqe->addr);
 	p->len = READ_ONCE(sqe->len);
 
-	if (!access_ok(u64_to_user_ptr(p->addr), p->len))
+	if (!access_ok(u64_to_user_ptr(p->addr), (p->len * p->nbufs)))
 		return -EFAULT;
 
 	p->bgid = READ_ONCE(sqe->buf_group);