Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2454749imd; Fri, 2 Nov 2018 11:41:20 -0700 (PDT) X-Google-Smtp-Source: AJdET5cUhGXx54S/Qqrm3nlJu+VgEjwmuDPw2j/vpfnP1HYTND0dGWIWd6/uuMec0FUJooKorC5b X-Received: by 2002:a63:2643:: with SMTP id m64mr11603467pgm.35.1541184080393; Fri, 02 Nov 2018 11:41:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184080; cv=none; d=google.com; s=arc-20160816; b=i9if9IFNs1Qn98CY1qXbCEp309YtSGtD6q68iiFCTmBaL6xa48QjWsCPOjvS5iPnH8 g2dN3EIB0B5thT1iXUGczfTaaCpsjOIf9v5QK6iy59NC+sneKpwU6BOZUu29KVc7kEbq sHi2hDttEoTy0nlSYSir/HFhjSbOx1BhW1EYiz7k9hJ8rnFTgSttVb7/So522cfPraE4 UhthuVV85G2emVvmaHoFGIxOHNbmLxzo3Nn6V8WH58uE1S1bNSEy+phOWr9fbYIvzQks o0CoY2FyHIyr2UIwtgWsGPi+jIqB0ip45EkT5Lvo6f8m3rAGTYhRnoeLepb9ZUTDOPss BboA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=IeCiE9Dm0qvCRvmzFqcuSn4FvhvYs0CFqMCi2XUsgQs=; b=xEgZLnHvvIPGtlA6LkHqv7xCCt6GcUqUBRyqxJz1HJDmEuxYSXjCBNb3o5ZSQ7YC/a W5KhMKdoH5HLs1jj8hQnMD9H0+yYVRu3o+IrmQ9n8AYR70eg7Ytyuh732ln3LGIB012i 05EN0Fb5BriLAKyExeXMmYUWl84/QU17XDWZWZz997N/6IX4bENDWD7gTTL8Gt+b7J2G bglvi8UKWb8wz07rp+ERL9G9OE2aPa2S1JRfLzHdU/WIeNLd2+wm/ofAB+oVFa/KbCXP mUTTefP3MpYYfyohXTAMPfbiLu8UGOD+9NglkpWR6hf1ZSCHZKMzY3/nfVPMR9gAZGl+ A4+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="o5jFkE/J"; 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 s13-v6si33296732pgp.382.2018.11.02.11.41.05; Fri, 02 Nov 2018 11:41:20 -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; dkim=pass header.i=@kernel.org header.s=default header.b="o5jFkE/J"; 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 S1728919AbeKCDqv (ORCPT + 99 others); Fri, 2 Nov 2018 23:46:51 -0400 Received: from mail.kernel.org ([198.145.29.99]:40726 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728140AbeKCDqu (ORCPT ); Fri, 2 Nov 2018 23:46:50 -0400 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3B3CE2081B; Fri, 2 Nov 2018 18:38:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541183919; bh=gobRvNhQDQoOGhxXp7Fu1LPE+k6MCyAUga+sxqt/zMM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o5jFkE/JxuMwT9ZsETWgyTD9rF/nqbnW94RgVyyeAWWKYA4ym+uvdVGh/50XW/f9w NwPUc6BKDk1xzFTyfmTQ4PqVvH0aQgM3okhsHIihuouVabTgjiFepxkexbDmCUWsVL qVHBIESagmZ3JKI7t2mLI+ZnFZZMh/7r8f12sLGk= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Sowmini Varadhan , Steffen Klassert , Sasha Levin Subject: [PATCH 4.18 004/150] xfrm: reset crypto_done when iterating over multiple input xfrms Date: Fri, 2 Nov 2018 19:32:46 +0100 Message-Id: <20181102182902.711298573@linuxfoundation.org> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102182902.250560510@linuxfoundation.org> References: <20181102182902.250560510@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.18-stable review patch. If anyone has any objections, please let me know. ------------------ [ Upstream commit 782710e333a526780d65918d669cb96646983ba2 ] We only support one offloaded xfrm (we do not have devices that can handle more than one offload), so reset crypto_done in xfrm_input() when iterating over multiple transforms in xfrm_input, so that we can invoke the appropriate x->type->input for the non-offloaded transforms Fixes: d77e38e612a0 ("xfrm: Add an IPsec hardware offloading API") Signed-off-by: Sowmini Varadhan Signed-off-by: Steffen Klassert Signed-off-by: Sasha Levin --- net/xfrm/xfrm_input.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/xfrm/xfrm_input.c b/net/xfrm/xfrm_input.c index 352abca2605f..86f5afbd0a0c 100644 --- a/net/xfrm/xfrm_input.c +++ b/net/xfrm/xfrm_input.c @@ -453,6 +453,7 @@ resume: XFRM_INC_STATS(net, LINUX_MIB_XFRMINHDRERROR); goto drop; } + crypto_done = false; } while (!err); err = xfrm_rcv_cb(skb, family, x->type->proto, 0); -- 2.17.1