Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752733AbaKGWb6 (ORCPT ); Fri, 7 Nov 2014 17:31:58 -0500 Received: from zeniv.linux.org.uk ([195.92.253.2]:51200 "EHLO ZenIV.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751743AbaKGWb5 (ORCPT ); Fri, 7 Nov 2014 17:31:57 -0500 Date: Fri, 7 Nov 2014 22:31:53 +0000 From: Al Viro To: David Miller Cc: herbert@gondor.apana.org.au, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, bcrl@kvack.org Subject: Re: [PATCH 1/4] inet: Add skb_copy_datagram_iter Message-ID: <20141107223153.GC7996@ZenIV.linux.org.uk> References: <20141105210745.GT7996@ZenIV.linux.org.uk> <20141105.165719.835728206041332333.davem@davemloft.net> <20141106032533.GU7996@ZenIV.linux.org.uk> <20141107.164859.951682597018909290.davem@redhat.com> <20141107221114.GB7996@ZenIV.linux.org.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20141107221114.GB7996@ZenIV.linux.org.uk> 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 On Fri, Nov 07, 2014 at 10:11:14PM +0000, Al Viro wrote: > I'm looking through the tree right now; so far it looks like we can just > move those suckers to the point where we validate iovec and lose them > from low-level iovec and csum copying completely. I still haven't finished > tracing all possible paths for address to arrive at the points where we > currently check that stuff, but so far it looks very doable. BTW, csum side of that is also chock-full of duplicate access_ok() - e.g. generic csum_and_copy_from_user() checks before calling csum_partial_copy_from_user(). And generic instance of that is using __copy_from_user(), all right, but a _lot_ of non-default instances repeat that access_ok(). -- 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/