Re: [PATCH 3/9] fs: explicitly check for CHECK_IOVEC_ONLY in rw_copy_check_uvector

From
Matthew Wilcox <willy@infradead.org>
Date
2020-09-18 12:56:26
Also in
io-uring, keyrings, linux-arm-kernel, linux-block, linux-fsdevel, linux-mips, linux-mm, linux-s390, linux-scsi, linux-security-module, linuxppc-dev, lkml, netdev, sparclinux
Reply to
Christoph Hellwig, 2020-09-18
On Fri, Sep 18, 2020 at 02:45:27PM +0200, Christoph Hellwig wrote:
quoted hunk ↗ jump to hunk
 		}
-		if (type >= 0
-		    && unlikely(!access_ok(buf, len))) {
+		if (type != CHECK_IOVEC_ONLY && unlikely(!access_ok(buf, len))) {
drop the unlikely() at the same time?  if it's really advantageous,
that should be embedded in the access_ok macro.
Thread (67 messages) 67 messages, 11 authors, last reply 2020-09-23
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