From: Al Viro <viro@ZenIV.linux.org.uk>
To: Sowmini Varadhan <sowmini.varadhan@oracle.com>
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 21:58:45 +0000 [thread overview]
Message-ID: <20150205215845.GT29656@ZenIV.linux.org.uk> (raw)
In-Reply-To: <20150205202050.GH5811@oracle.com>
On Thu, Feb 05, 2015 at 03:20:50PM -0500, Sowmini Varadhan wrote:
>
> Commit c310e72c8992 ("rds: switch ->inc_copy_to_user() to passing iov_iter")
> breaks rds_message_copy_from_user() semantics on success, and causes it
> to return nbytes copied, when it should return 0. This commit fixes that bug.
*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>
next prev parent reply other threads:[~2015-02-05 21:58 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-05 20:20 [PATCH] rds: Make rds_message_copy_from_user() return 0 on success Sowmini Varadhan
2015-02-05 21:58 ` Al Viro [this message]
2015-02-05 22:07 ` Sowmini Varadhan
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=20150205215845.GT29656@ZenIV.linux.org.uk \
--to=viro@zeniv.linux.org.uk \
--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=sowmini.varadhan@oracle.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.