From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751996AbaEWLNg (ORCPT ); Fri, 23 May 2014 07:13:36 -0400 Received: from relay1.mentorg.com ([192.94.38.131]:47318 "EHLO relay1.mentorg.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899AbaEWLNf (ORCPT ); Fri, 23 May 2014 07:13:35 -0400 Message-ID: <537F2D53.5020408@mentor.com> Date: Fri, 23 May 2014 12:13:23 +0100 From: Jim Baxter User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: David Laight , =?UTF-8?B?J0Jqw7hybiBNb3JrJw==?= CC: "'Eric Dumazet'" , "linux-usb@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "netdev@vger.kernel.org" , "David S. Miller" , "kamal@canonical.com" , "edumazet@google.com" , "mszeredi@suse.cz" , "fw@strlen.de" Subject: Re: skbuff truesize incorrect. References: <537E4AFD.20304@mentor.com> <1400792295.5367.174.camel@edumazet-glaptop2.roam.corp.google.com> <063D6719AE5E284EB5DD2968C1650D6D1724C490@AcuExch.aculab.com> <87r43k4yhe.fsf@nemi.mork.no> <063D6719AE5E284EB5DD2968C1650D6D1724C7A1@AcuExch.aculab.com> In-Reply-To: <063D6719AE5E284EB5DD2968C1650D6D1724C7A1@AcuExch.aculab.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Originating-IP: [137.202.0.76] X-OriginalArrivalTime: 23 May 2014 11:13:25.0378 (UTC) FILETIME=[0416A620:01CF7678] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 23/05/14 11:45, David Laight wrote: > From: Bjørn Mork [mailto:bjorn@mork.no] >> David Laight writes: > ... >>> Note that some of the usb ethernet drivers allocate large skb then >>> lie about the truesize. >> >> Hmm, which drivers are these? > > $ grep truesize linux/drivers/net/usb/* > > asix_88179_178a, smsc95xx, sr9700. > > David > What are the side effects of changing the truesize, if the original uncloned skb has the full truesize then isn't the potential memory usage still counted for the avoidance of OOM? I suppose if the uncloned skb is deleted you would then have a problem so a chain of URB's would be the safest solution. Jim