Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4862363pxu; Thu, 10 Dec 2020 07:15:46 -0800 (PST) X-Google-Smtp-Source: ABdhPJx7izMhy46Vczxb91BEgA+myPwhFpAwfmN+UVeAZ/jsCSbPwRcHe5BkF2cjQiSpS7auWRgm X-Received: by 2002:a17:906:7813:: with SMTP id u19mr6904609ejm.153.1607613346717; Thu, 10 Dec 2020 07:15:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607613346; cv=none; d=google.com; s=arc-20160816; b=q8w8JUgNDqMXOmirxrFauy6IBJrny8mRScYU+o0S97BI8/gEVKJU7CNvWqbdiQO9XL x3c8Fu3CTYCR1nSs4STsVD2nJr9m4pK0RSldsUejuE0hqzUU+2pPYnDAbBlKr28FZRd0 t6qrb9kAr0MKu71xZewz725WBv2Fl3ORHRSx3FyLf4cYdCRyd3z4HCScvD8NfX9Xo82o wFbhU0s9tJuW/zjrR489Ab8QybXXSRv0omEj+eZi+Fdbp5rBOUl5pUNQ7ZUgEyE1PIRm WbJEB5CzERPvmppfem/IeMq3PxoCaMEp28MtooVvQYcy43JXOIETpxYPJfi2nSxvStf/ J33g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=yeZ8gIpFQsdSytGiB9IK+Ej4WbbINVDqeD0QoV2QEwU=; b=sw1JP6Wvi+ADOio/HsftWsy1W9lM2Jtg92j2XAHbRyX4p+3b+liQOO4tEfSAsogO0O 4GEQMl/yqRaf4jyo1Cs51TXbFC8NOt6xaafe5D+nTKrXUlvbyzfCOBv8VcHR+tgN4AVD nx7Hz7zak3KO6spUzc3CKP1wBic4mUyZPAg6tORhziZ/WDBdHOzq5pbPOp8FaUD7domB gWfx3W1W0hmUQZtmeSbtePBiV1GQeqKV/qA5+lVo/WG76/wUZd6ykUhawSwnN96kWrMI bMzRQYJ/kq1XpfCKrCPC1TwAOY1gIuqR370YWfHR2mc4Y72UuHqtQM97yFk//jXu9wQp NBgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sGOYKdxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b24si2849493eds.235.2020.12.10.07.15.23; Thu, 10 Dec 2020 07:15:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=sGOYKdxn; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389815AbgLJOyW (ORCPT + 99 others); Thu, 10 Dec 2020 09:54:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1733277AbgLJOyC (ORCPT ); Thu, 10 Dec 2020 09:54:02 -0500 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D03BCC0613D6 for ; Thu, 10 Dec 2020 06:53:21 -0800 (PST) Received: by mail-il1-x143.google.com with SMTP id v3so5558013ilo.5 for ; Thu, 10 Dec 2020 06:53:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=yeZ8gIpFQsdSytGiB9IK+Ej4WbbINVDqeD0QoV2QEwU=; b=sGOYKdxnXRmFw5udWeVygXWbrL6g3yiJyReDFX9DIaEv628Z7gfbmlTa3kV3ns0RN8 Fm1hmLyYbAWmRyjVWy1rtzvy+vmE+/IoPOU8IUz2xIJ32sQpMaA30H1dd54Mm7Ol0gg8 6sSUPrSmgh7z+8FJdBa/K1wFx8EyO+GQm7RYE/KH7XMgatjcsoOh4+TAIZ4xALtUTYaH bz6lY8HFcaHavaP4r2F4f86sSAHml6Xod2/I4wsTr7vG44Xw43bNUwmtTET4hhN/QlhU uVav9FGOugP1h0qX4VYIsasf6cflBksuVHCvM7JSx3Ui7OMiuAb/eK73JOrd9L8gVkW3 Vogw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yeZ8gIpFQsdSytGiB9IK+Ej4WbbINVDqeD0QoV2QEwU=; b=INOOQ7zzQPb3NW22al3PL1jQe0DI7hwMNNDuzZcRZWMDmZBM09SEP3hGsmWMvIdybN cZ2Ik29s50U8CrClVDfU0B8CJBOJs/WVcCU8GC+Y/4NRDVW4coAHti632iXGjgAm5sAj 4mAVmJyINeI1lSSVRwHIULjr/a7YZZWSvsgygGS2HWKftK8JLgbLLTB53MRXMLUWIqXJ 3GZh44iLSGSrN7xa1qZJz/s703vxJ3lP4IzdYx1BfBpeVRPrBuGPqH4Axl7mxFSpoYek pPh0iAOBupL9wZcG0l5tnAnc2uiLWtTO+e1lKcLWtjAI9nqx5jP8xtAX+dSgguxbCIYO Q3qA== X-Gm-Message-State: AOAM53101qS+gSa0pcsfKk/tzotSzQDroxz5YpI7vUFIfAtjcqc5WtVx uMTwghZzzNGG9fl8+9184LqByi0SoDVhPm0p0moBvQ== X-Received: by 2002:a92:da82:: with SMTP id u2mr9289009iln.137.1607612001021; Thu, 10 Dec 2020 06:53:21 -0800 (PST) MIME-Version: 1.0 References: <20201210142600.887734129@linuxfoundation.org> <20201210142601.652963609@linuxfoundation.org> In-Reply-To: From: Eric Dumazet Date: Thu, 10 Dec 2020 15:53:09 +0100 Message-ID: Subject: Re: [PATCH 4.4 15/39] geneve: pull IP header before ECN decapsulation To: Greg Kroah-Hartman Cc: LKML , stable@vger.kernel.org, syzbot , Jakub Kicinski Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Dec 10, 2020 at 3:40 PM Greg Kroah-Hartman wrote: > > On Thu, Dec 10, 2020 at 03:38:44PM +0100, Greg Kroah-Hartman wrote: > > On Thu, Dec 10, 2020 at 03:32:12PM +0100, Eric Dumazet wrote: > > > On Thu, Dec 10, 2020 at 3:26 PM Greg Kroah-Hartman > > > wrote: > > > > > > > > From: Eric Dumazet > > > > > > > > IP_ECN_decapsulate() and IP6_ECN_decapsulate() assume > > > > IP header is already pulled. > > > > > > > > geneve does not ensure this yet. > > > > > > > > Fixing this generically in IP_ECN_decapsulate() and > > > > IP6_ECN_decapsulate() is not possible, since callers > > > > pass a pointer that might be freed by pskb_may_pull() > > > > > > > > syzbot reported : > > > > > > > > > > Note that we had to revert this patch, so you can either scratp this > > > backport, or make sure to backport the revert. > > > > I'll drop it thanks. Odd I lost the upstream git id on this patch, let > > me check what went wrong... > > What is the git id of the revert? This ended up already in 4.19.y, > 5.4.y, and 5.9.y so needs to be reverted there. > https://git.kernel.org/pub/scm/linux/kernel/git/netdev/net.git/commit/?id=c02bd115b1d25931159f89c7d9bf47a30f5d4b41 Thanks ! > thanks, > > greg k-h