From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759482AbdEONM4 convert rfc822-to-8bit (ORCPT ); Mon, 15 May 2017 09:12:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53830 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759309AbdEONMx (ORCPT ); Mon, 15 May 2017 09:12:53 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com F0516C059735 Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx08.extmail.prod.ext.phx2.redhat.com; spf=pass smtp.mailfrom=dhowells@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com F0516C059735 Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20170511194134.31183-2-Jason@zx2c4.com> References: <20170511194134.31183-2-Jason@zx2c4.com> <20170511194134.31183-1-Jason@zx2c4.com> To: "Jason A. Donenfeld" Cc: dhowells@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, davem@davemloft.net, kernel-hardening@lists.openwall.com, Steffen Klassert , Herbert Xu , Sabrina Dubroca , "Michael S. Tsirkin" , Jason Wang Subject: Re: [PATCH v8 1/5] skbuff: return -EMSGSIZE in skb_to_sgvec to prevent overflow MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <30550.1494853968.1@warthog.procyon.org.uk> Content-Transfer-Encoding: 8BIT Date: Mon, 15 May 2017 14:12:48 +0100 Message-ID: <30551.1494853968@warthog.procyon.org.uk> X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.32]); Mon, 15 May 2017 13:12:53 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Jason A. Donenfeld wrote: > +int skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) > ... > -int skb_to_sgvec(struct sk_buff *skb, struct scatterlist *sg, int offset, int len) Is there a reason you moved skb_to_sgvec() in the file rather than just moving the comment to it (since you moved the comment anyway)? David