From: Daniel Axtens Subject: Re: [PATCH v2 0/4] Check size of packets before sending Date: Mon, 29 Jan 2018 14:20:58 +1100 Message-ID: <87h8r5s63p.fsf@linkitivity.dja.id.au> References: <20180125043109.28332-1-dja@axtens.net> <1516884036.3715.45.camel@gmail.com> <87607qdpdf.fsf@linkitivity.dja.id.au> <1516890904.3715.50.camel@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Cc: Jason Wang , Pravin Shelar , Marcelo Ricardo Leitner , Manish.Chopra@cavium.com, dev@openvswitch.org To: Eric Dumazet , netdev@vger.kernel.org Return-path: Received: from mail-pg0-f41.google.com ([74.125.83.41]:45686 "EHLO mail-pg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750730AbeA2DVD (ORCPT ); Sun, 28 Jan 2018 22:21:03 -0500 Received: by mail-pg0-f41.google.com with SMTP id m136so3350773pga.12 for ; Sun, 28 Jan 2018 19:21:03 -0800 (PST) In-Reply-To: <1516890904.3715.50.camel@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: Eric Dumazet writes: > On Fri, 2018-01-26 at 00:44 +1100, Daniel Axtens wrote: >> Hi Eric, >> >> > May I ask which tree are you targeting ? >> > >> > ( Documentation/networking/netdev-FAQ.txt ) >> >> I have been targeting net-next, but I haven't pulled for about two >> weeks. I will rebase and if there are conflicts I will resend early next >> week. >> >> > Anything touching GSO is very risky and should target net-next, >> > especially considering 4.15 is released this week end. >> > >> > Are we really willing to backport this intrusive series in stable >> > trees, or do we have a smaller fix for bnx2x ? >> >> I do actually have a smaller fix for bnx2x, although it would need more work: >> https://patchwork.ozlabs.org/patch/859410/ >> >> It leaves open the possibility of too-large packets causing issues on >> other drivers. DaveM wasn't a fan: https://patchwork.ozlabs.org/patch/859410/#1839429 > > Yes, I know he prefers a generic solution, but I am pragmatic here. > Old kernels are very far from current GSO stack in net-next. > > Backporting all the dependencies is going to be very boring/risky. OK, so how about: - first, a series that introduces skb_gso_validate_mac_len and uses it in bnx2x. This should be backportable without difficulty. - then, a series that wires skb_gso_validate_mac_len into the core - validate_xmit_skb for instance, and reverts the bnx2x fix. This would not need to be backported. If that's an approach we can agree on, I am ready to send it when net-next opens again. Regards, Daniel