Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4361047pxu; Mon, 12 Oct 2020 17:34:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwv8F+Yb/tOk6/Auz4sd2pNzgSH98ASEBqGStz9R7kgJit5f7IUe+HNsWeWcu57CJ+6RVC/ X-Received: by 2002:a05:6402:392:: with SMTP id o18mr17471807edv.283.1602549249807; Mon, 12 Oct 2020 17:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602549249; cv=none; d=google.com; s=arc-20160816; b=PLR5CmHUWvbyYpdUoVAOnLfylQXqKbBi+x8H4yGjS9nwwiCHZJH1QcfRuubxcjjS9r zecdmcq+bZI1xnPIybv1qDRysZiJ9Sfl6oejp2GSsSTO7VNoKegND/xktHtuh/0qB3eM luS6AW9T5+rC3e4gemMVNS6BZ2FtaIc7B/agvEsJeWUXPCvcwZWpJUFd4vnZR71G3rdu +p38V/Kp9o96Wno3Rjw07SOdY+jVKQ+0kG2LsDv6DHTdgVg7kP7dvpYnHTkTheKhsxIq tue3flW3/kTCAU53Liwbmshm4WpFX0rp6wK6pXiNeSOwEeuPfH83F88c5Pk/7mtQjlF7 OBoQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=1aheP28TqFaRyEATnNfhay2hYWGYjxMGNtbYVT7Y6jw=; b=fTIJu4dfPITHjJk8qc48+3jobK4RRJtanrFS3IqAUCgzDesWNRkvaAtNyVQRg9KVW2 hJVaHvTDksCQueYg2sw7anvkOP4UJwVa1mOz0UTp9ASDNWyh2ErJ4n8MDJ6MS20wCALl aBeh7tK2z5cB0p9/kjM28eZ9BZ+prR4fi+TBTHUtpVqV3WQs9cX1xsC/gh60VCtSVIPz qge8ujMw1vNXzL+cyv5Pdn0Oz16WJFZEtC15qG1wayEGSNu5KrLu0s3aNcQmTnr9GoP/ boxMOcIJxBHi1gJUYIlOc7lEWx/pEOfo31Esp7p75a2ld8pNC2M/HiiCYE/C2T2P3gab cKeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=xszxZZZO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t26si13196512eds.280.2020.10.12.17.33.47; Mon, 12 Oct 2020 17:34:09 -0700 (PDT) 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=@kernel.org header.s=default header.b=xszxZZZO; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731030AbgJLN5y (ORCPT + 99 others); Mon, 12 Oct 2020 09:57:54 -0400 Received: from mail.kernel.org ([198.145.29.99]:46224 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731290AbgJLNlh (ORCPT ); Mon, 12 Oct 2020 09:41:37 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (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 76BA322244; Mon, 12 Oct 2020 13:41:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602510096; bh=rvnjSrMEECJgoM3x7gvKWcniaay8WsK1fAvGitthpDk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=xszxZZZOIzO6XsgdQPD6m6dOSZSdQB2oP5jr4BhH7h8mGxDiPfevS8NKUnpP4aLr2 WXKPgU8uxwgy4SCqpwKRRhyi23NTg8Ti/qFP7X4GUWEpOG83pKUTSjrfyotFw4+Q5a 3Dfjl+5/IKWzit/g0uDgFjbefAfam6VvME/g1cLs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Xiumei Mu , Sabrina Dubroca , Steffen Klassert Subject: [PATCH 5.4 38/85] xfrmi: drop ignore_df check before updating pmtu Date: Mon, 12 Oct 2020 15:27:01 +0200 Message-Id: <20201012132634.688974448@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201012132632.846779148@linuxfoundation.org> References: <20201012132632.846779148@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Sabrina Dubroca commit 45a36a18d01907710bad5258d81f76c18882ad88 upstream. xfrm interfaces currently test for !skb->ignore_df when deciding whether to update the pmtu on the skb's dst. Because of this, no pmtu exception is created when we do something like: ping -s 1438 By dropping this check, the pmtu exception will be created and the next ping attempt will work. Fixes: f203b76d7809 ("xfrm: Add virtual xfrm interfaces") Reported-by: Xiumei Mu Signed-off-by: Sabrina Dubroca Signed-off-by: Steffen Klassert Signed-off-by: Greg Kroah-Hartman --- net/xfrm/xfrm_interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/net/xfrm/xfrm_interface.c +++ b/net/xfrm/xfrm_interface.c @@ -293,7 +293,7 @@ xfrmi_xmit2(struct sk_buff *skb, struct } mtu = dst_mtu(dst); - if (!skb->ignore_df && skb->len > mtu) { + if (skb->len > mtu) { skb_dst_update_pmtu_no_confirm(skb, mtu); if (skb->protocol == htons(ETH_P_IPV6)) {