Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2459752imd; Fri, 2 Nov 2018 11:46:52 -0700 (PDT) X-Google-Smtp-Source: AJdET5dXjNnBECBCGtRolxP7ESMs5KVpzrNmKem4FteHZGgeknDwGOWYGvpS5dniFO8JyY9/zWfS X-Received: by 2002:a63:64c:: with SMTP id 73mr11796382pgg.373.1541184412220; Fri, 02 Nov 2018 11:46:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541184412; cv=none; d=google.com; s=arc-20160816; b=xn2v8GPC9MIdZizPNLrnlNUZotJw2quqitni+PIL7Lv/Z0wCDcUfmU/Yr/0dWVXgXK adpz0haI3jKK1Yp2c0ZUl4i0QS4xR6FqIgjrQHE8byqhW+xMGmWNQOAyqvSh0Gpybzr3 HqyUquRc6tM6XJxwhh5ximvbQoOd3omLQ0TjbsYg4hSTzBhFjevXtv8pK3cW4FaG/8Xb ARVuwLn4WcUideDvNSkINlSIMZe6eddk4yh/e553R+vhGL86meXJI69uM1dEEAlyoonK K8HnCJ4xm4O4wM9+awISZGqF4MVurqwjm5HX3GWWMaAMisfXiQaGH3C6QtuX5rRgOQ3k y3Pg== 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=l3aTQxu/wqdNFASYsQLS22m6JWnqJ6P8Rmwssx0ruIM=; b=mc4UWgkNNJuSslQ7e1PIttXZIBlspnjSJSn0YUQfojlpkuAoWsGMY73THVAiOw/zr8 oSovHkvoRdqtIHYGtHmfpkGJ7XKj8b/4vhfX+i3nvdT727wR5/JGkYmuPD7BqJEJH6Vs ue1LQBgKwYXrHhMNCYRmHwMES+Hi/7yyyQOlLiLPZ5q4UH3SThjZDDCigrZ3diyLX4ga lEMwC6Dg0MgKLO1dterR1Mn0owsBfGN2WBS/9hduy5WkaFb3803YQ33uNoIbD3VJeIxN g0DA4x+z9UJLrfyNfgplEL/wKsR9tI4WAzBU/Y9RWsK5fYP3KcwOgpBNftBKYZ/RPjc/ dsHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=pRuNau3r; 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 g5-v6si35068914pgi.596.2018.11.02.11.46.37; Fri, 02 Nov 2018 11:46:52 -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=pRuNau3r; 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 S1730225AbeKCDxm (ORCPT + 99 others); Fri, 2 Nov 2018 23:53:42 -0400 Received: from mail.kernel.org ([198.145.29.99]:49432 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729473AbeKCDxm (ORCPT ); Fri, 2 Nov 2018 23:53:42 -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 EC99220837; Fri, 2 Nov 2018 18:45:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1541184329; bh=a/LKV5iq7oQ3ZnHbq3YmJdUclNXL5hvZlzHpUHU+UUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pRuNau3rHe604LMQhO278vvNQFLEqHdwwTChCPsE7drmA0LQdsLqpewlvNAxVO7Yf 4xna+v6QhuJ3iZ9n4tjrXi3dO9ybdJ1PeM0sEZkT1bSf/pjl3Fbi++WQ6iRMCAPWjd MnCQkCOv9nbELpR5zn9hJ4Z+fznzFBNwYsCNXOvU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Paolo Abeni , "David S. Miller" Subject: [PATCH 4.18 119/150] udp6: fix encap return code for resubmitting Date: Fri, 2 Nov 2018 19:34:41 +0100 Message-Id: <20181102182911.310572929@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. ------------------ From: Paolo Abeni [ Upstream commit 84dad55951b0d009372ec21760b650634246e144 ] The commit eb63f2964dbe ("udp6: add missing checks on edumux packet processing") used the same return code convention of the ipv4 counterpart, but ipv6 uses the opposite one: positive values means resubmit. This change addresses the issue, using positive return value for resubmitting. Also update the related comment, which was broken, too. Fixes: eb63f2964dbe ("udp6: add missing checks on edumux packet processing") Signed-off-by: Paolo Abeni Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- net/ipv6/udp.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c @@ -762,11 +762,9 @@ static int udp6_unicast_rcv_skb(struct s ret = udpv6_queue_rcv_skb(sk, skb); - /* a return value > 0 means to resubmit the input, but - * it wants the return to be -protocol, or 0 - */ + /* a return value > 0 means to resubmit the input */ if (ret > 0) - return -ret; + return ret; return 0; }