xfs
[Top] [All Lists]

Re: [PATCH 10/12] new iov_iter flavour: pipe-backed

To: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
Subject: Re: [PATCH 10/12] new iov_iter flavour: pipe-backed
From: Miklos Szeredi <miklos@xxxxxxxxxx>
Date: Fri, 30 Sep 2016 09:30:21 +0200
Cc: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>, Dave Chinner <david@xxxxxxxxxxxxx>, CAI Qian <caiqian@xxxxxxxxxx>, linux-xfs <linux-xfs@xxxxxxxxxxxxxxx>, xfs@xxxxxxxxxxx, Jens Axboe <axboe@xxxxxxxxx>, Nick Piggin <npiggin@xxxxxxxxx>, linux-fsdevel <linux-fsdevel@xxxxxxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=szeredi.hu; s=google; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oq6uKi92V07CIJI+sTpAQFJqMudWz8gL4OVbXeKADTE=; b=USANp6OVCrg4VfVJlxykwHiZQoJBXywa9t187K0EICGCVwn8nxZo2iJj0YWXEfcoyo AhIsJldjjDZceydp/ySAK3PXRwosd3JZfeQQYKmvL5IAnvcZ56TxugiLD733/wq3OE+E lhng9VUbSm/VPjhsirNZn0cvJoNnr352rZ3Jo=
In-reply-to: <20160929225003.GQ19539@xxxxxxxxxxxxxxxxxx>
References: <20160914042559.GC2356@xxxxxxxxxxxxxxxxxx> <20160917082007.GA6489@xxxxxxxxxxxxxxxxxx> <20160917190023.GA8039@xxxxxxxxxxxxxxxxxx> <20160923190032.GA25771@xxxxxxxxxxxxxxxxxx> <20160923190326.GB2356@xxxxxxxxxxxxxxxxxx> <CA+55aFxzPH2AYvDVWSAomO6bN_sW4+qDv87Xbq8XHMyvBEYe+w@xxxxxxxxxxxxxx> <20160923201025.GJ2356@xxxxxxxxxxxxxxxxxx> <CA+55aFyr-X_6FcWkSXBUcxV0p1BUZw8d=46wawv2x+8y7f8YcQ@xxxxxxxxxxxxxx> <20160924040117.GP2356@xxxxxxxxxxxxxxxxxx> <CAELBmZDpm635PcTPQfnpLGs2P4bfT6JU+DEuFu9pBut=uzOLHw@xxxxxxxxxxxxxx> <20160929225003.GQ19539@xxxxxxxxxxxxxxxxxx>
On Fri, Sep 30, 2016 at 12:50 AM, Al Viro <viro@xxxxxxxxxxxxxxxxxx> wrote:
> On Thu, Sep 29, 2016 at 10:53:55PM +0200, Miklos Szeredi wrote:
>
>> The EFAULT logic seems to be missing across the board.  And callers
>> don't expect a zero return value.  Most will loop indefinitely.
>
> Nope.  copy_page_to_iter() *never* returns -EFAULT.  Including the iovec
> one - check copy_page_to_iter_iovec().  Any caller that does not expect
> a zero return value from that primitive is a bug, triggerable as soon as
> you feed it an iovec with NULL ->iov_base.

Right.

I was actually looking at iov_iter_get_pages() callers...

Thanks,
Miklos

<Prev in Thread] Current Thread [Next in Thread>