Re: [PATCH v9 1/9] iov_iter: add copy_struct_from_iter()

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
2021-04-01 17:47:05
Also in
linux-btrfs, linux-fsdevel
Reply to
Omar Sandoval, 2021-04-01
On Wed, Mar 31, 2021 at 11:51 PM Omar Sandoval [off-list ref] wrote:
quoted hunk ↗ jump to hunk

+ *
+ * The recommended usage is something like the following:
+ *
+ *     if (usize > PAGE_SIZE)
+ *       return -E2BIG;
Maybe this should be more than a recommendation, and just be inside
copy_struct_from_iter(), because otherwise the "check_zeroed_user()"
call might be quite the timesink for somebody who does something
stupid.

But otherwise this new version (still) looks fine to me.

            Linus
Thread (14 messages) 14 messages, 3 authors, last reply 2021-04-02
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help