Re: [syzbot] [fs?] [mm?] WARNING in page_copy_sane
From: Matthew Wilcox
Date: Mon Sep 18 2023 - 14:18:40 EST
On Mon, Sep 18, 2023 at 01:10:21PM -0500, Sidhartha Kumar wrote:
> @@ -382,8 +382,8 @@ static ssize_t hugetlbfs_read_iter(struct kiocb *iocb, struct iov_iter *to)
> /*
> * We have the page, copy it to user space buffer.
> */
> - copied = copy_page_to_iter(page, offset, want, to);
> - put_page(page);
> + copied = copy_page_to_iter(&folio->page, offset, want, to);
copy_folio_to_iter() please. Yes, I know it's just a wrapper today.
> + folio_put(folio);
> }
> offset += copied;
> retval += copied;
> --
> 2.41.0
>