Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753567AbbBEV6v (ORCPT ); Thu, 5 Feb 2015 16:58:51 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:50275 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751859AbbBEV6u (ORCPT ); Thu, 5 Feb 2015 16:58:50 -0500 Date: Thu, 5 Feb 2015 21:58:45 +0000 From: Al Viro To: Sowmini Varadhan 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. Message-ID: <20150205215845.GT29656@ZenIV.linux.org.uk> References: <20150205202050.GH5811@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150205202050.GH5811@oracle.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 943 Lines: 22 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/