Received: by 2002:ac0:950c:0:0:0:0:0 with SMTP id f12csp949746imc; Mon, 11 Mar 2019 03:10:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqxWZLrNzQcK8APMLHYhVydZ73SF8ZG9Tgz5+q62TF2UudBMvYFKNwi2+GeaDiX+YBD4LJdI X-Received: by 2002:a63:8b42:: with SMTP id j63mr28631316pge.79.1552299008826; Mon, 11 Mar 2019 03:10:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1552299008; cv=none; d=google.com; s=arc-20160816; b=oEMsgYuPJLI1TWZr5rODibjgiXC0Zzr/NgBCBMbeJDuTeldbN/AeQrLtRvw3dhramB 9EvxjeI/UYKKMoVHA1/fg4S+Rh6nbtuNdixACv+NdEid5PkWk6VFZYXxwfCl24AWUazo r2jgnvHDZdnlhlOGzKdBRR6BzwVW8ZLytBcbLQfce7mMg4qa6ZnKf3MWhj7Izw8Y03v9 2UaVET7fbPiOFpOw4u9lm1l2Y9+b2TySmVKEA064cHopRvtYnezDEhXTV7zuneOZ7Gn7 4rjDievtWTt7QREk42o1fcOfgjAUmh6zK0zOr+L1N7jGanwGxmqgQFDw3Sg2ghqtEc6u 87xA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=hAGGjP8h6V3w/z0pB4Q2Vh3/XqzW825XlclUJNO0I0E=; b=b5zhVMczoQBQS5lOgAr5MnQ6vGogq3h1Ee3OeYexbfWH1vRLBdWDX3NvBDFGe+2XSh DcxNMAJKX+YsWkJcbHaaXdf59NMU07pBLuDYkYKNkPlU82OQTHJu45jDyR/nDGotffUl C5GAhCIX/54WweYixNG1h9wjyx4JMFklkDSslQ8Y/ppKMpHxIOJk7tr5fSzhF82gpUUJ L9gkHYfRW25rRXFKOMaFzcM2JhAnuNrGr5+/W5uoc90j3qtIKRnt+GaTC5Vp46mLqpJv Q6gSFV3R4wqNVcY9wmHCHm1fpNTyR1/D4X28BgHdZc3hePzLUPsLQhniZZNICZEbTbnx hy9Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v41si5357875plg.8.2019.03.11.03.09.53; Mon, 11 Mar 2019 03:10:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727195AbfCKKJb (ORCPT + 99 others); Mon, 11 Mar 2019 06:09:31 -0400 Received: from a.mx.secunet.com ([62.96.220.36]:41926 "EHLO a.mx.secunet.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726986AbfCKKJa (ORCPT ); Mon, 11 Mar 2019 06:09:30 -0400 Received: from localhost (localhost [127.0.0.1]) by a.mx.secunet.com (Postfix) with ESMTP id 74FD6201E2; Mon, 11 Mar 2019 11:09:28 +0100 (CET) X-Virus-Scanned: by secunet Received: from a.mx.secunet.com ([127.0.0.1]) by localhost (a.mx.secunet.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kPx6asI5Yljy; Mon, 11 Mar 2019 11:09:27 +0100 (CET) Received: from mail-essen-01.secunet.de (mail-essen-01.secunet.de [10.53.40.204]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by a.mx.secunet.com (Postfix) with ESMTPS id F026320063; Mon, 11 Mar 2019 11:09:27 +0100 (CET) Received: from gauss2.secunet.de (10.182.7.193) by mail-essen-01.secunet.de (10.53.40.204) with Microsoft SMTP Server id 14.3.439.0; Mon, 11 Mar 2019 11:09:27 +0100 Received: by gauss2.secunet.de (Postfix, from userid 1000) id 97C50318057E; Mon, 11 Mar 2019 11:09:27 +0100 (CET) Date: Mon, 11 Mar 2019 11:09:27 +0100 From: Steffen Klassert To: Myungho Jung CC: Eric Dumazet , , Subject: Re: [PATCH v3] xfrm: Reset secpath in xfrm failure Message-ID: <20190311100927.GJ3758@gauss3.secunet.de> References: <20190307012305.GA8305@myunghoj-Precision-5530> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20190307012305.GA8305@myunghoj-Precision-5530> User-Agent: Mutt/1.9.4 (2018-02-28) X-G-Data-MailSecurity-for-Exchange-State: 0 X-G-Data-MailSecurity-for-Exchange-Error: 0 X-G-Data-MailSecurity-for-Exchange-Sender: 23 X-G-Data-MailSecurity-for-Exchange-Server: d65e63f7-5c15-413f-8f63-c0d707471c93 X-EXCLAIMER-MD-CONFIG: 2c86f778-e09b-4440-8b15-867914633a10 X-G-Data-MailSecurity-for-Exchange-Guid: A863083F-8FB1-4DE7-9BA4-ACCB3E823B85 X-G-Data-MailSecurity-for-Exchange-ProcessedOnRouted: True Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 07, 2019 at 10:23:08AM +0900, Myungho Jung wrote: > In esp4_gro_receive() and esp6_gro_receive(), secpath can be allocated > without adding xfrm state to xvec. Then, sp->xvec[sp->len - 1] would > fail and result in dereferencing invalid pointer in esp4_gso_segment() > and esp6_gso_segment(). Reset secpath if xfrm function returns error. > > Fixes: 7785bba299a8 ("esp: Add a software GRO codepath") > Reported-by: syzbot+b69368fd933c6c592f4c@syzkaller.appspotmail.com > Signed-off-by: Myungho Jung Applied, thanks a lot!