LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
From: Sowmini Varadhan <sowmini.varadhan@oracle.com>
To: Al Viro <viro@ZenIV.linux.org.uk>
Cc: chien.yen@oracle.com, davem@davemloft.net,
rds-devel@oss.oracle.com, netdev@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] rds: Make rds_message_copy_from_user() return 0 on success.
Date: Thu, 5 Feb 2015 17:07:34 -0500 [thread overview]
Message-ID: <20150205220734.GC28883@oracle.com> (raw)
In-Reply-To: <20150205215845.GT29656@ZenIV.linux.org.uk>
On (02/05/15 21:58), Al Viro wrote:
> *blink*
>
> Commit 083735f4b0 ("rds: switch rds_message_copy_from_user() to iov_iter"),
> surely? That's the one that touches copy-from side of things...
>
> And unlike the previous commit (the one you'd mentioned) here the return value
> of copy_page_....() ended up passed to caller of its caller. Mea culpa.
>
> So, modulo correction of the commit message,
>
> Acked-by: Al Viro <viro@zeniv.linux.org.uk>
That was the one that git-bisect flagged for me.. I think this one
had the iov_iter_init() in rds_sendmsg() itself? As I recall, this
change was already refactoring rds_message_copy_from_user() (and was the
earliest version that was broken when I tested it)?
should it have been 'put iov_iter into msghdr'? I just wanted
to make sure some innocent user would know how far back to go,
if they wanted to not trip on this one.
--Sowmini
next prev parent reply other threads:[~2015-02-05 22:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 20:20 Sowmini Varadhan
2015-02-05 21:58 ` Al Viro
2015-02-05 22:07 ` Sowmini Varadhan [this message]
2015-02-05 22:23 ` Al Viro
2015-02-05 22:41 ` [PATCHv2] " Sowmini Varadhan
2015-02-08 6:42 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150205220734.GC28883@oracle.com \
--to=sowmini.varadhan@oracle.com \
--cc=chien.yen@oracle.com \
--cc=davem@davemloft.net \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=rds-devel@oss.oracle.com \
--cc=viro@ZenIV.linux.org.uk \
--subject='Re: [PATCH] rds: Make rds_message_copy_from_user() return 0 on success.' \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).